-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Scan Aborted: undefined method `each' for 404:Integer #1817
Comments
Not sure what the config for the WP site would be that would make this happen, but I've managed to reproduce it in a contrived setup. Fixed in #1818 Do you mind testing the PR? |
@alexsanford The WP sites caused this error used custom themes and their 404 page just returned integer strings. |
Great! We'll get that merged and released soon.
It's interesting that they did so for |
Subject of the issue
WPScan crashes when it scans websites that return only a string of numbers like
404
as a response.Your environment
Steps to reproduce
Create a custom 404 page that returns only a
404
string or just1
.Run WPScan with
--rua -e u
option. (wpscan --rua -e u --url http://localhost:8000/
)Expected behavior
The scan should complete without any errors.
Actual behavior
It appears that WPScan crashes when it sends two requests that expect a JSON response.
Below are the URLs and their corresponding stack traces.
What have you already tried
Things you have tried (where relevant):
The text was updated successfully, but these errors were encountered: