top of page
作家相片Samuel

Nmap NSE Category vulns Script:http-axis2-dir-traversal 利用 Apache Axis2 目錄探測漏洞

已更新:8月26日


Nmap Script指令摘要


該指令利用 Apache Axis2 版本 1.4.1 中的目錄尋找漏洞,透過向參數 xsd 發送特殊製作的請求 (BID 40343) 來執行;預設情況下,它將嘗試使用路徑 '/axis2/services/' 檢索 Axis2 服務的檔案配置 '/conf/axis2.xml',以回傳管理員帳戶的使用者名和密碼。


要利用這個漏洞,需要先確定目標系統上運行的有效服務,我們可以從 /listServices 中獲取這些訊息,然後再利用目錄探測漏洞;預設情況下,它將檢索檔案配置,如果您希望檢索其他檔案,您需要正確設定參數 http-axis2-dir-traversal.file,以便探測到該檔案所在的目錄;例如,如果要檢索 /etc/issue 檔案,您可以將該參數設置為../../../../../../../../../etc/issue,請求將試圖檢索指定檔案的內容。


要檢查 Apache Axis2 安裝的版本,請前往:http://domain/axis2/services/Version/getVersion


參考資料


Nmap Script指令參數

http-axis2-dir-traversal.file

遠端要擷取的檔案


http-axis2-dir-traversal.outfile

輸出的檔案


http-axis2-dir-traversal.basepath

服務頁面的基本路徑,預設值:/axis2/services/


slaxml.debug

參考 slaxml 函式庫


creds.[service], creds.global

參考 creds 函式庫


http.host, http.max-body-size, http.max-cache-size, http.max-pipeline, http.pipeline, http.truncated-ok, http.useragent

參考 http 函式庫


smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusername

參考 smbauth 函式庫


Nmap Script指令範例

nmap -p80,8080 --script   http-axis2-dir-traversal --script-args   'http-axis2-dir-traversal.file=../../../../../../../etc/issue'   <host/ip>
nmap -p80 --script   http-axis2-dir-traversal <host/ip>

Nmap Script指令輸出

80/tcp open  http     syn-ack
|_http-axis2-dir-traversal.nse: Admin   credentials found -> admin:axis2

Nmap Script作者:

Paulino Calderon

License: Same as Nmap--See https://nmap.org/book/man-legal.html




Nmap
Nmap


 

延伸閱讀

0 次查看

Comments


bottom of page