Skip to content
OpenAdvisories

Weakness (CWE)

CWE-253: Incorrect Check of Function Return Value

Base Incomplete

The product incorrectly checks a return value from a function, which prevents it from detecting errors or exceptional conditions.

How to prevent it (3 mitigations)
  1. Architecture and Design

    Use a language or compiler that uses exceptions and requires the catching of those exceptions.

  2. Implementation

    Properly check all functions which return a value.

  3. Implementation

    When designing any function make sure you return a value or throw an exception in case of an error.

Source: MITRE CWE-253

2 results · Clear filters · Feed

  • Critical 9.8

    Authentication bypass in OpenText (Micro Focus) Enterprise Server

    User authentication with username and password credentials is ineffective in OpenText (Micro Focus) Visual COBOL, COBOL Server, Enterprise Developer, and Enterprise Server (including product variants such as Enterprise Test Server), versions 7.0 patch updates…

  • Critical 9.8

    keycloak-connect and keycloak-js improperly handle invalid tokens

    It was found that the Keycloak Node.js adapter 2.5 - 3.0 did not handle invalid tokens correctly. An attacker could use this flaw to bypass authentication and gain access to restricted information, or to possibly conduct further attacks.