logo
Home/CWEs/CWE-81/

CWE-81 - Improper Neutralization of Script in an Error Message Web Page

  • Abstraction:Variant
  • Structure:Simple
  • Status:Incomplete
  • Release Date:2006-07-19
  • Latest Modification Date:2023-06-29

Weakness Name

Improper Neutralization of Script in an Error Message Web Page

Description

The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters that could be interpreted as web-scripting elements when they are sent to an error page.

Error pages may include customized 403 Forbidden or 404 Not Found pages. When an attacker can trigger an error that contains script syntax within the attacker's input, then cross-site scripting attacks may be possible.

Common Consequences

Scope: Confidentiality, Integrity, Availability

Impact: Read Application Data, Execute Unauthorized Code or Commands

Related Weaknesses

CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')High

CWE-209Generation of Error Message Containing Sensitive InformationHigh

CWE-390Detection of Error Condition Without ActionMedium