Difference between revisions of "Using the wrong operator"

Jump to: navigation, search
(Related Controls)
(Redirected page to Vulnerabilities)
Line 1: Line 1:
#REDIRECT [[Vulnerabilities]]
Last revision (mm/dd/yy): '''{{REVISIONMONTH}}/{{REVISIONDAY}}/{{REVISIONYEAR}}'''
[[ASDR_TOC_Vulnerabilities|Vulnerabilities Table of Contents]]
This is a common error given when an operator is used which does not make sense in context.
'''Exposure period'''
* Pre-design through Build: The use of tools to detect this problem is recommended.
* Implementation: Many logic errors can lead to this condition. It can be exacerbated by lack, of or misuse, of mitigating technologies.
* Languages: Any
* Operating platforms: Any
'''Required resources'''
'''Likelihood of exploit'''
These types of bugs generally are the result of a typo. Although most of them can easily be found when testing of the program, it is important that one correct these problems, since they almost certainly will break the code.
==Risk Factors==
In C:
char foo;
==Related [[Attacks]]==
* [[Attack 1]]
* [[Attack 2]]
==Related [[Vulnerabilities]]==
* [[Vulnerability 1]]
* [[Vulnerabiltiy 2]]
==Related [[Controls]]==
* Pre-design through Build: Most static analysis programs should be able to catch these errors.
* Implementation: Save an index variable. This is the recommended solution. Rather than subtract pointers from one another, use an index variable of the same size as the pointers in question. Using this variable, "walk" from one pointer to the other and calculate the difference. Always sanity check this number.
==Related [[Technical Impacts]]==
* [[Technical Impact 1]]
* [[Technical Impact 2]]
[[Category:FIXME|add links
In addition, one should classify vulnerability based on the following subcategories: Ex:<nowiki>[[Category:Error Handling Vulnerability]]</nowiki>
Availability Vulnerability
Authorization Vulnerability
Authentication Vulnerability
Concurrency Vulnerability
Configuration Vulnerability
Cryptographic Vulnerability
Encoding Vulnerability
Error Handling Vulnerability
Input Validation Vulnerability
Logging and Auditing Vulnerability
Session Management Vulnerability]]
[[Category:OWASP ASDR Project]]
[[Category:General Logic Error Vulnerability]]

Latest revision as of 14:03, 5 April 2014

Redirect to: