Weakness · High

CWE-593: Authentication Bypass: OpenSSL CTX Object Modified after SSL Objects are Created

What it is

The product modifies the SSL context after connection creation has begun.

MITRE CWE 4.19.1

Severity (our rating)
High
Likelihood of exploit
Not rated by MITRE
Introduced during
Implementation
Exploited in the wild
No CVE in CISA's catalog

In more detail

If the program modifies the SSL_CTX object after creating SSL objects from it, there is the possibility that older SSL objects created from the original context could all be affected by that change.

What an attacker can do

  • Bypass Protection Mechanism (Access Control)
  • Read Application Data (Confidentiality)

How to prevent it

Architecture and Design

  • Use a language or a library that provides a cryptography framework at a higher level of abstraction.

Implementation

  • Most SSL_CTX functions have SSL counterparts that act on SSL-type objects.
  • Applications should set up an SSL_CTX completely, before creating SSL objects from it.

CWE-593 on MITRE's CWE site

H2 Security

Found it in your code?

We review where it appears, fix it with your team, and check it was not already used against you.

Talk to our team

T Academy

Stop writing it in the first place

Learn to build software and systems without weaknesses like this one, with practice on real hosts in your browser, every objective checked on the machine.

Start free

Source: MITRE Common Weakness Enumeration, CWE version 4.19.1. CWE is a trademark of The MITRE Corporation.