REDHAT-BUG-2295777: CSRF

Published Jul 4, 2024
·
Updated

Problem Summary: WebInspect has identified that the application under test using the OAuth2 protocol is using an insufficient entropy in the state parameter value in the workflow. This introduces a CSRF vulnerability in the context of the OAuth process, and gives the ability to login to the victim’s current application account using a third-party account without any restrictions. In authorization code type and implicit grant type, the OAuth protocol is vulnerable to a CSRF attack if the state parameter is used inefficiently. An attacker can perform a normal OAuth2 process and get the redirection URL that contains the authorization code of the third-party. The attacker can bind his account to victim’s account for the vulnerable application by enticing a victim to access this URL. If the state parameter is set in the redirection URL but without sufficient entropy, then an attacker can predict the user’s state parameter and forge reliable a redirection URL to induce the victim to access and implement CSRF attack. In this case WebInspect detetced that the session is using OAuth2 and insert an state parameter in the query variables: 5189522f as CSRF token. However, the WebInspect has found that the value of state parameter maybe guessable to be predicted. The attacker could predict the next token of the user and then get it exploited.

Steps to reproduce:

- Initiate the OAuth2 binding process - Extract the state parameter value in the redirection URL to the authorization server - Repeat the previous steps again and get a new state parameter value - Try to analyze the order between two state parameters and predict the victim’s state parameter value - Finished logging into authorization server - The authorization server attempts to redirect the user to the client application, do not follow the redirection - Modify the state parameter value with a predicted value to which the victim might be assigned. - Send the redirection URL with the predicted state parameter value to the victim who is now in login status of the client application - Note if the victim’s client application account is bound to the attacker’s third-party account.

Implication: The attacker can gain access to other user’s accounts and access sensitive information of the profile, or perform arbitrary actions using the victim’s account.

Suggestions: Improve the entropy of state parameter value.

Affected Software

1 affected component
Micro Focus WebInspect

Event History

Jul 4, 2024
Data Sourced
via Red Hat·11:31 AM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2295777?

The severity of REDHAT-BUG-2295777 is considered critical due to the CSRF vulnerability in the OAuth2 implementation.

2

How do I fix REDHAT-BUG-2295777?

To fix REDHAT-BUG-2295777, ensure that a secure and high-entropy value is used for the state parameter in the OAuth2 flow.

3

What systems are affected by REDHAT-BUG-2295777?

The vulnerability REDHAT-BUG-2295777 affects applications using Micro Focus WebInspect that implement the OAuth2 protocol.

4

What type of attack does REDHAT-BUG-2295777 enable?

REDHAT-BUG-2295777 enables cross-site request forgery (CSRF) attacks within the OAuth process.

5

Is authentication impacted by REDHAT-BUG-2295777?

Yes, authentication mechanisms may be compromised due to the vulnerability REDHAT-BUG-2295777.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203