Skip to content
OpenAdvisories
High · 8.8 Scanner template Public exploit CVE-2016-4977 EUVD-2018-0540GHSA-7q9c-h23x-65fq

Spring Security OAuth vulnerable to remote code execution (RCE) via specially crafted request using whitelabel views

Published May 25, 2017 · Updated Aug 6, 2024 · Assigned by dell

Description

When processing authorization requests using the whitelabel views in Spring Security OAuth 2.0.0 to 2.0.9 and 1.0.0 to 1.0.5, the response_type parameter value was executed as Spring SpEL which enabled a malicious user to trigger remote code execution via the crafting of the value for response_type.

Affected products

VendorProductAffectedFixed
Pivotal Spring Security OAuth 2.0.0 to 2.0.9, 1.0.0 to 1.0.5 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework.security.oauth:spring-security-oauth2 >= 2.0.0, < 2.0.10 2.0.10 GHSA-7q9c-h23x-65fq
Maven org.springframework.security.oauth:spring-security-oauth2 >= 1.0.0, < 1.0.5 1.0.5 GHSA-7q9c-h23x-65fq

References