Scoold: Open Redirect in getBackToUrl() allows phishing via domain-prefix startsWith bypass
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
Scoold is a Q&A and a knowledge sharing platform for teams. Prior to 1.69.1, the getBackToUrl() method in src/main/java/com/erudika/scoold/utils/HttpUtils.java validates the backto and returnto parameters with Strings.CI.startsWith against the configured server URL. An attacker can supply an absolute URL whose hostname begins with the legitimate hostname, causing URI.resolve() to retain the attacker URL and the prefix check to accept it. A victim who follows the crafted sign-in link can be redirected to an attacker-controlled domain after authentication, enabling phishing and possible credential or token theft. This issue is fixed in version 1.69.1.
Text from CVE List
Affected versions 1
- scooldaffected: < 1.69.1CVE List