Merge pull request #8973 from savushkin-yauheni/patch-3

Create node-red-default-login.yaml
patch-1
Dhiyaneshwaran 2024-01-21 22:57:30 +05:30 committed by GitHub
commit 2821b11ff7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,50 @@
id: nodered-default-login
info:
name: Node-Red - Default Login
author: savik
severity: critical
description: |
Allows attacker to log in and execute RCE on the Node-Red panel using the default credentials.
reference:
- https://quentinkaiser.be/pentesting/2018/09/07/node-red-rce/
metadata:
max-request: 1
verified: true
shodan-query: http.favicon.hash:321591353
tags: default-login,node-red,dashboard
http:
- raw:
- |
POST /auth/token HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
client_id=node-red-editor&grant_type=password&scope=&username={{username}}&password={{password}}
attack: pitchfork
payloads:
username:
- admin
password:
- password
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'access_token":'
- 'expires_in":'
- 'token_type":'
condition: and
- type: word
part: header
words:
- 'application/json'
- type: status
status:
- 200