2022-01-05 08:37:28 +00:00
id : CVE-2016-4977
info :
2022-01-06 10:06:28 +00:00
name : Spring Security OAuth2 Remote Command Execution
2022-01-05 08:37:28 +00:00
author : princechaddha
severity : high
2022-04-22 10:38:41 +00:00
description : Spring Security OAuth versions 2.0.0 to 2.0.9 and 1.0.0 to 1.0.5 contain a remote command execution vulnerability. When processing authorization requests using the whitelabel views, the response_type parameter value was executed as Spring SpEL which enabled a malicious user to trigger remote command execution via the crafting of the value for response_type.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability can lead to remote code execution, compromising the affected system.
2023-09-06 13:22:34 +00:00
remediation : Users of 1.0.x should not use whitelabel views for approval and error pages. Users of 2.0.x should either not use whitelabel views for approval and error pages or upgrade to 2.0.10 or later.
2022-01-05 08:37:28 +00:00
reference :
- https://github.com/vulhub/vulhub/blob/master/spring/CVE-2016-4977/README.md
2022-04-07 13:53:15 +00:00
- https://tanzu.vmware.com/security/cve-2016-4977
2022-01-05 08:37:28 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2016-4977
2022-05-17 09:18:12 +00:00
- https://pivotal.io/security/cve-2016-4977
2023-07-11 19:49:27 +00:00
- http://www.openwall.com/lists/oss-security/2019/10/16/1
2022-01-06 08:06:01 +00:00
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 8.8
2022-01-06 08:06:01 +00:00
cve-id : CVE-2016-4977
cwe-id : CWE-19
2024-06-07 10:04:29 +00:00
epss-score : 0.04558
epss-percentile : 0.92501
2023-09-06 13:22:34 +00:00
cpe : cpe:2.3:a:pivotal:spring_security_oauth:1.0.0:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : pivotal
product : spring_security_oauth
2024-01-14 09:21:50 +00:00
tags : cve2016,cve,oauth2,oauth,rce,ssti,vulhub,spring,pivotal
2022-01-05 08:37:28 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-01-05 08:37:28 +00:00
- method : GET
path :
- "{{BaseURL}}/oauth/authorize?response_type=${13337*73331}&client_id=acme&scope=openid&redirect_uri=http://test"
matchers-condition : and
matchers :
- type : word
part : body
words :
- "Unsupported response types: [978015547]"
- type : status
status :
- 400
2024-06-08 16:02:17 +00:00
# digest: 4a0a00473045022100c66dd438fc32b601bda760d115a1aa6c0ac04c6d508e25af37bed49c7dccb6bb0220745ce2c6eb5aa672f5d9903bf30440d9a7a166a1bc7b45ca0aed623a32b0d181:922c64590222798bb761d5b6d8e72950