mirror of
https://github.com/lunchcat/sif.git
synced 2026-08-03 09:11:23 -07:00
feat(modules): add node inspector, rails routes and openapi exposure modules (#293)
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
# Node.js V8 Inspector Exposure Detection Module
|
||||
|
||||
id: node-inspector-exposure
|
||||
info:
|
||||
name: Node.js V8 Inspector Exposure
|
||||
author: sif
|
||||
severity: high
|
||||
description: Detects an open node.js v8 inspector whose websocket debugger allows arbitrary code execution in the process
|
||||
tags: [node, inspector, debugger, rce, exposure, recon]
|
||||
|
||||
type: http
|
||||
|
||||
http:
|
||||
method: GET
|
||||
paths:
|
||||
- "{{BaseURL}}/json"
|
||||
- "{{BaseURL}}/json/list"
|
||||
|
||||
matchers:
|
||||
- type: status
|
||||
status:
|
||||
- 200
|
||||
|
||||
- type: regex
|
||||
part: body
|
||||
regex:
|
||||
- '"webSocketDebuggerUrl"\s*:\s*"ws://'
|
||||
|
||||
- type: word
|
||||
part: body
|
||||
words:
|
||||
- "\"devtoolsFrontendUrl\""
|
||||
|
||||
extractors:
|
||||
- type: regex
|
||||
name: ws_debugger_url
|
||||
part: body
|
||||
regex:
|
||||
- '"webSocketDebuggerUrl"\s*:\s*"(ws://[^"]+)"'
|
||||
group: 1
|
||||
|
||||
- type: regex
|
||||
name: inspector_title
|
||||
part: body
|
||||
regex:
|
||||
- '"title"\s*:\s*"([^"]+)"'
|
||||
group: 1
|
||||
Reference in New Issue
Block a user