CVE-2005-4521
Description
CRLF injection vulnerability in Mantis 1.0.0rc3 and earlier allows remote attackers to modify HTTP headers and conduct HTTP response splitting attacks via (1) the return parameter in login_cookie_test.php and (2) ref parameter in login_select_proj_page.php.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
1Patches
Vulnerability mechanics
Root cause
"Missing input validation on the `return` and `ref` parameters allows CRLF injection into HTTP response headers."
Attack vector
An unauthenticated remote attacker can inject CRLF sequences (encoded as `%0d%0a`) into the `return` parameter of `login_cookie_test.php` or the `ref` parameter of `login_select_proj_page.php` [ref_id=1]. Because the application does not sanitize these inputs before embedding them in HTTP response headers, the attacker can inject arbitrary headers such as a `Location:` redirect [ref_id=1]. This enables HTTP response splitting attacks, which can be used to poison caches, perform cross-site scripting, or redirect victims to malicious sites [ref_id=1].
Affected code
The advisory identifies two vulnerable files: `login_cookie_test.php` (the `return` GET parameter) and `login_select_proj_page.php` (the `ref` POST parameter) [ref_id=1]. No input validation is performed on user data passed to these parameters before they are used in HTTP headers [ref_id=1].
What the fix does
The advisory states that the solution is to upgrade to Mantis 0.19.4 / 1.0.0rc4 or newer [ref_id=1]. No patch diff is provided in the bundle, but the fix would involve sanitizing or stripping CR/LF sequences from the `return` and `ref` parameters before they are used in HTTP header construction, preventing header injection [ref_id=1].
Preconditions
- authNo authentication required; any anonymous user can exploit the vulnerability
- networkAttacker must be able to send HTTP GET or POST requests to the vulnerable endpoints
- inputAttacker supplies CRLF sequences (%0d%0a) in the 'return' or 'ref' parameter
Reproduction
1. For the `return` parameter vulnerability: Send a GET request to `[path_to_mantis]/login_cookie_test.php?return=%0d%0aLocation:%20http://www.google.com` [ref_id=1]. 2. For the `ref` parameter vulnerability: Send a POST request to `[path_to_mantis]/set_project.php` with body `ref=%0d%0aLocation:%20http://www.google.com&project_id=1` [ref_id=1].
Generated on May 26, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
10- secunia.com/advisories/18181/nvdPatchVendor Advisory
- secunia.com/advisories/18221nvdPatchVendor Advisory
- www.gentoo.org/security/en/glsa/glsa-200512-12.xmlnvdPatch
- www.securityfocus.com/bid/16046/nvdPatch
- www.trapkit.de/advisories/TKADV2005-11-002.txtnvdExploitPatch
- secunia.com/advisories/18481nvd
- sourceforge.net/project/shownotes.phpnvd
- sourceforge.net/project/shownotes.phpnvd
- www.debian.org/security/2005/dsa-944nvd
- www.vupen.com/english/advisories/2005/3064nvd
News mentions
0No linked articles in our index yet.