id: CVE-2023-37599

info:
  name: Issabel PBX 4.0.0-6 - Directory Listing
  author: ritikchaddha
  severity: high
  description: |
    An issue in issabel-pbx v.4.0.0-6 allows a remote attacker to obtain sensitive information via the modules directory
  impact: |
    Exploiting this vulnerability could lead to unauthorized access to sensitive directories and files, compromising the confidentiality of the system.
  remediation: |
    It is recommended to update to a patched version of issabel-pbx or apply necessary configuration changes to prevent directory listing.
  reference:
    - https://github.com/sahiloj/CVE-2023-37599
    - https://nvd.nist.gov/vuln/detail/CVE-2023-37599
  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-37599
    cwe-id: CWE-668
    cpe: cpe:2.3:a:issabel:issabel-pbx:4.0.0-6:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: issabel
    product: issabel-pbx
    shodan-query: title:"issabel"
    fofa-query: title="issabel"
  tags: cve,cve2023,issabel,issabel-pbx,directory-listing

http:
  - method: GET
    path:
      - '{{BaseURL}}/modules/'

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "Index of /modules")'
          - 'contains_any(body, "issabel", "asterisk_", "billing_")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a0047304502206fc8d47001d1488b40130093787a06b623b025a8f4656d63da7b850429bcaf27022100bd3494c15a1b2f5dc5c7a4f111c59fc8cf97c36573b9c52dc5dd4d390bed7fea:922c64590222798bb761d5b6d8e72950