mattermost-installer: Mattermost - Installer Exposure

2026-12-04 PoC Public

Description

Mattermost contains an installer exposure caused by the first account created on a server without users receiving the system_admin role while email sign-up is enabled by default, letting remote attackers register first and take full control of the server.

Details

Severity
高危
Published
PoC
Public

PoC

id: mattermost-installer

info:
  name: Mattermost - Installer Exposure
  author: s4e-io
  severity: high
  description: |
    Mattermost contains an installer exposure caused by the first account created on a server without users receiving the system_admin role while email sign-up is enabled by default, letting remote attackers register first and take full control of the server.
  reference:
    - https://github.com/mattermost/mattermost
    - https://docs.mattermost.com/deployment-guide/quick-start-evaluation.html
    - https://github.com/mattermost/mattermost/blob/v12.1.0/server/channels/app/users/users.go#L49-L55
  classification:
    cpe: cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    verified: true
    vendor: mattermost
    product: mattermost_server
    shodan-query: http.title:"Mattermost"
    fofa-query: title="Mattermost"
  tags: misconfig,exposure,install,mattermost

http:
  - raw:
      - |
        GET /api/v4/config/client?format=old HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'regex("\"NoAccounts\"\\s*:\\s*\"true\"", body)'
          - 'regex("\"EnableUserCreation\"\\s*:\\s*\"true\"", body)'
          - 'regex("\"EnableSignUpWithEmail\"\\s*:\\s*\"true\"", body)'
          - 'status_code == 200'
        condition: and

    extractors:
      - type: json
        json:
          - '.Version'
# digest: 4a0a004730450221008a935d0bd95080a8cfceca6bce6f851157a0a2a78f7feca0dd6c8ab21df1c73c022052312a8fd7185bfc6af1653d58aead2a3a64ccec32802e0585e83724b2634383:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life