CWE-593

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

High

Description

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

Potential Impact

How to Fix

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.

Implementation

Applications should set up an SSL_CTX completely, before creating SSL objects from it.

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-593 vulnerabilities in your codebase.

Get Security Assessment