BaseDraft

CWE-76Improper Neutralization of Equivalent Special Elements

Category: other

Description

The product correctly neutralizes certain special elements, but it improperly neutralizes equivalent special elements. The product may have a fixed list of special characters it believes is complete. However, there may be alternate encodings, or representations that also have the same meaning. For example, the product may filter out a leading slash (/) to prevent absolute path names, but does not account for a tilde (~) followed by a user name, which on some *nix systems could be expanded to an absolute pathname. Alternately, the product might filter a dangerous "-e" command-line switch when calling an external program, but it might not account for "--exec" or other switches that have the same semantics.

Common consequences· 1

  • Other — Other

Potential mitigations· 2

  • [Requirements]Programming languages and supporting technologies might be chosen which are not subject to these issues.
  • [Implementation]Utilize an appropriate mix of allowlist and denylist parsing to filter equivalent special element syntax from all input.

References

  1. https://cwe.mitre.org/data/definitions/76.html

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Improper Neutralization of Special Elements
CWE
Improper Neutralization of Escape, Meta, or Control Sequences
CWE
Improper Neutralization of Internal Special Elements
CWE
Improper Neutralization of Multiple Internal Special Elements
CWE
Improper Neutralization of Multiple Leading Special Elements
CWE
Improper Neutralization of Leading Special Elements
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.