View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037235 | mantisbt | security | public | 2026-06-03 05:04 | 2026-06-04 09:08 |
| Reporter | dracosectech | Assigned To | dregad | ||
| Priority | high | Severity | major | Reproducibility | always |
| Status | resolved | Resolution | no change required | ||
| Summary | 0037235: Open Redirect with return parameter in login_page.php | ||||
| Description | This finding is a bypass of the fix for CVE-2017-7620, which addressed mixed-slash URLs ( DetailsIncomplete URL sanitization in The ImpactAn attacker distributes a link to the legitimate MantisBT login page with a crafted | ||||
| Steps To Reproduce |
| ||||
| Additional Information | Reference: https://mantisbt.org/bugs/view.php?id=22816 (0022816: CVE-2017-7620: Open redirection vulnerability in /login_page.php) Credit: Dracosec Research Limited (Chris Chan, Krecendo Hui, William Lam) | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
|
Hello, and thanks for the report. I'm trying to reproduce the problem, but failing get a redirection to an external site with the given instructions. https://mantisbt.org/bugs/login_page.php?return=%2F%2Fexample.com From Firefox console:
Am I missing something ? |
|
|
Hi dregad, Thanks for your prompt reply. Turns out this finding has been patched on (May 25, 2026) due to another issue: https://mantisbt.org/bugs/view.php?id=37133 (or https://github.com/mantisbt/mantisbt/pull/2224) While this finding was found based on the commit (59f25925) on May 21, 2026 but reported today, that explained why the result is different. |
|
|
Thanks for the feedback. That explains why I could not reproduce earlier, even though I did test both with the current stable (2.28.3) and master branches (at 8ce3dfd6). With this additional information, I'm now able to confirm the described behavior. Running Git bisect identifies the first bad commit as MantisBT master ad1be12b, and the it was indeed fixed by :mantisbt:2006074b1fed82a9fa6028983059ed45b1de7b7e as you pointed out. This means the vulnerability only ever existed for a few days on the master branch (i.e. the development version), between May 17th and 24th. I'm therefore not going to request a CVE for this, as we only do so for security issues affecting official releases. This issue will be closed. Security tests should be performed against on the latest release tag (or the master-X.Y branch), even though it's good practice to confirm whether an issue is still present in master. |
|
|
Oh my gosh... Don't be lazy about writing tests—it pays off... |
|
|
@raspopov it's great that you did write them eventually. Thanks to you for thus catching and fixing the bug before it was bundled in a release. |
|