Skip to content

feat(java): detect LDAP StartTLS fail-open fallback to plaintext (CWE-319) - #120

Open
ai-anant wants to merge 1 commit into
CodeVigilant:mainfrom
ai-anant:rule/java-jenkins-starttls-fail-open
Open

feat(java): detect LDAP StartTLS fail-open fallback to plaintext (CWE-319)#120
ai-anant wants to merge 1 commit into
CodeVigilant:mainfrom
ai-anant:rule/java-jenkins-starttls-fail-open

Conversation

@ai-anant

Copy link
Copy Markdown

Detects a Java code shape where an LDAP StartTLS upgrade (extendedOperation(new StartTlsRequest())) is attempted but the failure path re-creates the InitialLdapContext and continues with the plaintext connection instead of aborting. In that shape, bind credentials can be transmitted in cleartext when the TLS upgrade is refused (STARTTLS downgrade). The rule fires only when the catch block of the StartTLS attempt re-initializes the plaintext context (fail-open), and stays silent when the failure path aborts (fail-closed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant