-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
wpscan SSL Connect Error #1380
Comments
Are you using a proxy along with wpscan ? |
No |
Same here, and no proxy :) |
I think the issue is more on the side of https://github.com/wpscanteam/CMSScanner FYI I fixed it by commenting the following in /etc/ssl/openssl.cnf on my Kali:
|
Or CMSscanner could ask Typhoeus to ask Openssl to TLS < 1.2. Whatever you think is better... |
Fix above worked! By commenting out the MinProtocol & CipherString lines as suggested, I have gotten it to work. Thanks to @cnotin for the suggestion |
So it's clearly an issue of your system and the remote server not having a common protocol (such as TLS >= 1.2 local and TLS 1.0 only remote), nothing we can do about it, sorry. |
Maybe something we can add to the readme as a known issue?
The OP stated that it worked with cURL which is strange, unless incorrect.
…On Wed, 28 Aug 2019, 15:54 Erwan, ***@***.***> wrote:
So it's clearly an issue of your system and the remote server not having a
common protocol (such as TLS >= 1.2 local and TLS 1.0 only remote), nothing
we can do about it, sorry.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1380?email_source=notifications&email_token=AACO4KKV2CVXBHFEN6S26ZLQGZ7SJA5CNFSM4INUGWY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5LGOKY#issuecomment-525756203>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACO4KOBYVKIUDCF46F2GILQGZ7SJANCNFSM4INUGWYQ>
.
|
Technically wpscan could ask to bypass the default and allow a lower version. Your call :) |
I did try the --disable-tls-checks. I also tried it on three separate installations of Kali Linux |
I mean "--disable-tls-checks" doesn't enable TLS 1.0 yet, but it could be changed to do it. |
FYI, here is the related Kali bug: |
Could any of you run the script below from your system (with the OpenSSL config back to its original) against the blog you had issues with please ? # connect_check.rb
require 'typhoeus'
def check_target(url, params = {})
res = Typhoeus.get(url, params.merge(connecttimeout: 10))
puts "#{res.effective_url} - #{res.code} #{res.return_message}"
end
target = ARGV[0]
puts 'Not disabled:'
check_target(target)
puts
puts 'Disabled:'
check_target(target, ssl_verifypeer: false, ssl_verifyhost: 0, sslversion: :tlsv1) To run it: |
Here you go, with both:
# tail -n 3 /etc/ssl/openssl.cnf
[system_default_sect]
MinProtocol = TLSv1.2
CipherString = DEFAULT@SECLEVEL=2
# ruby test.rb https://redacted
Not disabled:
https://redacted - 0 SSL connect error
Disabled:
https://redacted - 0 SSL connect error
# tail -n 3 /etc/ssl/openssl.cnf
#[system_default_sect]
#MinProtocol = TLSv1.2
#CipherString = DEFAULT@SECLEVEL=2
# ruby test.rb https://redacted
Not disabled:
https://redacted - 0 SSL peer certificate or SSH remote key was not OK
Disabled:
https://redacted - 200 No error |
Looks like Typhoeus/curl cannot force the usage of TLS 1.0?
Versions:
|
It seems related to this: |
I tested something in: And with it, it works nice: # LD_LIBRARY_PATH=/root/curl/curl/lib/.libs/ wpscan --url https://tls-v1-0.badssl.com:1010/
_______________________________________________________________
__ _______ _____
\ \ / / __ \ / ____|
\ \ /\ / /| |__) | (___ ___ __ _ _ __ ®
\ \/ \/ / | ___/ \___ \ / __|/ _` | '_ \
\ /\ / | | ____) | (__| (_| | | | |
\/ \/ |_| |_____/ \___|\__,_|_| |_|
WordPress Security Scanner by the WPScan Team
Version 3.4.4
Sponsored by Sucuri - https://sucuri.net
@_WPScan_, @ethicalhack3r, @erwan_lr, @_FireFart_
_______________________________________________________________
Scan Aborted: The remote website is up, but does not seem to be running WordPress. Compared to with the normal library: # wpscan --url https://tls-v1-0.badssl.com:1010/
_______________________________________________________________
__ _______ _____
\ \ / / __ \ / ____|
\ \ /\ / /| |__) | (___ ___ __ _ _ __ ®
\ \/ \/ / | ___/ \___ \ / __|/ _` | '_ \
\ /\ / | | ____) | (__| (_| | | | |
\/ \/ |_| |_____/ \___|\__,_|_| |_|
WordPress Security Scanner by the WPScan Team
Version 3.4.4
Sponsored by Sucuri - https://sucuri.net
@_WPScan_, @ethicalhack3r, @erwan_lr, @_FireFart_
_______________________________________________________________
[i] Updating the Database ...
[i] Update completed.
Scan Aborted: The url supplied 'https://tls-v1-0.badssl.com:1010/' seems to be down (SSL connect error) |
Great, so this is a bug in curl, isn't it ? |
There's indeed a bug in libcurl that prevents from enabling TLSv1 support. |
This will be once the issue has been resolved in libcurl and it's been tracked there: wpscanteam/CMSScanner#108 Thank you very much for your investigation on this one and hopefully this will be fixed in curl! |
For tracking: fixed in wpscanteam/CMSScanner#108 |
Before submitting an issue, please make sure you fully read any potential error messages output and did some research on your own.
Subject of the issue
wpscan SSL Connect Error
Your environment
Steps to reproduce
wpscan -v --disable-tls-checks --url
wpscan -v --url
Expected behavior
Site should scan with wpscan
Actual behavior
Scan Aborted: The url supplied 'target site' seems to be down (SSL connect error)
'Trace: /usr/share/rubygems-integration/all/gems/cms_scanner-0.5.7/app/controllers/core.rb:42:in
check_target_availability' /usr/share/rubygems-integration/all/gems/wpscan-3.6.3/app/controllers/core.rb:59:in
before_scan'/usr/share/rubygems-integration/all/gems/cms_scanner-0.5.7/lib/cms_scanner/controllers.rb:44:in
each' /usr/share/rubygems-integration/all/gems/cms_scanner-0.5.7/lib/cms_scanner/controllers.rb:44:in
block in run'/usr/lib/ruby/2.5.0/timeout.rb:76:in
timeout' /usr/share/rubygems-integration/all/gems/cms_scanner-0.5.7/lib/cms_scanner/controllers.rb:43:in
run'/usr/share/rubygems-integration/all/gems/cms_scanner-0.5.7/lib/cms_scanner/scan.rb:24:in
run' /usr/share/rubygems-integration/all/gems/wpscan-3.6.3/bin/wpscan:16:in
block in <top (required)>'/usr/share/rubygems-integration/all/gems/cms_scanner-0.5.7/lib/cms_scanner/scan.rb:15:in
initialize' /usr/share/rubygems-integration/all/gems/wpscan-3.6.3/bin/wpscan:6:in
new'/usr/share/rubygems-integration/all/gems/wpscan-3.6.3/bin/wpscan:6:in
<top (required)>' /usr/bin/wpscan:23:in
load'/usr/bin/wpscan:23:in `
What have you already tried
Tell us what you have already tried to do to fix the issue you are having.
Things you have tried (where relevant):
The text was updated successfully, but these errors were encountered: