Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: properly handle timeouts during OpenSSL cipher enumeration #733

Merged
merged 5 commits into from
Jan 17, 2025

Conversation

hackerbuddy
Copy link

Issue

Running ./tlsx -u IP_WITH_WAF_PROTECTION -ve -cert -json -sm openssl -ce against some hosts with WAF protection will cause the tlsx program to never complete.

Explanation

Timeouts have not been implemented for OpenSSL cipher enumeration in the tlsx scanning tool in the execOpenSSL() function. Due to this issue, if partway through scanning, the openssl binary becomes unresponsive for any reason (e.g. WAF causes scanned IP address to stop responding to openssl halfway through scanning), the tlsx program will also become unresponsive, and may not finish.

Fix

Simply use the Timeout designated in flags.

@hackerbuddy hackerbuddy changed the title Bugfix: Properly handle timeouts during OpenSSL cipher enumeration bugfix: Properly handle timeouts during OpenSSL cipher enumeration Jan 16, 2025
@hackerbuddy hackerbuddy changed the title bugfix: Properly handle timeouts during OpenSSL cipher enumeration bugfix: properly handle timeouts during OpenSSL cipher enumeration Jan 16, 2025
@ehsandeep ehsandeep changed the base branch from main to dev January 17, 2025 07:12
@ehsandeep ehsandeep requested a review from Mzack9999 January 17, 2025 07:14
Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!

@ehsandeep ehsandeep merged commit bcb421e into projectdiscovery:dev Jan 17, 2025
8 checks passed
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.

3 participants