Closed Bug 95535 Opened 23 years ago Closed 23 years ago

Password reset issues tokens w/ "&" in them, URL not escaped

Categories

(Bugzilla :: Bugzilla-General, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED
Bugzilla 2.14

People

(Reporter: justdave, Assigned: justdave)

References

Details

Attachments

(1 file)

I requested a password reset on one of the landfill installs and got this: (you'll have to ignore the fact that someone forgot to set the baseurl in editparams) Notice that the token on the end of the URL contains a & in the token, and it didn't get escaped in the URL. Date: Wed, 15 Aug 2001 18:26:16 -0700 From: bugzilla-daemon@landfill.tequilarista.org To: dave@intrec.com Subject: Bugzilla Change Password Request You or someone impersonating you has requested to change your Bugzilla password. To change your password, visit the following link: http://cvs-mirror.mozilla.org/webtools/bugzilla/token.cgi?a=cfmpw&t=V&l*Cv0w If you are not the person who made this request, or you wish to cancel this request, visit the following link: http://cvs-mirror.mozilla.org/webtools/bugzilla/token.cgi?a=cxlpw&t=V&l*Cv0w
Target Milestone: --- → Bugzilla 2.14
*** Bug 95536 has been marked as a duplicate of this bug. ***
The attached patch fixes this, rather than restricting the token characters, by running the token through url_quote(), so the URL still works. I tested this in theory my url_quoting the token in the URL in the above email and successfully changed my password with it.
Status: NEW → ASSIGNED
Keywords: patch, review
Makes sense not to limit the characters that can appear in tokens. I'm a little worried that it might confuse people to see tokens with escape characters if they ever have to type a token into a web form rather than clicking a link containing the token, but right now I can't think of any situation in which that would occur, so it doesn't make sense to worry about it. r=myk
checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Moving to Bugzilla product
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
Version: Bugzilla 2.13 → unspecified
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: