id: odoo-unprotected-database

info:
  name: Odoo - Unprotected Database
  author: pdteam
  severity: critical
  description: |
    The system has an Odoo application whose database manager is unprotected, indicating potential unauthorized access.
  remediation: |
    Implement and enforce proper authentication and access control measures to protect the Odoo database manager.
  classification:
    cpe: cpe:2.3:a:odoo:odoo:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: odoo
    product: odoo
    shodan-query: title:"Odoo"
  tags: odoo,database,unauth,misconfig,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/web/database/manager'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Warning, your Odoo database manager is not protected."

      - type: word
        words:
          - "The database manager has been disabled by the administrator"
        negative: true

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100e26b4f1aaf441830e8b7978e5e2d543e6100d1dd39d08592af93cd0f2b16c1c302207872ce231fe5eda99ebb9d393e1b31b515d7b142a780e699a6f0f846492520ae:922c64590222798bb761d5b6d8e72950