SECURITY ADVISORY WSO2-2023-2626

Published: May 31, 2024

Version: 1.0.0

Severity: Medium

CVSS Score: 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)


AFFECTED PRODUCTS

  • WSO2 API Manager : 4.2.0 , 4.1.0 , 4.0.0 , 3.2.0 , 3.1.0 , 3.0.0
  • WSO2 Identity Server : 6.1.0 , 6.0.0 , 5.11.0 , 5.10.0 , 5.9.0
  • WSO2 Identity Server as Key Manager : 5.10.0 , 5.9.0

OVERVIEW

A Potential open redirection vulnerability in callback urls.

DESCRIPTION

The provided default regex pattern for validating callback URI in User account recovery, Self Registration, Lite User registration flows are vulnerable to potential open redirection vulnerability.

IMPACT

By using social engineering techniques, an attacker could persuade a user to click on a valid link (but with a malicious payload) and get the user redirected to an attacker controlled page where a phishing attack could be executed to obtain highly sensitive information or harm otherwise.

SOLUTION

In order to mitigate the identified vulnerability, It is highly recommended to apply the below given regex pattern for the relevant areas.

  • Account Recovery Identity Provider -> Resident -> Account Management -> Account Recovery -> Recovery callback URL regex:

    regexp=(https://((example1.com)|(example2:port))/.*)
    
  • Self Registration Identity Provider -> Resident -> User Onboarding-> Self Registration -> User self registration callback URL regex:

     regexp=(https://((example1.com)|(example2:port))/.*)
    
  • Lite User Registration Identity Provider -> Resident -> User Onboarding-> Lite User Registration -> Lite User registration callback URL regex:

    regexp=(https://((example1.com)|(example2:port))/.*)
    

Moreover, the product documentations are updated with the corrected configuration samples12.

Info

If you are a WSO2 customer with Support Subscription, please use WSO2 Updates in order to apply the fix.

References: