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:
Hi-jacking users' active session
Changing the look of the page within the victims browser.
Mounting a successful phishing attack.
Intercept data and perform man-in-the-middle attacks.
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.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Error Report For: '"--></style></script><script>netsparker(0x00010E)</script></title> <meta name="description" content="W3Spy.net is a free online service where you can gather information about every website currently registered on the internet. Our software compiles data from various sources in real-time and presents you with a comprehensive report." /> <meta name="keywords" content="url, spy, w3spy, domain, report, information, stats, alexa, compete, info" /> <link rel="shortcut icon" href="http://w3spy.net/i/favicon.ico" /> <script type="text/javascript" src="http://w3spy.net/i/basic.js?v1"></script> <meta property="og:image" content="http://w3spy.net/i/fb.jpg" /> <meta property="og:title" content="W3Spy.net - Spy on any website!" />
Netsparker identified that the target web server is disclosing the PHP version in use through the HTTP response. This information can help an attacker to gain a greater understanding of the systems in use and potentially develop further attacks targeted at the specific version of PHP.
Impact
An attacker can look for specific security vulnerabilities for the version identified. Also the attacker can use this information in conjunction with the other vulnerabilities in the application or the web server.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>W3Spy.net - Spy Any Website - 4589 people online</title> <meta name="description" content="W3Spy.net is a free online service where you can gather information about every website currently registered on the internet. Our software compiles data from various sources in real-time and presents you with a comprehensive report." /> <meta name="keywords" content="url, spy, w3spy, domain, report, information, stats, alexa, compete, info" /> <link rel="shortcut icon" href="http://w3spy.net/i/favicon.ico" /> <script type="text/javascript" src="http://w3spy.net/i/basic.js?v1"></script> <meta property="og:image" content="http://w3spy.net/i/fb.jpg" /> <meta property="og:title" content="W3Spy.net - Spy on any website!" />
</div> <div id="page_frame"> <div id="page_left"> <div id="page_content"> <div>W3Spy.net is a free online service where you can gather information about every website currently registered on the internet. Our software compiles data from various sources in real-time and presents you with a comprehensive report. Using our service its completely free, and there is no daily lookup limit.</div> <div class="index_title">Recently Spied On Websites</div> <div class="content_items"> <ul><li><span>1 sec ago</span><a href="http://piko-shop.de.w3spy.net">piko-shop.de</a></li><li><span>2 sec ago</span><a href="http://evrythng.net.w3spy.net">evrythng.net</a></li><li><span>3 sec ago</span><a href="http://laptopbd.net.w3spy.net">laptopbd.net</a></li><li><span>4 sec ago</span><a href="http://bjwjx.com.w3spy.net">bjwjx.com</a></li><li><span>7 sec ago</span><a href="http://unitedandignited.com.w3spy.net">unitedandignited.com</a></li><li><span>1 min ago</span><a href="http://pornoshara.su.w3spy.net">pornoshara.su</a></li><li><span>1 min ago</span><a href="http://captoy.dk.w3spy.net">captoy.dk</a></li><li><span>1 min ago</span><a href="http://okuiaki.com.w3spy.net">okuiaki.com</a></li><li><span>1 min ago</span><a href="http://forex-eg.com.w3spy.net">forex-eg.com</a></li><li><span>2 min ago</span><a href="http://youkerala.com.w3spy.net">youkerala.com</a></li><li><span>2 min ago</span><a href="http://chasrothmanns.com.w3spy.net">chasrothmanns.com</a></li><li><span>2 min ago</span><a href="http://pandorajewellery-au.com.w3spy.net">pandorajewellery-au.com</a></li><li><span>2 min ago</span><a href="http://victimas-peru.org.w3spy.net">victimas-peru.org</a></li><li><span>2 min ago</span><a href="http://sportinsblog.blogspot.com.w3spy.net">sportinsblog.blogspot.com</a></li><li><span>3 min ago</span><a href="http://grafsoft.net.w3spy.net">grafsoft.net</a></li><li><span>3 min ago</span><a href="http://waytrading.de.w3spy.net">waytrading.de</a></li><li><span>3 min ago</span><a href="http://dzserver.blogspot.com.w3spy.net">dzserver.blogspot.com</a></li><li><span>3 min ago</span><a href="http://michaelwalkers.net.w3spy.net">michaelwalkers.net</a></li><li><span>3 min ago</span><a href="http://boogiezoneutopia.jp.w3spy.net">boogiezoneutopia.jp</a></li><li><span>4 min ago</span><a href="http://actlikeaman.org.w3spy.net">actlikeaman.org</a></li><li><span>4 min ago</span><a href="http://puma-nightrun.com.tw.w3spy.net">puma-nightrun.com.tw</a></li><li><span>4 min ago</span><a href="http://psc-psoe.es.w3spy.net">psc-psoe.es</a></li><li><span>4 min ago</span><a href="http://nexrcorp.com.w3spy.net">nexrcorp.com</a></li><li><span>4 min ago</span><a href="http://proteinshakeadvice.com.w3spy.net">proteinshakeadvice.com</a></li><li><span>4 min ago</span><a href="http://rubenkings.wordpress.com.w3spy.net">rubenkings.wordpress.com</a></li><li><span>4 min ago</span><a href="http://zhenhuakuaican.com.w3spy.net">zhenhuakuaican.com</a></li><li><span>5 min ago</span><a href="http://dishingfordana.com.w3spy.net">dishingfordana.com</a></li><li><span>5 min ago</span><a href="http://heyuu.net.w3spy.net">heyuu.net</a></li><li><span>5 min ago</span><a href="http://hoytemail.com.w3spy.net">hoytemail.com</a></li><li><span>5 min ago</span><a href="http://alemadult.com.w3spy.net">alemadult.com</a></li></ul> </div> </div> </div> <div id="page_right"> <div style="padding: 0 0 15px 15px">
<html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> <hr><center>nginx/0.8.52</center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page -->
Netsparker found e-mail addresses on the web site.
Impact
E-mail addresses discovered within the application can be used by both spam email engines and also brute force tools. Furthermore valid email addresses may lead to social engineering attacks .
Remedy
Use generic email addresses such as contact@ or info@ for general communications, remove user/people specific e-mail addresses from the web site, should this be required use submission forms for this purpose.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>W3Spy.net - Privacy Policy</title> <meta name="description" content="W3Spy.net is a free online service where you can gather information about every website currently registered on the internet. Our software compiles data from various sources in real-time and presents you with a comprehensive report." /> <meta name="keywords" content="url, spy, w3spy, domain, report, information, stats, alexa, compete, info" /> <link rel="shortcut icon" href="http://w3spy.net/i/favicon.ico" /> <script type="text/javascript" src="http://w3spy.net/i/basic.js?v1"></script> <meta property="og:image" content="http://w3spy.net/i/fb.jpg" /> <meta property="og:title" content="W3Spy.net - Spy on any website!" />
<div class="content_text">If you require any more information or have any questions about our privacy policy, please feel free to contact us by email at w3spy.net@gmail.com.
<br /><br />
At W3spy.net, the privacy of our visitors is of extreme importance to us. This privacy policy document outlines the types of personal information is received and collected by W3spy.net and how it is used.</div>
<div class="content_text"><b>Log Files</b></div>
<div class="content_text">Like many other Web sites, W3spy.net makes use of log files. The information inside the log files includes internet protocol ( IP ) addresses, type of browser, Internet Service Provider ( ISP ), date/time stamp, referring/exit pages, and number of clicks to analyze trends, administer the site, track user's movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable. </div>
<div class="content_text"><b>Cookies and Web Beacons</b></div>
<div class="content_text">W3spy.net does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser. </div>
<div class="content_text">Google, as a third party vendor, uses cookies to serve ads on W3spy.net.
<br />.:: Google's use of the DART cookie enables it to serve ads to users based on their visit to W3spy.net and other sites on the Internet.
<br />.:: Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - http://www.google.com/privacy_ads.html
<br /><br />
Some of our advertising partners may use cookies and web beacons on our site. Our advertising partners include ....
<br />Google Adsense</div>
<div class="content_text">
These third-party ad servers or ad networks use technology to the advertisements and links that appear on W3spy.net send directly to your browsers. They automatically receive your IP address when this occurs. Other technologies ( such as cookies, JavaScript, or Web Beacons ) may also be used by the third-party ad networks to measure the effectiveness of their advertisements and / or to personalize the advertising content that you see.
<br /><br />
W3spy.net has no access to or control over these cookies that are used by third-party advertisers.
<br /><br />
You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. W3spy.net's privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites.
<br /><br />
If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers' respective websites. </div>
Netsparker identified a possibly sensitive Robots.txt file with potentially sensitive content.
Impact
Depending on the content of the file, an attacker might discover hidden directories. Ensure that you have got nothing sensitive exposed within this folder such as the path of the administration panel.
Remedy
If disallowed paths are sensitive, do not write them in the robots.txt and ensure that they correctly protected by means of authentication.