Umbra Wiki weakness weakness/CWE-430
Back to wiki

CWE-430 — Deployment of Wrong Handler

provenance: imported · CWE: CWE-430

CWE-430: Deployment of Wrong Handler

MITRE CWE weakness

Kind Weakness
Abstraction Base
Status Incomplete
Likelihood of exploit

Description

The wrong "handler" is assigned to process an object.

An example of deploying the wrong handler would be calling a servlet to reveal source code of a .JSP file, or automatically "determining" type of the object even if it is contradictory to an explicitly specified type.

Common consequences

  • Integrity, Other: Varies by Context, Unexpected State

Mitigations

Architecture and Design — Perform a type check before interpreting an object.

Architecture and Design — Reject any inconsistent types, such as a file with a .GIF extension that appears to consist of PHP code.

References

  • CWE page: https://cwe.mitre.org/data/definitions/430.html
  • CWE list: https://cwe.mitre.org/data/index.html