Dark Mode
Capec-11 Detail
Cause Web Server Misclassification
Detailed Software Likelihood: Medium Typical Severity: High
Parents: 635
Threats: T68
| External ID | Source | Link | Description |
|---|---|---|---|
| CAPEC-11 | capec | https://capec.mitre.org/data/definitions/11.html | |
| CWE-430 | cwe | http://cwe.mitre.org/data/definitions/430.html | |
| T1036.006 | ATTACK | https://attack.mitre.org/wiki/Technique/T1036/006 | Masquerading: Space after Filename |
| REF-1 | reference_from_CAPEC | G. Hoglund, G. McGraw, Exploiting Software: How to Break Code, 2004--02, Addison-Wesley | |
| REF-6 | reference_from_CAPEC | http://www.securityfocus.com/bid/17204/info | Orion Application Server JSP Source Disclosure Vulnerability (Bugtraq ID: 17204), SecurityFocus |
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.
| Techniques |
|---|
| Attacker manually crawls application to identify file inputs |
| Attacker uses an automated tool to crawl application identify file inputs |
| Attacker manually assesses strength of access control protecting native application files from user control |
| Attacker explores potential for submitting files directly to the web server via independently constructed HTTP Requests |
Experiment
-
File misclassification shotgunning: An attacker makes changes to file extensions and MIME types typically processed by web servers and looks for abnormal behavior.
-
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.
| Techniques |
|---|
| Attacker submits files with switched extensions (e.g. .php on a .jsp file) to web server. |
| Attacker adds extra characters (e.g. adding an extra . after the file extension) to filenames of files submitted to web server. |
| Techniques |
|---|
| Craft a malicious file payload, modify file extension to the targeted file type and submit it to the web server. |
| Craft a malicious file payload, modify its associated MIME type to the targeted file type and submit it to the web server. |
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).
| Techniques |
|---|
| Manipulate the file names that are explicitly sent to the server. |
| Manipulate the MIME sent in order to confuse the web server. |
- 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.
- None: No specialized resources are required to execute this type of attack.
| Low | Medium |
|---|---|
| To modify file name or file extension | |
| To use misclassification to force the Web server to disclose configuration information, source, or binary data |
| Authorization | Access Control | Confidentiality |
|---|---|---|
| Gain Privileges | Gain Privileges | Read Data |
| Gain Privileges |
- J2EE application servers are supposed to execute Java Server Pages (JSP). There have been disclosure issues relating to Orion Application Server, where an attacker that appends either a period (.) or space characters to the end of a legitimate Http request, then the server displays the full source code in the attackers' web browser. http://victim.site/login.jsp. Since remote data and directory access may be accessed directly from the JSP, this is a potentially very serious issue. [REF-6]