top of page
作家相片Samuel

Nmap NSE Category vulns Script:http-vuln-cve2017-8917 偵測Joomla! 3.7.x 至 3.7.1 之前版本的 SQL 注入漏洞

已更新:8月26日


Nmap Script指令摘要

影響 Joomla! 3.7.x 至 3.7.1 之前版本的 SQL 注入漏洞,允許未經認證的使用者執行任意 SQL 命令。這個漏洞是由一個新組件 com_fields 引起的,該組件在 3.7 版本中首次引入。此組件可公開訪問,意味著任何訪問網站的惡意個體都可以利用這個漏洞。


該腳本嘗試注入一個 SQL 語句,該語句在目標網站上運行 user() 資訊函數。成功的注入將在 extra_info 表中返回當前 MySQL 用戶名和主機名。


這個腳本基於由 brianwrf 編寫的 Python 腳本。


參考資料:


Nmap Script指令參數

http-vuln-cve2017-8917.uri

Joomla 安裝的網站根目錄


slaxml.debug

請參閱 slaxml 函式庫的文檔。


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 函式庫的文檔。


vulns.short, vulns.showall

請參閱 vulns 函式庫的文檔。


Nmap Script指令範例

nmap --script http-vuln-cve2017-8917 -p 80 <target>
nmap --script http-vuln-cve2017-8917 --script-args http-vuln-cve2017-8917.uri=joomla/ -p 80<target>

Nmap Script指令輸出

PORT   STATE SERVICE VERSION
80/tcp open  http    Apache httpd 2.4.7 ((Ubuntu))
| http-vuln-cve2017-8917:
|   VULNERABLE:
|   Joomla! 3.7.0 'com_fields' SQL Injection Vulnerability
|       State: VULNERABLE
|     IDs:  CVE:CVE-2017-8917
|     Risk factor: High  CVSSv3: 9.8 (CRITICAL) (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
|       An SQL injection vulnerability in Joomla! 3.7.x before 3.7.1 allows attackers
|       to execute aribitrary SQL commands via unspecified vectors.
|
|     Disclosure date: 2017-05-17
|     Extra information:
|       User: root@localhost
|     References:
|       https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8917
|_      https://blog.sucuri.net/2017/05/sql-injection-vulnerability-joomla-3-7.html

Nmap Script作者:

Wong Wai Tuck

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


Nmap
Nmap


 

延伸閱讀

Comentarios


bottom of page