SQL Injection, DORK, Single Quote, Database Error, CWE-89, CAPEC-66

CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Report generated by XSS.CX at Sun Apr 17 19:27:28 CDT 2011.


XSS.CX 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

1. SQL injection

1.1. http://www.epicdreams.com/categories.shtm [catcity parameter]

1.2. http://www.epicdreams.com/listings.shtm [User-Agent HTTP header]

2. Cleartext submission of password

2.1. http://www.epicdreams.com/login.shtm

2.2. http://www.epicdreams.com/signup_advertiser.shtm

3. Password field with autocomplete enabled

3.1. http://www.epicdreams.com/login.shtm

3.2. http://www.epicdreams.com/signup_advertiser.shtm

4. Cross-domain Referer leakage

5. Cookie without HttpOnly flag set

6. TRACE method is enabled

7. Email addresses disclosed

7.1. http://www.epicdreams.com/escort_calendar.shtm

7.2. http://www.epicdreams.com/service.shtm

7.3. http://www.epicdreams.com/signup_advertiser.shtm

7.4. http://www.epicdreams.com/topics.shtm

8. Robots.txt file

9. Content type incorrectly stated



1. SQL injection  next
There are 2 instances of this issue:

Issue background

SQL injection vulnerabilities arise when user-controllable data is incorporated into database SQL queries in an unsafe manner. An attacker can supply crafted input to break out of the data context in which their input appears and interfere with the structure of the surrounding query.

Various attacks can be delivered via SQL injection, including reading or modifying critical application data, interfering with application logic, escalating privileges within the database and executing operating system commands.

Remediation background

The most effective way to prevent SQL injection attacks is to use parameterised queries (also known as prepared statements) for all database access. This method uses two steps to incorporate potentially tainted data into SQL queries: first, the application specifies the structure of the query, leaving placeholders for each item of user input; second, the application specifies the contents of each placeholder. Because the structure of the query has already defined in the first step, it is not possible for malformed data in the second step to interfere with the query structure. You should review the documentation for your database and application platform to determine the appropriate APIs which you can use to perform parameterised queries. It is strongly recommended that you parameterise every variable data item that is incorporated into database queries, even if it is not obviously tainted, to prevent oversights occurring and avoid vulnerabilities being introduced by changes elsewhere within the code base of the application.

You should be aware that some commonly employed and recommended mitigations for SQL injection vulnerabilities are not always effective:



1.1. http://www.epicdreams.com/categories.shtm [catcity parameter]  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.epicdreams.com
Path:   /categories.shtm

Issue detail

The catcity parameter appears to be vulnerable to SQL injection attacks. The payload ' was submitted in the catcity parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be MySQL.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses.

Request

GET /categories.shtm?cn=Long%20Island%20Escorts&catcity=210' HTTP/1.1
Host: www.epicdreams.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:13:04 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 22691


<html>
<head>
<title>Long Island Escorts, Long Island Escort Service, Long Island Erotic Massage Service, Long Island Tantra, Long Island Escort Agencies, Long Island TV/TS, Long Island Fetish/Fant
...[SNIP]...
</tr>

Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND ad.id=person.id
AND ad.id=category.id
AND ad.id=city.id
AND ad.active='Y'
AN' at line 6

1.2. http://www.epicdreams.com/listings.shtm [User-Agent HTTP header]  previous  next

Summary

Severity:   High
Confidence:   Tentative
Host:   http://www.epicdreams.com
Path:   /listings.shtm

Issue detail

The User-Agent HTTP header appears to be vulnerable to SQL injection attacks. The payloads 21003837'%20or%201%3d1--%20 and 21003837'%20or%201%3d2--%20 were each submitted in the User-Agent HTTP header. These two requests resulted in different responses, indicating that the input is being incorporated into a SQL query in an unsafe way.

Note that automated difference-based tests for SQL injection flaws can often be unreliable and are prone to false positive results. You should manually review the reported requests and responses to confirm whether a vulnerability is actually present.

Request 1

GET /listings.shtm HTTP/1.1
Host: www.epicdreams.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)21003837'%20or%201%3d1--%20
Connection: close

Response 1 (redirected)

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:31:35 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 58818

<html>
<head>
<title>Adult Entertainment, Escorts, Escort Reviews, Incall, Outcall, Erotic Massage, EpicDreams, Epic Dreams, Escort Photos, TV/TS, Escort Service, Escort Classifieds, BDSM</title>
<
...[SNIP]...
<a href="javascript:openPopUp2('profile.shtm?id=tskarenlv')" class="lnkBdLtHlBldNoUl">&nbsp;&nbsp;TS Karen Cummings</a>
   </div>
   <div class="mainImageContentBox">
   <a href="javascript:openPopUp2('profile.shtm?id=tskarenlv')" class="lnkBdLtGray"><img src="/images/profiles/tskarenlv/main.jpg" width="178" height="89" border="0" alt="Escort: TS Karen Cummings"></a></div>
</td>


<td width="33%" align="center">
   <div class="mainImageHeaderBox">
   <a href="javascript:openPopUp2('profile.shtm?id=0911kara')" class="lnkBdLtHlBldNoUl">&nbsp;&nbsp;kara kane</a>
   </div>
   <div class="mainImageContentBox">
   <a href="javascript:openPopUp2('profile.shtm?id=0911kara')" class="lnkBdLtGray"><img src="/images/profiles/0911kara/main.jpg" width="178" height="89" border="0" alt="Escort: kara kane"></a></div>
</td>


<td width="33%" align="center">
   <div class="mainImageHeaderBox">
   <a href="javascript:openPopUp2('profile.shtm?id=123Patricia')" class="lnkBdLtHlBldNoUl">&nbsp;&nbsp;Pamela Sweet</a>
   </div>
   <div class="mainImageContentBox">
   <a href="javascript:openPopUp2('profile.shtm?id=123Patricia')" class="lnkBdLtGray"><img src="/images/profiles/123Patricia/main.jpg" width="178" height="89" border="0" alt="Escort: Pamela Sweet"></a></div>
</td>

</tr><tr>
<td width="33%" align="center">
   <div class="mainImageHeaderBox">
   <a href="javascript:openPopUp2('profile.shtm?id=asiankitty')" class="lnkBdLtHlBldNoUl">&nbsp;&nbsp;Asian Kitty</a>
   </div>
   <div class="mainImageContentBox">
   <a href="javascript:openPopUp2('profile.shtm?id=asiankitty')" class="lnkBdLtGray"><img src="/images/profiles/asiankitty/main.jpg" width="178" height="89" border="0" alt="Escort: Asian Kitty"></a></div>
</td>


<td width="33%" align="center">
   <div class="mainImageHeaderBox">
   <a href="javascript:openPopUp2('profile.shtm?id=SoCalBeauty22')" class="lnkBdLtHlBldNoUl">&nbsp;&nbsp;Lovely Lauren</a>
   </div>
   <div class="mainImageContentBox">
   <a href="javascript:openPopUp2('profile.shtm?id=SoCalBeauty22')" class=
...[SNIP]...

Request 2

GET /listings.shtm HTTP/1.1
Host: www.epicdreams.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)21003837'%20or%201%3d2--%20
Connection: close

Response 2 (redirected)

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:31:40 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 58803

<html>
<head>
<title>Adult Entertainment, Escorts, Escort Reviews, Incall, Outcall, Erotic Massage, EpicDreams, Epic Dreams, Escort Photos, TV/TS, Escort Service, Escort Classifieds, BDSM</title>
<
...[SNIP]...
<a href="javascript:openPopUp2('profile.shtm?id=kellie36dd')" class="lnkBdLtHlBldNoUl">&nbsp;&nbsp;Kellie Sinz</a>
   </div>
   <div class="mainImageContentBox">
   <a href="javascript:openPopUp2('profile.shtm?id=kellie36dd')" class="lnkBdLtGray"><img src="/images/profiles/kellie36dd/main.jpg" width="178" height="89" border="0" alt="Escort: Kellie Sinz"></a></div>
</td>


<td width="33%" align="center">
   <div class="mainImageHeaderBox">
   <a href="javascript:openPopUp2('profile.shtm?id=tskarenlv')" class="lnkBdLtHlBldNoUl">&nbsp;&nbsp;TS Karen Cummings</a>
   </div>
   <div class="mainImageContentBox">
   <a href="javascript:openPopUp2('profile.shtm?id=tskarenlv')" class="lnkBdLtGray"><img src="/images/profiles/tskarenlv/main.jpg" width="178" height="89" border="0" alt="Escort: TS Karen Cummings"></a></div>
</td>


<td width="33%" align="center">
   <div class="mainImageHeaderBox">
   <a href="javascript:openPopUp2('profile.shtm?id=yesyesyes')" class="lnkBdLtHlBldNoUl">&nbsp;&nbsp;Isabel</a>
   </div>
   <div class="mainImageContentBox">
   <a href="javascript:openPopUp2('profile.shtm?id=yesyesyes')" class="lnkBdLtGray"><img src="/images/profiles/yesyesyes/main.jpg" width="178" height="89" border="0" alt="Escort: Isabel"></a></div>
</td>

</tr><tr>
<td width="33%" align="center">
   <div class="mainImageHeaderBox">
   <a href="javascript:openPopUp2('profile.shtm?id=SoCalBeauty22')" class="lnkBdLtHlBldNoUl">&nbsp;&nbsp;Lovely Lauren</a>
   </div>
   <div class="mainImageContentBox">
   <a href="javascript:openPopUp2('profile.shtm?id=SoCalBeauty22')" class="lnkBdLtGray"><img src="/images/profiles/SoCalBeauty22/main.jpg" width="178" height="89" border="0" alt="Escort: Lovely Lauren"></a></div>
</td>


<td width="33%" align="center">
   <div class="mainImageHeaderBox">
   <a href="javascript:openPopUp2('profile.shtm?id=0911kara')" class="lnkBdLtHlBldNoUl">&nbsp;&nbsp;kara kane</a>
   </div>
   <div class="mainImageContentBox">
   <a href="javascript:openPopUp2('profile.shtm?id=0911kara')" class="lnkBdLtGr
...[SNIP]...

2. Cleartext submission of password  previous  next
There are 2 instances of this issue:

Issue background

Passwords submitted over an unencrypted connection are vulnerable to capture by an attacker who is suitably positioned on the network. This includes any malicious party located on the user's own network, within their ISP, within the ISP used by the application, and within the application's hosting infrastructure. Even if switched networks are employed at some of these locations, techniques exist to circumvent this defence and monitor the traffic passing through switches.

Issue remediation

The application should use transport-level encryption (SSL or TLS) to protect all sensitive communications passing between the client and the server. Communications that should be protected include the login mechanism and related functionality, and any functions where sensitive data can be accessed or privileged actions can be performed. These areas of the application should employ their own session handling mechanism, and the session tokens used should never be transmitted over unencrypted communications. If HTTP cookies are used for transmitting session tokens, then the secure flag should be set to prevent transmission over clear-text HTTP.


2.1. http://www.epicdreams.com/login.shtm  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.epicdreams.com
Path:   /login.shtm

Issue detail

The page contains a form with the following action URL, which is submitted over clear-text HTTP:The form contains the following password field:

Request

GET /login.shtm HTTP/1.1
Host: www.epicdreams.com
Proxy-Connection: keep-alive
Referer: http://www.epicdreams.com/service.shtm
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: EPICINFO=2ncrtnepvo6654u5d48brg9cq0; __utmz=83632194.1303071153.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=83632194.1226273673.1303071153.1303071153.1303071153.1; __utmc=83632194; __utmb=83632194.3.10.1303071153

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:16:14 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 28599

<!-- FILE: login.shtm -->


<html>
<head>
<title>EpicDreams</title>
<script language="JavaScript" src="/includes/global_functions.js"></script>

<script language="JavaScript">
/*function allfields_che
...[SNIP]...
<td class="DkGray">
<form action="login_confirm.shtm" method="post" name="login">

<table cellspacing="0" cellpadding="0" border="0">
...[SNIP]...
<td><input type="password" size="22" maxlength="40" name="pwenter"></td>
...[SNIP]...

2.2. http://www.epicdreams.com/signup_advertiser.shtm  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.epicdreams.com
Path:   /signup_advertiser.shtm

Issue detail

The page contains a form with the following action URL, which is submitted over clear-text HTTP:The form contains the following password fields:

Request

GET /signup_advertiser.shtm HTTP/1.1
Host: www.epicdreams.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:28:31 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 34692


<html>
<head>
<title>Free Escort Ad, Free Provider Ads, Free Adult Advertising, Sign up for free escort ad today</title>
<meta name="description" content="Sign-up for a free escort. Free ad for e
...[SNIP]...
<tr>


<form method="post" action="oops.html" name="signAdvertiser" onsubmit="return allfields_check();">
<input type="hidden" name="upgrade" value="">
...[SNIP]...
<td><input type="password" name="password1" size="22" maxlength="40" value=""></td>
...[SNIP]...
<td><input type="password" name="password2" size="22" maxlength="40" value=""></td>
...[SNIP]...

3. Password field with autocomplete enabled  previous  next
There are 2 instances of this issue:

Issue background

Most browsers have a facility to remember user credentials that are entered into HTML forms. This function can be configured by the user and also by applications which employ user credentials. If the function is enabled, then credentials entered by the user are stored on their local computer and retrieved by the browser on future visits to the same application.

The stored credentials can be captured by an attacker who gains access to the computer, either locally or through some remote compromise. Further, methods have existed whereby a malicious web site can retrieve the stored credentials for other applications, by exploiting browser vulnerabilities or through application-level cross-domain attacks.

Issue remediation

To prevent browsers from storing credentials entered into HTML forms, you should include the attribute autocomplete="off" within the FORM tag (to protect all form fields) or within the relevant INPUT tags (to protect specific individual fields).


3.1. http://www.epicdreams.com/login.shtm  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://www.epicdreams.com
Path:   /login.shtm

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Request

GET /login.shtm HTTP/1.1
Host: www.epicdreams.com
Proxy-Connection: keep-alive
Referer: http://www.epicdreams.com/service.shtm
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: EPICINFO=2ncrtnepvo6654u5d48brg9cq0; __utmz=83632194.1303071153.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=83632194.1226273673.1303071153.1303071153.1303071153.1; __utmc=83632194; __utmb=83632194.3.10.1303071153

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:16:14 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 28599

<!-- FILE: login.shtm -->


<html>
<head>
<title>EpicDreams</title>
<script language="JavaScript" src="/includes/global_functions.js"></script>

<script language="JavaScript">
/*function allfields_che
...[SNIP]...
<td class="DkGray">
<form action="login_confirm.shtm" method="post" name="login">

<table cellspacing="0" cellpadding="0" border="0">
...[SNIP]...
<td><input type="password" size="22" maxlength="40" name="pwenter"></td>
...[SNIP]...

3.2. http://www.epicdreams.com/signup_advertiser.shtm  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://www.epicdreams.com
Path:   /signup_advertiser.shtm

Issue detail

The page contains a form with the following action URL:The form contains the following password fields with autocomplete enabled:

Request

GET /signup_advertiser.shtm HTTP/1.1
Host: www.epicdreams.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:28:31 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 34692


<html>
<head>
<title>Free Escort Ad, Free Provider Ads, Free Adult Advertising, Sign up for free escort ad today</title>
<meta name="description" content="Sign-up for a free escort. Free ad for e
...[SNIP]...
<tr>


<form method="post" action="oops.html" name="signAdvertiser" onsubmit="return allfields_check();">
<input type="hidden" name="upgrade" value="">
...[SNIP]...
<td><input type="password" name="password1" size="22" maxlength="40" value=""></td>
...[SNIP]...
<td><input type="password" name="password2" size="22" maxlength="40" value=""></td>
...[SNIP]...

4. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.epicdreams.com
Path:   /categories.shtm

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Issue background

When a web browser makes a request for a resource, it typically adds an HTTP header, called the "Referer" header, indicating the URL of the resource from which the request originated. This occurs in numerous situations, for example when a web page loads an image or script, or when a user clicks on a link or submits a form.

If the resource being requested resides on a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information will be transmitted to the other domain. If the other domain is not fully trusted by the application, then this may lead to a security compromise.

You should review the contents of the information being transmitted to other domains, and also determine whether those domains are fully trusted by the originating application.

Today's browsers may withhold the Referer header in some situations (for example, when loading a non-HTTPS resource from a page that was loaded over HTTPS, or when a Refresh directive is issued), but this behaviour should not be relied upon to protect the originating URL from disclosure.

Note also that if users can author content within the application then an attacker may be able to inject links referring to a domain they control in order to capture data from URLs used within the application.

Issue remediation

The application should never transmit any sensitive information within the URL query string. In addition to being leaked in the Referer header, such information may be logged in various locations and may be visible on-screen to untrusted parties.

Request

GET /categories.shtm?cn=Long%20Island%20Escorts&catcity=210 HTTP/1.1
Host: www.epicdreams.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:12:21 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 35302


<html>
<head>
<title>Long Island Escorts, Long Island Escort Service, Long Island Erotic Massage Service, Long Island Tantra, Long Island Escort Agencies, Long Island TV/TS, Long Island Fetish/Fant
...[SNIP]...
<p><a href="http://www.ashleymadison.com/escort/A13534+epic"><img src="http://www.epicdreams.com/images/banners_right/rb_oursecret.jpg">
...[SNIP]...
<p><a href="http://arrangementseekers.com/?landing=index_escorts&referrer=152&campaign=epic"><img src="http://www.epicdreams.com/images/banners_right/rb_arrangementseekers.jpg">
...[SNIP]...
<a href="http://shopping.epicdreams.com"><img src="http://63.87.241.2/images/banners/payperview5.gif"></a>
...[SNIP]...

5. Cookie without HttpOnly flag set  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.epicdreams.com
Path:   /categories.shtm

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.

Issue background

If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.

Issue remediation

There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.

You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.

Request

GET /categories.shtm?cn=Long%20Island%20Escorts&catcity=210 HTTP/1.1
Host: www.epicdreams.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:12:20 GMT
Server: Apache
Set-Cookie: EPICINFO=2ncrtnepvo6654u5d48brg9cq0; expires=Mon, 18-Apr-2011 20:12:20 GMT; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 35313


<html>
<head>
<title>Long Island Escorts, Long Island Escort Service, Long Island Erotic Massage Service, Long Island Tantra, Long Island Escort Agencies, Long Island TV/TS, Long Island Fetish/Fant
...[SNIP]...

6. TRACE method is enabled  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.epicdreams.com
Path:   /

Issue description

The TRACE method is designed for diagnostic purposes. If enabled, the web server will respond to requests which use the TRACE method by echoing in its response the exact request which was received.

Although this behaviour is apparently harmless in itself, it can sometimes be leveraged to support attacks against other application users. If an attacker can find a way of causing a user to make a TRACE request, and can retrieve the response to that request, then the attacker will be able to capture any sensitive data which is included in the request by the user's browser, for example session cookies or credentials for platform-level authentication. This may exacerbate the impact of other vulnerabilities, such as cross-site scripting.

Issue remediation

The TRACE method should be disabled on the web server.

Request

TRACE / HTTP/1.0
Host: www.epicdreams.com
Cookie: 91abc504605cc68d

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:12:22 GMT
Server: Apache
Connection: close
Content-Type: message/http

TRACE / HTTP/1.0
Host: www.epicdreams.com
Cookie: 91abc504605cc68d; EPICINFO=2ncrtnepvo6654u5d48brg9cq0


7. Email addresses disclosed  previous  next
There are 4 instances of this issue:

Issue background

The presence of email addresses within application responses does not necessarily constitute a security vulnerability. Email addresses may appear intentionally within contact information, and many applications (such as web mail) include arbitrary third-party email addresses within their core content.

However, email addresses of developers and other individuals (whether appearing on-screen or hidden within page source) may disclose information that is useful to an attacker; for example, they may represent usernames that can be used at the application's login, and they may be used in social engineering attacks against the organisation's personnel. Unnecessary or excessive disclosure of email addresses may also lead to an increase in the volume of spam email received.

Issue remediation

You should review the email addresses being disclosed by the application, and consider removing any that are unnecessary, or replacing personal addresses with anonymous mailbox addresses (such as helpdesk@example.com).


7.1. http://www.epicdreams.com/escort_calendar.shtm  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.epicdreams.com
Path:   /escort_calendar.shtm

Issue detail

The following email address was disclosed in the response:

Request

GET /escort_calendar.shtm HTTP/1.1
Host: www.epicdreams.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:28:13 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 34933


<!-- FILE: escort_calendar.shtm -->
<html>
<head>


<title>Escort Calendar For </title>
<script language="JavaScript" src="/includes/global_functions.js"></script>
<meta name="description
...[SNIP]...
<meta name="reply-to" content="customercare@epicdreams.com">
...[SNIP]...

7.2. http://www.epicdreams.com/service.shtm  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.epicdreams.com
Path:   /service.shtm

Issue detail

The following email address was disclosed in the response:

Request

GET /service.shtm HTTP/1.1
Host: www.epicdreams.com
Proxy-Connection: keep-alive
Referer: http://www.epicdreams.com/advertise.shtm
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: EPICINFO=2ncrtnepvo6654u5d48brg9cq0; __utmz=83632194.1303071153.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=83632194.1226273673.1303071153.1303071153.1303071153.1; __utmc=83632194; __utmb=83632194.2.10.1303071153

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:16:05 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 36810


<!-- FILE: service.shtm -->
<html>
<head>
<title>Provider ad help, customer service, Membership help, help desk</title>
<meta name="description" content="EpicDreams CustomerCare Center to help Provi
...[SNIP]...
<meta name="reply-to" content="customercare@epicdreams.com">
...[SNIP]...

7.3. http://www.epicdreams.com/signup_advertiser.shtm  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.epicdreams.com
Path:   /signup_advertiser.shtm

Issue detail

The following email addresses were disclosed in the response:

Request

GET /signup_advertiser.shtm HTTP/1.1
Host: www.epicdreams.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:28:31 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 34692


<html>
<head>
<title>Free Escort Ad, Free Provider Ads, Free Adult Advertising, Sign up for free escort ad today</title>
<meta name="description" content="Sign-up for a free escort. Free ad for e
...[SNIP]...
<meta name="reply-to" content="customercare@epicdreams.com">
...[SNIP]...
</span> Please supply your email address. (example: johndoe@yourdomain.com) An EpicDreams Welcome Letter containing your account information will be sent to this email address. This email will also be used to log into your account.</td>
...[SNIP]...

7.4. http://www.epicdreams.com/topics.shtm  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.epicdreams.com
Path:   /topics.shtm

Issue detail

The following email address was disclosed in the response:

Request

GET /topics.shtm HTTP/1.1
Host: www.epicdreams.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:28:13 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 33350


<html>
<head>
<title>EpicDreams Adult Escort Topics and Message Boards</title>
<script language="JavaScript" src="/includes/global_functions.js"></script>
<meta name="description" content="EpicDream
...[SNIP]...
<meta name="reply-to" content="customercare@epicdreams.com">
...[SNIP]...

8. Robots.txt file  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.epicdreams.com
Path:   /images/global/pixel.gif

Issue detail

The web server contains a robots.txt file.

Issue background

The file robots.txt is used to give instructions to web robots, such as search engine crawlers, about locations within the web site which robots are allowed, or not allowed, to crawl and index.

The presence of the robots.txt does not in itself present any kind of security vulnerability. However, it is often used to identify restricted or private areas of a site's contents. The information in the file may therefore help an attacker to map out the site's contents, especially if some of the locations identified are not linked from elsewhere in the site. If the application relies on robots.txt to protect access to these areas, and does not enforce proper access control over them, then this presents a serious vulnerability.

Issue remediation

The robots.txt file is not itself a security threat, and its correct use can represent good practice for non-security reasons. You should not assume that all web robots will honour the file's instructions. Rather, assume that attackers will pay close attention to any locations identified in the file. Do not rely on robots.txt to provide any kind of protection over unauthorised access.

Request

GET /robots.txt HTTP/1.0
Host: www.epicdreams.com

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:12:22 GMT
Server: Apache
Last-Modified: Mon, 27 Dec 2004 01:53:33 GMT
ETag: "c03a2-91-3ec2f342b4140"
Accept-Ranges: bytes
Content-Length: 145
Connection: close
Content-Type: text/plain; charset=UTF-8

User-agent: *
Disallow: /admin/
Disallow: /banners/
Disallow: /css/
Disallow: /images/
Disallow: /includes/
Disallow: /tour/
Disallow: /features/

9. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.epicdreams.com
Path:   /images/global/favicon.ico

Issue detail

The response contains the following Content-type statement:The response states that it contains plain text. However, it actually appears to contain unrecognised content.

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.

Request

GET /images/global/favicon.ico HTTP/1.1
Host: www.epicdreams.com
Proxy-Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: EPICINFO=2ncrtnepvo6654u5d48brg9cq0; __utmz=83632194.1303071153.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=83632194.1226273673.1303071153.1303071153.1303071153.1; __utmc=83632194; __utmb=83632194.1.10.1303071153

Response

HTTP/1.1 200 OK
Date: Sun, 17 Apr 2011 20:12:23 GMT
Server: Apache
Last-Modified: Tue, 13 May 2003 18:18:10 GMT
ETag: "c0695-57e-3bd8fb7b1fc80"
Accept-Ranges: bytes
Content-Length: 1406
Connection: close
Content-Type: text/plain; charset=UTF-8

..............h.......(....... ...........@................................................................................................................//..SS..kg.................................
...[SNIP]...

Report generated by XSS.CX at Sun Apr 17 19:27:28 CDT 2011.