Open Redirect in sbrl/pepperminty-wiki


Reported on

Sep 14th 2021


Open redirection vulnerabilities arise when an application incorporates user-controllable data into the target of a redirection in an unsafe way. An attacker can construct a URL within the application that causes a redirection to an arbitrary external domain. is vulnerable to open redirects as shown below:

Proof of Concept

Vulnerable line: release index.php:12188

                $login_form_action_url .= "&returnto=" . rawurlencode($_GET["returnto"]);

Proof of concept:
Login to peppermint
Visit in a browser:


Observe the open redirection


This behavior can be leveraged to facilitate phishing attacks against users of the application. The ability to use an authentic application URL, targeting the correct domain and with a valid SSL certificate (if SSL is used), lends credibility to the phishing attack because many users, even if they verify these features, will not notice the subsequent redirection to a different domain.

2 years ago


Hey hitisec, I've emailed the maintainers for you.

We have contacted a member of the sbrl/pepperminty-wiki team and are waiting to hear back 2 years ago
Starbeamrainbowlabs marked this as fixed with commit f59e68 2 years ago
The fix bounty has been dropped
This vulnerability will not receive a CVE
2 years ago


Thanks for this - I've ensured that Pepperminty Wiki only allows redirects using the query string - which ensures that redirects do not leave the current Pepperminty Wiki instance.

to join this conversation