CWE-430
Deployment of Wrong Handler
Description
The wrong "handler" is assigned to process an object or request.
Consequences
Integrity, Other
—
Varies by Context, Unexpected State
An example of deploying the wrong handler would be calling a servlet to reveal source code of a .JSP file, or
Mitigations
Phase: Architecture and Design
Perform a type check before interpreting an object.
Phase: Architecture and Design
Reject any inconsistent types, such as a file with a .GIF extension that appears to consist of PHP code.