AIセキュリティポータル K Program

PORTA: Systematic Discovery of Vulnerabilities in Identity Brokers

Share
Abstract
Identity brokers such as Keycloak, Vault, and Dex translate authentication proofs from an upstream identity provider into sessions for downstream services. Due to their central role in authentication and trust mediation, a single vulnerability in a broker compromises every downstream service behind it. In fact, recent incidents have demonstrated that even widely adopted platforms are not immune to such issues, highlighting the critical need for systematic analysis. To build such an analysis, this work first defines invariants for broker operation. These invariants are not completely covered by existing authentication specifications, primarily because brokers are unique in their duality, i.e., acting simultaneously as a relying party and an identity provider. The invariants capture the properties that identity brokers must uphold throughout their workflows, as all 60 previous CVEs we consider violate at least one invariant. Within these workflows, we further define high-level action categories. Equipped with this information, our automated tool PORTA leverages a large language model (LLM) to generate API invocation sequences corresponding to the high-level action categories, and oracle assertions aligned with the specified invariants. PORTA identifies 33 previously unreported security vulnerabilities in seven popular open-source brokers. We study these novel vulnerabilities and trace them to eight recurring patterns. We responsibly disclosed all discovered vulnerabilities: 29 have been confirmed, 14 patched, and 19 assigned CVE numbers, with 10 CVEs rated as critical.
Sherlock on specs: building LTE conformance tests through automated reasoning
Yi Chen, Di Tang, Yepeng Yao, Mingming Zha, XiaoFeng Wang, Xiaozhong Liu, Haixu Tang, Baoxu Liu
Published: 2023
A comprehensive formal security analysis of OAuth 2.0
D. Fett, R. Küsters, G. Schmitz
Published: 2016
The web sso standard openid connect: In-depth formal security analysis and security guidelines
D. Fett, R. Kusters, G. Schmitz
Published: 2017
O single sign-off, where art thou? an empirical analysis of single sign-on account hijacking and session management on the web
Mohammad Ghasemisharif, Amruta Ramesh, Stephen Checkoway, Chris Kanich, Jason Polakis
Published: 2018
Security Analysis of the SAML Single Sign-on Browser/Artifact Profile
Thomas Groβ
Published: 2003
The OAuth 2.0 Authorization Framework
Dick Hardt
Published: 2012
“only as strong as the weakest link”: On the security of brokered single sign-on on the web
T. Innocenti, L. Jannett, C. Mainka, V. Mladenov, E. Kirda
Published: 2025
JSON Web Token (JWT)
Michael B. Jones, John Bradley, Nat Sakimura
Published: 2015
OAuth 2.0 Token Exchange
M. B. Jones, A. Nadalin, B. Campbell, J. Bradley, C. Mortimore
Published: 2020
Universal cross-app attacks: Exploiting and securing {OAuth} 2.0 in integration platforms
K. Luo, X. Wang, P. H. A. Fung, W. C. Lau, J. Lecomte
Published: 2025
Oauch: Exploring security compliance in the oauth 2.0 ecosystem
P. Philippaerts, D. Preuveneers, W. Joosen
Published: 2022
On breaking SAML: be whoever you want to be
Juraj Somorovsky, Andreas Mayer, Jörg Schwenk, Marco Kampmann, Meiko Jensen
Published: 2012
Model-based security testing: An empirical study on OAuth 2.0 implementations
R. Yang, G. Li, W. C. Lau, K. Zhang, P. Hu
Published: 2016
SSOScan: Automated testing of web applications for single sign-on vulnerabilities
Y. Zhou, D. Evans
Published: 2014
Share