Collect and organize PHP absolute paths. php developers must pay attention to the situation and pay attention to security measures. 1. single quotes
Note:
Add single quotation marks directly behind the URL. the single quotation marks must not be filtered (gpc = off) and the server returns an error message by default.
Eg:
Www.xxx.com/news.php? Id = 149 ′
2. path of incorrect parameter values
Note:
Change the parameter value to be submitted to an error value, for example,-1. Try to filter out single quotes.
Eg:
Www.xxx.com/researcharchive.php? Id =-1
3. Google's explosive path
Note:
Search for the webpage snapshot of the error page by combining the keyword and site syntax. common keywords include warning and fatal error. Note: If the target site is a second-level domain name, the site is connected to its corresponding top-level domain name, resulting in much more information.
Eg:
Site: xxx.edu.tw warning
Site: xxx.com.tw "fatal error"
4. test file explosion path
Note:
Many websites have test files in the root directory, and the script code is usually phpinfo ().
Once you find the phpmyadmin management page and access some specific files in the directory, the physical path may pop up. For phpmyadmin addresses, you can use tools such as wwwscan or google. PS: Some BT websites are written as phpMyAdmin.
Eg:
Www.xxx.cn/phpmyadmin/themes/darkblue_orange/layout.inc.php
Www.xxx.cn/phpmyadmin/libraries/select_lang.lib.php
Www.xxx.cn/phpmyadmin/index.php? Lang [] = 1
6. find the path of the configuration file
Note:
If the injection point has the file read permission, you can manually load_file or the tool to read the configuration file, and then find the path information (usually at the end of the file ). The default paths of Web servers and PHP configuration files on various platforms can be checked online.
Eg:
Windows:
C: \ windows \ php. ini php configuration file
C: \ windows \ system32 \ inetsrv \ MetaBase. xml IIS virtual host configuration file
Note:
This was accidentally discovered yesterday. of course, the Web server is required to be nginx and there is a file type parsing vulnerability. Sometimes/x. php is added after the image address. this image will not only be executed as a php file, but may also expose the physical path.
Eg:
Www.xxx.com/top.jpg/x.php
8. others
Others are full-site program brute-force path vulnerabilities such as dedecms and phpwind, which are complicated and less universal. You can report such vulnerabilities in the reply, so I will sort them out.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service