-
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
Basic Auth no longer works (for --http-auth, --headers and --basic-auth) #1734
Comments
Mystery solved! Apparently the credentials are too long, so WPScan cuts off the last few characters of the credentials. Which is why it says login invalid. Any chance of getting the string that stores the credentials lengthened as a bug fix? |
For anyone looking for a quick workaround in the mean time, here's what I did: proxy through Burp and do a match/replace rule on the base64 value in the Authorization header and replace it with the right base64 value :D |
Hummm that's a weird one.
|
There sure was! There was a $ near the end of the password. I had assumed it was the length because the username was about 18 characters with a 8 character password, but your explanation makes a lot more sense. |
Great, thanks for confirming, I will keep the issue open to add a message about that in the help of the option. To have it properly handled by the terminal, either surround the option with
I am surprised that |
very cool, thanks for your help!
same, I also tried throwing in some other cookies, but I wasn't 100% sure if it was right to separate headers with \n, but it definitely didn't like [space]. |
Ah nop, the separator for headers is
For cookies, you can use
|
aha, thank you again! |
wpscanteam/CMSScanner#248 adds to the docs that the $ character should be properly escaped |
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
I don't have a way to scan a WordPress site that uses basic auth. The --basic-auth option has disappeared. --headers does not recognize the authentication header, and --http-auth gives an "invalid" error for the username:pw format (and a different error about not using base64 if I base64 encode it). Anything else I can try?
Your environment
Steps to reproduce
Try using any of the 3 parameters described above to authenticate to a Wordpress site that uses Basic Auth.
Expected behavior
The scanner should successfully authenticate and proceed with scanning a site that uses basic auth.
Actual behavior
WPScan throws an error about authentication.
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):
--basic-auth (doesn't exist anymore)
--http-auth
--headers 'Authorization: Basic base64valueehre&*'
The text was updated successfully, but these errors were encountered: