Common web-services
This is a list of some common web-services. The list is alphabetical.
Cold Fusion
If you have found a cold fusion you are almost certainly struck gold. http://www.slideshare.net/chrisgates/coldfusion-for-penetration-testers
Determine version
example.com/CFIDE/adminapi/base.cfc?wsdl It will say something like:
Version 8
FCKEDITOR
This works for version 8.0.1. So make sure to check the exact version.
LFI
This will output the hash of the password.
You can pass the hash.
http://www.slideshare.net/chrisgates/coldfusion-for-penetration-testers
http://www.gnucitizen.org/blog/coldfusion-directory-traversal-faq-cve-2010-2861/
neo-security.xml and password.properties
Drupal
Elastix
Full of vulnerabilities. The old versions at least.
http://example.com/vtigercrm/ default login is admin:admin
You might be able to upload shell in profile-photo.
Joomla
Phpmyadmin
Default credentials
If you find a phpMyAdmin part of a site that does not have any authentication, or you have managed to bypass the authetication you can use it to upload a shell.
You go to:
Then click on SQL.
From here we can just run a sql-query that creates a php script that works as a shell
So we add the following query:
The query is pretty self-explanatory. Now you just visit 192.168.1.101/shell.php?cmd=ipconfig
and you have a working web-shell. We can of course just write a superlong query with a better shell. But sometimes it is easier to just upload a simple web-shell, and from there download a better shell.
Download a better shell
On linux-machines we can use wget to download a more powerful shell.
On windows-machines we can use tftp.
Webdav
Okay so webdav is old as hell, and not used very often. It is pretty much like ftp. But you go through http to access it. So if you have webdav installed on a xamp-server you can access it like this:
Then sign in with username and password. The default username and passwords on xamp are:
Username: wampp
Password: xampp
Then use put and get to upload and download. With this you can of course upload a shell that gives you better access.
If you are looking for live examples just google this:
Test if it is possible to upload and execute files with webdav.
If you managed to gain access but is unable to execute code there is a workaround for that! So if webdav has prohibited the user to upload .asp code, and pl and whatever, we can do this:
upload a file called shell443.txt, which of course is you .asp shell. And then you rename it to shell443.asp;.jpg. Now you visit the page in the browser and the asp code will run and return your shell.
References
http://secureyes.net/nw/assets/Bypassing-IIS-6-Access-Restrictions.pdf
Webmin
Webmin is a webgui to interact with the machine.
The password to enter is the same as the passsword for the root user, and other users if they have that right. There are several vulnerabilites for it. It is run on port 10000.
Wordpress
If you hit a 403. That is, the request if forbidden for some reason. Read more here: https://en.wikipedia.org/wiki/HTTP_403
It could mean that the server is suspicious because you don't have a proper user-agent in your request, in wpscan you can solve this by inserting --random-agent. You can of course also define a specific agent if you want that. But random-agent is pretty convenient.
Scan for users
You can use wpscan to enumerat users:
Last updated