CAPEC-11 Metadata
Likelihood of Attack
Medium
Typical Severity
High
Overview
Summary
An attack of this type exploits a Web server's decision to take action based on filename or file extension. Because different file types are handled by different server processes, misclassification may force the Web server to take unexpected action, or expected actions in an unexpected sequence. This may cause the server to exhaust resources, supply debug or system data to the attacker, or bind an attacker to a remote process.
Prerequisites
Web server software must rely on file name or file extension for processing. The attacker must be able to make HTTP requests to the web server.
Execution Flow
Step | Phase | Description | Techniques |
---|---|---|---|
1 | Explore | [Footprint file input vectors] Manually or using an automated tool, an attacker searches for all input locations where a user has control over the filenames or MIME types of files submitted to the web server. |
|
2 | Experiment | [File misclassification shotgunning] An attacker makes changes to file extensions and MIME types typically processed by web servers and looks for abnormal behavior. |
|
3 | Experiment | [File misclassification sniping] Understanding how certain file types are processed by web servers, an attacker crafts varying file payloads and modifies their file extension or MIME type to be that of the targeted type to see if the web server is vulnerable to misclassification of that type. |
|
4 | Exploit | [Disclose information] The attacker, by manipulating a file extension or MIME type is able to make the web server return raw information (not executed). |
|
Potential Solutions / Mitigations
Implementation: Server routines should be determined by content not determined by filename or file extension.
Related Weaknesses (CWE)
CWE ID | Description |
---|---|
CWE-430 | Deployment of Wrong Handler |
Related CAPECs
CAPEC ID | Description |
---|---|
CAPEC-635 | The extension of a file name is often used in various contexts to determine the application that is used to open and use it. If an attacker can cause an alternative application to be used, it may be able to execute malicious code, cause a denial of service or expose sensitive information. |
Taxonomy Mappings
Taxonomy: ATTACK
Entry ID | Entry Name |
---|---|
1036.006 | Masquerading: Space after Filename |
Stay Ahead of Attack Patterns
Understanding CAPEC patterns helps security professionals anticipate and thwart potential attacks. Leverage these insights to enhance threat modeling, strengthen your software development lifecycle, and train your security teams effectively.