{
  "Name": "Keycloak 12.0.1 SSRF (CVE-2020-10770)",
  "Description": "<p>Keycloak is an open source identity and access management system.</p><p>Before Keycloak 13.0.0 version, the request_uri parameter has an unauthorized SSRF vulnerability. Attackers can use the vulnerability to detect intranet ports to attack internal applications.</p>",
  "Product": "Keycloak",
  "Homepage": "https://www.keycloak.org",
  "DisclosureDate": "2021-10-14",
  "Author": "1291904552@qq.com",
  "FofaQuery": "body=\"www.fsf.org\" && (body=\"Welcome to Keycloak\" || title=\"Welcome to Keycloak\" || body=\"User Guide, Admin REST API and Javadocs\")",
  "GobyQuery": "body=\"www.fsf.org\" && (body=\"Welcome to Keycloak\" || title=\"Welcome to Keycloak\" || body=\"User Guide, Admin REST API and Javadocs\")",
  "Level": "2",
  "Impact": "<p>Before Keycloak 13.0.0 version, the request_uri parameter has an unauthorized SSRF vulnerability. Attackers can use the vulnerability to detect intranet ports to attack internal applications.</p>",
  "Translation": {
    "CN": {
      "Name": "Keycloak 身份验证系统12.0.1版本存在 SSRF 漏洞（CVE-2020-10770）",
      "VulType": [
        "SSRF漏洞"
      ],
      "Tags": [
        "SSRF漏洞"
      ],
      "Description": "<p>Keycloak 是一个开源身份和访问管理系统。</p><p>Keycloak13.0.0版本之前request_uri参数存在一个未授权的SSRF漏洞，攻击者可利用漏洞探测内网端口攻击内部应用。</p>",
      "Impact": "<p>Keycloak13.0.0版本之前request_uri参数存在一个未授权的SSRF漏洞，攻击者可利用漏洞探测内网端口攻击内部应用。</p>",
      "Product": "Keycloak",
      "Recommendation": "<p>⼚商已发布了漏洞修复程序，请及时关注更新： <a href=\"https://www.keycloak.org\">https://www.keycloak.org</a></p><p>1、通过防⽕墙等安全设备设置访问策略，设置⽩名单访问。</p><p>2、如⾮必要，禁⽌公⽹访问该系统。</p>"
    },
    "EN": {
      "Name": "Keycloak 12.0.1 SSRF (CVE-2020-10770)",
      "VulType": [
        "ssrf"
      ],
      "Tags": [
        "ssrf"
      ],
      "Description": "<p>Keycloak is an open source identity and access management system.</p><p>Before Keycloak 13.0.0 version, the request_uri parameter has an unauthorized SSRF vulnerability. Attackers can use the vulnerability to detect intranet ports to attack internal applications.</p>",
      "Impact": "<p>Before Keycloak 13.0.0 version, the request_uri parameter has an unauthorized SSRF vulnerability. Attackers can use the vulnerability to detect intranet ports to attack internal applications.</p>",
      "Product": "Keycloak",
      "Recommendation": "<p>The vendor has released a bug fix, please pay attention to the update in time: <a href=\"https://www.keycloak.org\">https://www.keycloak.org</a></p><p>1. Set access policies and whitelist access through security devices such as firewalls.</p><p>2.If not necessary, prohibit public network access to the system.</p>"
    }
  },
  "References": [
    "https://www.exploit-db.com/exploits/50405"
  ],
  "HasExp": true,
  "ExpParams": [
    {
      "name": "ssrf",
      "type": "input",
      "value": "http://www.baidu.com"
    }
  ],
  "ExpTips": null,
  "ScanSteps": [
    "AND",
    {
      "Request": {
        "method": "GET",
        "uri": "/test.php",
        "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": "test",
            "bz": ""
          }
        ]
      },
      "SetVariable": []
    }
  ],
  "ExploitSteps": [
    "AND",
    {
      "Request": {
        "method": "GET",
        "uri": "/test.php",
        "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": "test",
            "bz": ""
          }
        ]
      },
      "SetVariable": []
    }
  ],
  "Tags": [
    "ssrf"
  ],
  "VulType": [
    "ssrf"
  ],
  "CVEIDs": [
    "CVE-2020-10770"
  ],
  "CVSSScore": "6.0",
  "AttackSurfaces": {
    "Application": [
      "Keycloak"
    ],
    "Support": null,
    "Service": null,
    "System": null,
    "Hardware": null
  },
  "Recommendation": "<p>The vendor has released a bug fix, please pay attention to the update in time: <a href=\"https://www.keycloak.org\">https://www.keycloak.org</a></p><p>1. Set access policies and whitelist access through security devices such as firewalls.</p><p>2. If not necessary, prohibit public network access to the system.</p>",
  "CNNVD": [
    ""
  ],
  "CNVD": [
    ""
  ]
}