logo

User Controllable HTML Element Attribute (Potential XSS)

  • Risk:
  • Informational

  • Type:
  • Passive
Summary
This check looks at user-supplied input in query string parameters and POST data to identify where certain HTML attribute values might be controlled. This provides hot-spot detection for XSS (cross-site scripting) that will require further review by a security analyst to determine exploitability.
Solution
Validate all input and sanitize output it before writing to any HTML attributes.
Other info
User-controlled HTML attribute values were found. Try injecting special characters to see if XSS might be possible. The page at the following URL: http://example.com/i.php?name=fred appears to include user input in: a(n) [img] tag [alt] attribute The user input found was: name=fred The user-controlled value was: pscanrules.usercontrolledhtmlattributes.
References

https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html

Back <<