exploit-db-mirror/exploits/php/webapps/3735.txt
Offensive Security 36c084c351 DB: 2021-09-03
45419 changes to exploits/shellcodes

2 new exploits/shellcodes

Too many to list!
2021-09-03 13:39:06 +00:00

42 lines
No EOL
1.2 KiB
Text

########################################################
# Special Greetings To - Timq,Warpboy,The-Maggot #
########################################################
File: index.php
Affects: LS simple guestbook (v1)
Date: 15th April 2007
Issue Description:
===========================================================================
LS simple guestbook fails to sanitize user input that it writes to the
posts.txt file when the user leaves a message, this file is then included
causing any php code within it to be run.
===========================================================================
Scope:
===========================================================================
An attacker can inject arbitrary php code and potentially execute commands
on the system.
===========================================================================
Recommendation:
===========================================================================
Add the following line of code in index.php:
$message = strip_tags($message);
just above:
if ($message != "") {$file = fopen("$dataf","a");
===========================================================================
Example:
name = Test
message = <?php phpinfo(); ?>
Discovered By: Gammarays
# milw0rm.com [2007-04-14]