It looks like you're new here. If you want to get involved, click one of these buttons!
commander.jsp.%%.jpeg
The image \"http://target.com/state/userregistrationimages/previewtemp/photo-1314340617178.jpg\" can not be displayed,because it contains errors
hi guys,
I have been learning some basic web-application exploitation these days,
today i have been trying the basic exploitation
i.e exploiting arbitrary file uploads
i have been practicing this on my friends
jsp web-site running with Apache-Coyote/1.1...,
i had successfully uploaded the shell with a file name like this
commander.jsp.%%.jpeg
but while i tried to retrieve the shell after uploading i am getting error like this
The image \"http://target.com/state/userregistrationimages/previewtemp/photo-1314340617178.jpg\" can not be displayed,because it contains errors
Also the web-server supports the following http methods "GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS"
when i check with some tools ...
I would like to retrieve my uploaded shell,
is it possible to do that ?
Any suggestions/advice please?
can you suggest me any good book for web exploitation plz.. thanks help plz suggest me any good book for learning web exploitation..plz
https://www.owasp.org/index.php/Main_Page
https://www.owasp.org/index.php/Category:Attack
http://www.ietf.org/rfc/rfc2616.txt
Hi, according to the error that you pasted, it seems like the script that you are calling (userregistrationimages/previewtemp/) tries to read your shell as a picture, then it triggers the error.
In this case, what you should do is to analyze and guess the real path where the shell was uploaded.
You could do this by browsing the website and looking for the places where the another images are fetched from.
Additionally, I would recommend you to review the technique you are using when you upload the file, perhaps instead of %% you could use %00 to break the string.
1- check if the path is the correct one.
2- check if there's no other way to make the arbitrary upload.
3- check if the file is actually being uploaded.
You can also try to break the string and upload a real picture, in order to see if it's working:
pic.jpeg.%%.jpeg
Good luck; :)
GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS