Nature | Type | ID | Name |
---|---|---|---|
ChildOf | S | 100 | Overflow Buffers |
Survey
The attacker surveys the target application, possibly as a valid and authenticated user
Technique |
---|
Spidering web sites for inputs that involve potential filtering |
Brute force guessing of filtered inputs |
Attempt injections
Try to feed overly long data to the system. This can be done manually or a dynamic tool (black box) can be used to automate this. An attacker can also use a custom script for that purpose.
Technique |
---|
Brute force attack through black box penetration test tool. |
Fuzzing of communications protocols |
Manual testing of possible inputs with attack data. |
Monitor responses
Watch for any indication of failure occurring. Carefully watch to see what happened when filter failure occurred. Did the data get in?
Technique |
---|
Boron tagging. Choose clear attack inputs that are easy to notice in output. In binary this is often 0xa5a5a5a5 (alternating 1s and 0s). Another obvious tag value is all zeroes, but it is not always obvious what goes wrong if the null values get into the data. |
Check Log files. An attacker with access to log files can look at the outcome of bad input. |
Abuse the system through filter failure
An attacker writes a script to consistently induce the filter failure.
Technique |
---|
DoS through filter failure. The attacker causes the system to crash or stay down because of its failure to filter properly. |
Malicious code execution. An attacker introduces a malicious payload and executes arbitrary code on the target system. |
An attacker can use the filter failure to introduce malicious data into the system and leverage a subsequent SQL injection, Cross Site Scripting, Command Injection or similar weakness if it exists. |
An attacker can simply overflow a buffer by inserting a long string into an attacker-modifiable injection vector. The result can be a DoS.
Exploiting a buffer overflow to inject malicious code into the stack of a software system or even the heap can require a higher skill level.
Scope | Likelihood | Impact | Note |
---|---|---|---|
Integrity | N/A | Modify Data | N/A |
ConfidentialityIntegrityAvailability | N/A | Execute Unauthorized Commands | Run Arbitrary Code |
ConfidentialityAccess ControlAuthorization | N/A | Bypass Protection Mechanism | N/A |
Availability | N/A | Unreliable Execution | N/A |
ID | Name |
---|---|
CWE-118 | Incorrect Access of Indexable Resource ('Range Error') |
CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer |
CWE-120 | Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') |
CWE-20 | Improper Input Validation |
CWE-680 | Integer Overflow to Buffer Overflow |
CWE-697 | Incorrect Comparison |
CWE-733 | Compiler Optimization Removal or Modification of Security-critical Code |
CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') |
Taxonomy Name | Entry ID | Entry Name |
---|