top of page
作家相片Samuel

Nmap NSE Category vulns Script:ftp-vuln-cve2010-4221 檢測 ProFTPD 伺服器堆疊緩衝區溢出漏洞

已更新:8月26日


Nmap Script指令摘要


這個指令用於檢測 ProFTPD 伺服器在 1.3.2rc3 到 1.3.3b版本間的堆疊緩衝區溢出漏洞,透過發送大量的 TELNET_IAC跳脫序列 (Escape Sequence),在這個情境中,ProFTPD 伺服器進程在計算緩衝區的長度時出現了錯誤,導致伺服器的緩衝區無法正確處理這麼多的資料,這種情況可能會導致緩衝區溢出,使得遠端攻擊者能夠破壞堆疊並在 proftpd 流程的上下文本中執行任意代碼(CVE-2010-4221),不需要身份驗證即可利用此漏洞。


參考資料:


Nmap Script指令參數

vulns.short, vulns.showall

vulns.short 和 vulns.showall 是用於控制漏洞顯示方式的參數:

  • vulns.short:這個參數用於控制是否顯示簡短的漏洞報告;如果設置為 true,則漏洞報告將是簡潔的,只包含基本訊息,如果設置為 false,則漏洞報告可能包含更詳細的訊息和內容。

  • vulns.showall:這個參數用於控制是否顯示所有漏洞報告,包括那些未被標記為 "NOT VULNERABLE" 的漏洞;如果設置為 true,則所有漏洞報告都將被顯示,如果設置為 false,則只顯示那些被標記為有漏洞的報告。

詳細的用法和設定可以參考 vulns 函示庫


Nmap Script指令範例

nmap --script ftp-vuln-cve2010-4221 -p 21   <host>

Nmap Script指令輸出

PORT    STATE SERVICE
21/tcp open  ftp
| ftp-vuln-cve2010-4221:
|    VULNERABLE:
|    ProFTPD server TELNET IAC stack overflow
|      State: VULNERABLE
|      IDs:  CVE:CVE-2010-4221  BID:44562
|      Risk factor: High  CVSSv2: 10.0   (HIGH) (AV:N/AC:L/Au:N/C:C/I:C/A:C)
|      Description:
|        ProFTPD server (version 1.3.2rc3 through 1.3.3b) is vulnerable to
|        stack-based buffer overflow. By sending a large number of TELNET_IAC
|        escape sequence, a remote attacker will be able to corrupt the stack   and
|        execute arbitrary code.
|      Disclosure date: 2010-11-02
|      References:
|        https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-4221
|        http://www.metasploit.com/modules/exploit/freebsd/ftp/proftp_telnet_iac
|        http://bugs.proftpd.org/show_bug.cgi?id=3521
|_       https://www.securityfocus.com/bid/44562

Nmap Script作者:

Djalal Harouni

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



Nmap
Nmap

 

延伸閱讀

3 次查看

Comments


bottom of page