Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>Is this XSS?</p> </blockquote> <p>Yes, this is an <a href="https://www.owasp.org/index.php/Injection_Flaws">injection flaw</a> in general and would be referred to as a XSS exploit in this particular case as it’s JavaScript that was injected.</p> <p>But this injection flaw, where one user’s input gets reflected to other users without any changes, can also yield to other attacks like <a href="http://en.wikipedia.org/wiki/Website_defacement">defacement</a>.</p> <blockquote> <p>Would this work?</p> </blockquote> <p>Yes, it’s very likely that this would work as it’s the origin server that serves this code snipped just like any other code in the web page. So it’s like the author of the web site is the originator of this code and will be treated likewise.</p> <blockquote> <p>Are there any precautions developers should take against XSS other than escaping HTML?</p> </blockquote> <p>There are actually three different types of XSS: <a href="https://www.owasp.org/index.php/DOM_Based_XSS">DOM based XSS</a>, <a href="https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)#Reflected_XSS_Attacks">Reflected XSS</a>, and <a href="https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)#Stored_XSS_Attacks">Stored/persistent XSS</a>). Your example is a stored/persistend XSS exploit as the server deploys the exploit with every request.</p> <p>The general rule is not to trust any user input. That said either only valid user input should be allowed or the user input is filtered (removing invalid values) or properly encoded (convert invalid values) before outputting it. See <a href="https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet">OWASP’s XSS Cheat Sheet</a> for further information.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload