Skip to content

Private key exposure via helper detector

ID: private-key-exposure

Severity: high

Author: aashiq

Tags: exposure,node,misconfig

Searches for private key exposure by attempting to query the helper endpoint on node_modules

id: private-key-exposure
info:
name: Private key exposure via helper detector
author: aashiq
severity: high
description: Searches for private key exposure by attempting to query the helper endpoint on node_modules
metadata:
max-request: 1
tags: exposure,node,misconfig
http:
- method: GET
path:
- "{{BaseURL}}/node_modules/mqtt/test/helpers/"
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
words:
- "Index of /node_modules/mqtt/test/helpers"
- "Parent Directory"
condition: and
# digest: 4a0a00473045022038fac2e806b053e8320a2c41aba79a83495e81486b3075b2db877533a7ae839d022100d8f231e2c93cd08a6dd985c92350c0df49d2992b4934ece3bb887b0bc1d5506f: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/misconfiguration/private-key-exposure.yaml"

View on Github