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.
<a href="/industries.cfm?u=ConsolidationofStrategicIndustries&action=view_sub&id=677&parent_id=312">Consolidation of Strategic Industries</a>
</li>
<li>
<a href="/industries.cfm?u=CybersecurityCriticalInfrastructureProtectionandECommerce&action=view_sub&id=678&parent_id=312">Cybersecurity, Critical Infrastructure Protection, and E-Commerce</a>
</li>
<li>
<a href="/industries.cfm?u=ExportControlEconomicSanctionsandTradeRegulations&action=view_sub&id=679&parent_id=312">Export Control, Economic Sanctions, and Trade Regulations</a>
</li>
<li>
<a href="/industries.cfm?u=ForeignPolicyandNationalandHomelandSecurityCounseling&action=view_sub&id=681&parent_id=312">Foreign Policy and National and Homeland Security Counseling</a>
<div class="copy"> <p>Rapid globalization and technological advances have brought national and homeland security concerns into the commercial sphere in unprecedented ways. Arnold & Porter LLP's national and homeland security team brings clients innovative solutions to the numerous law and policy issues that have become critical to the success of both international and US domestic commercial transactions. We counsel government contractors and their commercial clients, sovereign governments, and individuals, offering extensive legal experience on matters with a national and homeland security dimension, coupled with in-depth knowledge of our clients' businesses, technologies, and long-term strategies. </p><p>We also understand the legal and policy framework in which particular issues arise, and the process by which sensitive national and homeland security decisions are made. Many of the attorneys on our team have served at the highest levels of the US government agencies involved in promulgating and enforcing these laws and regulations, including the former General Counsel of the Central Intelligence Agency; the former General Counsel of the National Security Agency; the ranking member of the House Select Committee on Homeland Security; the former Legal Adviser for the Department of State; a former Department of Justice lawyer; and an attorney who served on the staff of the Senate Armed Services Committee and with the Department of State.</p><p>Our clients benefit from a fully integrated practice that works hand-in-hand with colleagues in the related areas of government contracts, intellectual property, corporate and securities, pharmaceuticals and medical devices, information security and privacy, litigation, and criminal investigations. Our comprehensive approach allows us to bring together teams from across our firm to address our clients' most pressing and complex legal needs with insight and creativity. </p> </div>
<a href="/industries.cfm?u=ConsolidationofStrategicIndustries&action=view_sub&id=677&parent_id=312">Consolidation of Strategic Industries</a>
</li>
<li>
<a href="/industries.cfm?u=CybersecurityCriticalInfrastructureProtectionandECommerce&action=view_sub&id=678&parent_id=312">Cybersecurity, Critical Infrastructure Protection, and E-Commerce</a>
</li>
<li>
<a href="/industries.cfm?u=ExportControlEconomicSanctionsandTradeRegulations&action=view_sub&id=679&parent_id=312">Export Control, Economic Sanctions, and Trade Regulations</a>
</li>
<li>
<a href="/industries.cfm?u=ForeignPolicyandNationalandHomelandSecurityCounseling&action=view_sub&id=681&parent_id=312">Foreign Policy and National and Homeland Security Counseling</a>
<div class="copy"> <p>Rapid globalization and technological advances have brought national and homeland security concerns into the commercial sphere in unprecedented ways. Arnold & Porter LLP's national and homeland security team brings clients innovative solutions to the numerous law and policy issues that have become critical to the success of both international and US domestic commercial transactions. We counsel government contractors and their commercial clients, sovereign governments, and individuals, offering extensive legal experience on matters with a national and homeland security dimension, coupled with in-depth knowledge of our clients' businesses, technologies, and long-term strategies. </p><p>We also understand the legal and policy framework in which particular issues arise, and the process by which sensitive national and homeland security decisions are made. Many of the attorneys on our team have served at the highest levels of the US government agencies involved in promulgating and enforcing these laws and regulations, including the former General Counsel of the Central Intelligence Agency; the former General Counsel of the National Security Agency; the ranking member of the House Select Committee on Homeland Security; the former Legal Adviser for the Department of State; a former Department of Justice lawyer; and an attorney who served on the staff of the Senate Armed Services Committee and with the Department of State.</p><p>Our clients benefit from a fully integrated practice that works hand-in-hand with colleagues in the related areas of government contracts, intellectual property, corporate and securities, pharmaceuticals and medical devices, information security and privacy, litigation, and criminal investigations. Our comprehensive approach allows us to bring together teams from across our firm to address our clients' most pressing and complex legal needs with insight and creativity. </p> </div>
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
See the remedy for solution
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.
<a href="/industries.cfm?u=ConsolidationofStrategicIndustries&action=view_sub&id=677&parent_id=312">Consolidation of Strategic Industries</a>
</li>
<li>
<a href="/industries.cfm?u=CybersecurityCriticalInfrastructureProtectionandECommerce&action=view_sub&id=678&parent_id=312">Cybersecurity, Critical Infrastructure Protection, and E-Commerce</a>
</li>
<li>
<a href="/industries.cfm?u=ExportControlEconomicSanctionsandTradeRegulations&action=view_sub&id=679&parent_id=312">Export Control, Economic Sanctions, and Trade Regulations</a>
</li>
<li>
<a href="/industries.cfm?u=ForeignPolicyandNationalandHomelandSecurityCounseling&action=view_sub&id=681&parent_id=312">Foreign Policy and National and Homeland Security Counseling</a>
<div class="copy"> <p>Rapid globalization and technological advances have brought national and homeland security concerns into the commercial sphere in unprecedented ways. Arnold & Porter LLP's national and homeland security team brings clients innovative solutions to the numerous law and policy issues that have become critical to the success of both international and US domestic commercial transactions. We counsel government contractors and their commercial clients, sovereign governments, and individuals, offering extensive legal experience on matters with a national and homeland security dimension, coupled with in-depth knowledge of our clients' businesses, technologies, and long-term strategies. </p><p>We also understand the legal and policy framework in which particular issues arise, and the process by which sensitive national and homeland security decisions are made. Many of the attorneys on our team have served at the highest levels of the US government agencies involved in promulgating and enforcing these laws and regulations, including the former General Counsel of the Central Intelligence Agency; the former General Counsel of the National Security Agency; the ranking member of the House Select Committee on Homeland Security; the former Legal Adviser for the Department of State; a former Department of Justice lawyer; and an attorney who served on the staff of the Senate Armed Services Committee and with the Department of State.</p><p>Our clients benefit from a fully integrated practice that works hand-in-hand with colleagues in the related areas of government contracts, intellectual property, corporate and securities, pharmaceuticals and medical devices, information security and privacy, litigation, and criminal investigations. Our comprehensive approach allows us to bring together teams from across our firm to address our clients' most pressing and complex legal needs with insight and creativity. </p> </div>
Netsparker identified that the target web server is disclosing the web server's version in the HTTP response. This information can help an attacker to gain a greater understanding of the system in use and potentially develop further attacks targeted at the specific web server version.
Impact
An attacker can look for specific security vulnerabilities for the version identified through the SERVER header information.
Remediation
Configure your web server to prevent information leakage from the SERVER header of its HTTP response.
<a href="/industries.cfm?u=ConsolidationofStrategicIndustries&action=view_sub&id=677&parent_id=312">Consolidation of Strategic Industries</a>
</li>
<li>
<a href="/industries.cfm?u=CybersecurityCriticalInfrastructureProtectionandECommerce&action=view_sub&id=678&parent_id=312">Cybersecurity, Critical Infrastructure Protection, and E-Commerce</a>
</li>
<li>
<a href="/industries.cfm?u=ExportControlEconomicSanctionsandTradeRegulations&action=view_sub&id=679&parent_id=312">Export Control, Economic Sanctions, and Trade Regulations</a>
</li>
<li>
<a href="/industries.cfm?u=ForeignPolicyandNationalandHomelandSecurityCounseling&action=view_sub&id=681&parent_id=312">Foreign Policy and National and Homeland Security Counseling</a>
<div class="copy"> <p>Rapid globalization and technological advances have brought national and homeland security concerns into the commercial sphere in unprecedented ways. Arnold & Porter LLP's national and homeland security team brings clients innovative solutions to the numerous law and policy issues that have become critical to the success of both international and US domestic commercial transactions. We counsel government contractors and their commercial clients, sovereign governments, and individuals, offering extensive legal experience on matters with a national and homeland security dimension, coupled with in-depth knowledge of our clients' businesses, technologies, and long-term strategies. </p><p>We also understand the legal and policy framework in which particular issues arise, and the process by which sensitive national and homeland security decisions are made. Many of the attorneys on our team have served at the highest levels of the US government agencies involved in promulgating and enforcing these laws and regulations, including the former General Counsel of the Central Intelligence Agency; the former General Counsel of the National Security Agency; the ranking member of the House Select Committee on Homeland Security; the former Legal Adviser for the Department of State; a former Department of Justice lawyer; and an attorney who served on the staff of the Senate Armed Services Committee and with the Department of State.</p><p>Our clients benefit from a fully integrated practice that works hand-in-hand with colleagues in the related areas of government contracts, intellectual property, corporate and securities, pharmaceuticals and medical devices, information security and privacy, litigation, and criminal investigations. Our comprehensive approach allows us to bring together teams from across our firm to address our clients' most pressing and complex legal needs with insight and creativity. </p> </div>