Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fewer FPs for http/default-logins/xui-weak-login.yaml #10533

Merged
merged 3 commits into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id: xui-weak-login
id: xui-default-login

info:
name: X-UI - Default Login
Expand All @@ -13,11 +13,16 @@ info:
cwe-id: CWE-798
metadata:
verified: true
max-request: 1
max-request: 2
fofa-query: title="X-UI Login"
shodan-query: title:"X-UI Login"
tags: x-ui,default-login

http:
- method: GET
path:
- "{{BaseURL}}/login"

- method: POST
path:
- "{{BaseURL}}/login"
Expand All @@ -26,6 +31,7 @@ http:
content-type: application/x-www-form-urlencoded

body: "username={{username}}&password={{password}}"

attack: pitchfork
payloads:
username:
Expand All @@ -35,18 +41,12 @@ http:

matchers-condition: and
matchers:
- type: word
part: body
words:
- '"success":true'

- type: word
part: header
words:
- 'application/json'

- type: status
status:
- 200
- type: dsl
dsl:
- '!contains(http_1_body, "\"success\":true")'
- 'contains_all(http_2_body, "\"success\":true", "msg\":")'
- "contains(http_2_header, 'application/json')"
- "http_2_status_code == 200"
condition: and

# digest: 4a0a00473045022100e1f36784ffef57d558271751b0e7a92bab17976ca7606e37cc01a6952f9c0b14022058f645f21814ae9bc4b00d071c3bd6027ff97c1ddb010526500e0799955827ad:922c64590222798bb761d5b6d8e72950
Loading