Skip to content
OpenAdvisories

Weakness (CWE)

CWE-644: Improper Neutralization of HTTP Headers for Scripting Syntax

Variant Incomplete

The product does not neutralize or incorrectly neutralizes web scripting syntax in HTTP headers that can be used by web browser components that can process raw headers, such as Flash.

How to prevent it (2 mitigations)
  1. Architecture and Design

    Carefully control data that is being placed both in HTTP response headers and in the HTTP response body to ensure that no scripting syntax is present, taking various encodings into account. Perform output validation in order to filter/escape/encode unsafe data that is being passed from the server in an HTTP response header.

  2. Architecture and Design

    Disable script execution functionality in the clients' browser.

Source: MITRE CWE-644

1 result · Clear filters · Feed