-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
API hacking lab #1 (Low), missing API path #672
Comments
They should be working. You won't see the files as I'm using rewrite rules to map requests into other bits of code. |
Just to confirm, I should be able to access Also, I think when browsing to |
Just realised, mod_rewrite won't be enabled by default. something like I'll update the docs and add a check for it later. |
I also realised the JS calls |
The problem with lone development. It is hardcoded to my paths and I forgot mod_rewrite isn't enabled by default. I've got fixes, I'll get the wired in and pushed for you to test. |
I've just committed a load of stuff. The paths should now be relative not fixed and you'll get an error if mod_rewrite is not enabled which will point you at the README which tells you how to enable it. The setup page also now checks for mod_rewrite. It all needs tidying up, but it should at least work. |
Hmmm so I did a fresh install again (mod_rewrite is enabled), using the I also tried to launch with the docker-compose option and this time the API call succeeds but doesn't retrieve the expected data.
|
Ye, I just found that one. It is more stuff I've got installed without realising it. Go into the api directory and try following these instructions. https://github.com/digininja/DVWA/tree/master/vulnerabilities/api I need to work out how much of this should be committed for it to just work, but how much needs to be machine dependent. |
I think I might be there with it. The Docker image is now working correctly and I've put checks in to both the setup script and the API pages to warn if mod_rewrite is not installed and if you've not installed the vendor files. Hopefully there is enough info and checks for you to get it working now. |
Are the new API labs working as intended? The low difficulty suggests changing the API call
/vulnerabilities/api/v2/user/
to/vulnerabilities/api/v1/user/
but both of these URLs are 404 and looking in the source code, there doesn't seem to be any files corresponding to v1 or v2:The text was updated successfully, but these errors were encountered: