Intel

AIKIDO-2024-10401

hybridauth/hybridauth is vulnerable to Cross-Site Request Forgery (CSRF)

Cross-Site Request Forgery (CSRF) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Nov 4, 2024

62

Medium Risk

This Affects:

phphybridauth/hybridauth
3.0.0 - 3.10.0
Fixed in 3.11.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Cross-Site Request Forgery (CSRF). The OAuth2 Adapter fails to enforce the presence of the state parameter, even when supportRequestState is enabled. This allows an attacker to intercept the returning request containing the code and state URL parameters, strip the state parameter, and provide it to a different user with a different browser. As a result, the authorization process is completed without validating the original state, enabling potential CSRF attacks.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

hybridauth/hybridauth is vulnerable to Cross-Site Request Forgery (CSRF) in versions 3.0.0 - 3.10.0.

How to fix this

Upgrade the hybridauth/hybridauth library to the patch version.