Katalog CWE

CWE-393 · Słabość

Return of Wrong Status Code

Abstrakcja
Bazowa
Status
Szkic
Dodano
19 lipca 2006
Ostatnia zmiana
11 grudnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

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.

This can lead to unpredictable behavior. If the function is used to make security-critical decisions or provide security-critical information, then the wrong status code can cause the product to assume that an action is safe or correct, even when it is not.

Skutki

  • Integrity, Other

    Unexpected State; Alter Execution Logic

    This weakness could place the system in a state that could lead unexpected logic to be executed or other unintended behaviors.

Przykłady podatności

Słabość nadrzędna

Kiedy powstaje

Dotyczy

Not Language-Specific

Uwagi

This can be primary or resultant, but it is probably most often primary to other issues.

Wpis z katalogu CWE 4.20.