Skip to content

Publicly accessible NPM Log file

ID: npm-log-file

Severity: low

Author: sheikhrishad,DhiyaneshDk

Tags: npm,logs,exposure

NPM log file is exposed to external users.

id: npm-log-file
info:
name: Publicly accessible NPM Log file
author: sheikhrishad,DhiyaneshDk
severity: low
description: NPM log file is exposed to external users.
reference:
- https://github.com/maurosoria/dirsearch/blob/master/db/dicc.txt
classification:
cpe: cpe:2.3:a:npmjs:npm:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: npmjs
product: npm
shodan-query: html:"npm-debug.log"
tags: npm,logs,exposure
http:
- method: GET
path:
- "{{BaseURL}}/npm-debug.log"
- "{{BaseURL}}/assets/npm-debug.log"
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
words:
- "info it worked if it ends with ok"
- type: status
status:
- 200
# digest: 4a0a00473045022034ca501149d20022b938ba4f6588cb22824a23dd052c4afb916bce1faafc8454022100f7f88f4b570199018d09149cd15387b88c082d190ec370c9a5402cba4df551c5:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/logs/npm-log-file.yaml"

View on Github