Skip to content

Configuration: Stored XSS Injection

Identifier: stored_xss

Scanner(s) Support

GraphQL Scanner REST Scanner WebApp Scanner

Description

Stored XSS vulnerabilities occur when user input is not properly checked and ends up being saved into a database, letting malicious code sneak in.

A malicious user can insert a script into the database, which may be reflected and executed by other users.

References:

Configuration

Example

Example configuration:

---
security_tests:
  stored_xss:
    assets_allowed:
    - REST
    - GRAPHQL
    - WEBAPP
    skip: false

Reference

assets_allowed

Type : List[AssetType]*

List of assets that this check will cover.

skip

Type : boolean

Skip the test if true.