core/string_api.php in MantisBT before 1.2.18 does not properly categorize URLs when running under the web root, which allows remote attackers to conduct open redirect and phishing attacks via a crafted URL in the return parameter to login_page.php.
https://www.mantisbt.org/bugs/view.php?id=17648
https://github.com/mantisbt/mantisbt/commit/e66ecc9f
https://exchange.xforce.ibmcloud.com/vulnerabilities/99128
http://www.openwall.com/lists/oss-security/2014/12/03/11