mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-29 06:50:13 -07:00
detect a reachable postfixadmin setup.php (unhardened-install signal and info disclosure, not an auth bypass since superadmin creation is gated on a locally configured setup password) and the login panel. markers and the setup-password form field and login field pair with the brand string so prose mentions do not match.
43 lines
840 B
YAML
43 lines
840 B
YAML
# PostfixAdmin Login Panel Detection Module
|
|
|
|
id: postfixadmin-panel
|
|
info:
|
|
name: PostfixAdmin Login Panel
|
|
author: sif
|
|
severity: info
|
|
description: Detects an exposed PostfixAdmin mail admin login panel
|
|
tags: [postfixadmin, mail, mailserver, admin, panel, login, detection, info]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/login.php"
|
|
- "{{BaseURL}}/postfixadmin/login.php"
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
condition: and
|
|
words:
|
|
- 'name="fUsername"'
|
|
- 'name="fPassword"'
|
|
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- "(?i)postfix\\s*admin"
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: postfixadmin_version
|
|
part: body
|
|
regex:
|
|
- "Postfix Admin ([0-9]+\\.[0-9]+(?:\\.[0-9]+)?)"
|
|
group: 1
|