CWE-393: Return of Wrong Status Code
A function or operation returns an incorrect return value or status code that does not indicate the true result of execution, causing the product to modify its behavior based on the incorrect result.
Browse cwe weaknesses with official CWE context and Glexia analysis.
Search And Filters
Showing 50 of 969 CWE records · Page 8 of 20.
A function or operation returns an incorrect return value or status code that does not indicate the true result of execution, causing the product to modify its behavior based on the incorrect result.
The product does not properly check when a function or operation returns a value that is legitimate for the function, but is not expected by the product.
Catching NullPointerException should not be used as an alternative to programmatic checks to prevent dereferencing a null pointer.
Catching overly broad exceptions promotes complex error handling code that is more likely to contain security vulnerabilities.
The product throws or raises an overly broad exceptions that can hide important details and produce inappropriate responses to certain conditions.
The product does not properly control the allocation and maintenance of a limited resource.
The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.
The product makes resources available to untrusted parties when those resources are only intended to be accessed by the product.
A process does not close sensitive file descriptors before invoking a child process, which allows the child to perform unauthorized I/O operations using those descriptors.
The product does not release or incorrectly releases a resource before it is made available for re-use.
The product does not properly control situations in which an adversary can cause the product to consume or produce excessive resources without requiring the adversary to invest equivalent work or otherwise prove authorization, i.e., the adversary's influence is "asymmetric."
The product does not sufficiently monitor or control transmitted network traffic volume, so that an actor can cause the product to transmit more traffic than should be allowed for that actor.
An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.
The product allows an entity to perform a legitimate but expensive operation before authentication or authorization has taken place.
The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.
The product's resource pool is not large enough to handle peak demand, which allows an attacker to prevent others from accessing the resource by using a (relatively) large number of requests for resources.
The product properly checks for the existence of a lock, but the lock can be externally controlled or influenced by an actor that is outside of the intended sphere of control.
The product does not lock or does not correctly lock a resource when the product must have exclusive access to the resource.
A product does not check to see if a lock is present before performing sensitive operations on a resource.
The product calls free() twice on the same memory address.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
The product uses a primary channel for administration or restricted functionality, but it does not properly protect the channel.
The product protects a primary channel, but it does not use the same level of protection for an alternate channel.
The product opens an alternate channel to communicate with an authorized user, but the channel is accessible to other actors.
The product does not properly verify the source of a message in the Windows Messaging System while running at elevated privileges, creating an alternate channel through which an attacker can directly send a message to the product.
This entry has been deprecated because it was a duplicate of CWE-441. All content has been transferred to CWE-441.
The product does not sufficiently protect all possible paths that a user can take to access restricted functionality or resources.
The web application does not adequately enforce appropriate authorization on all restricted URLs, scripts, or files.
The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.
The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.
The product uses a search path that contains an unquoted element, in which the element contains whitespace or other separators. This can cause the product to access resources in a parent path.
The wrong "handler" is assigned to process an object.
A handler is not available or implemented.
The product uses a signal handler that shares state with other signal handlers, but it does not properly mask or prevent those signal handlers from being invoked while the original signal handler is still running.
The product stores raw content or supporting code under the web document root with an extension that is not specifically handled by the server.
The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.
An interaction error occurs when two entities have correct behavior when running independently of each other, but when they are integrated as components in a larger system or process, they introduce incorrect behaviors that may cause resultant weaknesses.
Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.
A product acts as an intermediary or monitor between two or more endpoints, but it does not have a complete model of an endpoint's features, behaviors, or state, potentially causing the product to perform incorrect actions based on this incomplete model.
A's behavior or functionality changes with a new version of A, or a new environment, which is not known (or manageable) by B.
A feature, API, or function does not perform according to its specification.
The product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere. This causes the product to appear to be the source of the request, leading it to act as a proxy or other intermediary between the upstream component and the external actor.
This weakness can be found at CWE-113.
The product acts as an intermediary HTTP agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed HTTP requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination.
The user interface does not correctly enable or configure a security feature, but the interface provides feedback that causes the user to believe that the feature is in a secure state.
A UI function for a security feature appears to be supported and gives feedback to the user that suggests that it is supported, but the underlying functionality is not implemented.
A UI function is obsolete and the product does not warn the user.
The UI performs the wrong action with respect to the user's request.
The UI has multiple interpretations of user input but does not prompt the user when it selects the less secure interpretation.
The user interface (UI) does not properly represent critical information to the user, allowing the information - or its source - to be obscured or spoofed. This is often a component in phishing attacks.