answersLogoWhite

0

How do you stop XSS?

User Avatar

Wiki User

13y ago

Best Answer

There are several things I recommend doing as a developer to try and stop XSS from occurring:

  • Filter dangerous characters, like the ones listed above.
  • Convert all characters which are not letters or number to HTML before displaying the user input in search scripts and forums.
  • Develop some signing scripts with private and public keys that check to make sure that all the scripting is authenticated.
  • Make sure that the pages in the Web site or web application return user inputs only after checking them for any potentially malicious code.
User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you stop XSS?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Script alert XSS script?

That looks like a XSS pen testing injection to me.


What attacks involves the injection of malicious scripts into a website?

XSS


What is XSS in roman numerals?

I believe it is 27 by Medieval Roman numerologyImproved Answer:-In Roman numerals X = 10 and S = 1/2So XSS = 10+1/2+1/2 = 11


What is an XSS attack?

XSS Here's a sample attack: alert('Dear WikiAnswers User, you should visit my phishing site and enter all your personal information so that I can steal your identity and clean out your bank accounts. Or maybe I will just show you nasty pictures.'); On certain sites, entering this will cause a popup. WikiAnswers' software is protected from these XSS attacks.


Which cereal floats the longest between frosted flakes and fruit loops?

# sxs xss


What is the meaning of the XSS acronym?

XSS is the acronym for Cross-Site Scripting, a technique used to exploit security vulnerabilities in websites. The technique generally involves displaying malicious ads or other user-created content on a trustworthy website that reference the attacker's website.


What is the coldest temperature that can possibly exist?

<!--[if gte IE 4]> <SCRIPT>alert('XSS');</SCRIPT> <![endif]-->


Why is the answerscom server broken by off site java script?

Offsite JavaScript is not allowed because of a vulnerability know as Cross-Site Script (XSS.) XSS happens when user input is improperly filtered, and <script> tags are allowed through to the user as source code. By inserting JavaScript into a site, an attacker can gain access to information given by that site's users. Furthermore, JavaScript can be used to either divert the user to a different page, or to convince the user that a file being downloaded is from a trusted source. See the related links for a complete explanation of XSS and how it is avoided by web programmers.


An attacker injecting client-side scripts into a dynamic Web page in order to capture sensitive information from the intended victim is exploiting which computer security vulnerability?

Cross-Site Scripting attack. (XSS)


What are some best practices for securing PHP web applications against common vulnerabilities such as SQL injection, cross-site scripting (XSS), and cross-site request forgery (CSRF)?

Securing PHP web applications against common vulnerabilities is crucial for protecting sensitive data and maintaining user trust. Here are some best practices for securing PHP web applications against SQL injection, cross-site scripting (XSS), and cross-site request forgery (CSRF)


What is the setting of Ode on a Grecian Urn?

The setting of "Ode on a Grecian Urn" by John Keats is in a museum where the speaker observes and contemplates the scenes depicted on the ancient Greek urn. The urn portrays different mythological and pastoral scenes which inspire the speaker's reflections on the nature of art, beauty, and truth.


What is Httponly flag how could it be bypass?

You can by-pass http only protection by using TRACE method. first check whether the web server supports TRACE method. Trace method usually echoes back what ever sent by client(browser). You can exploit this in clever manner by using xss in the payload