Last modified: 2014-10-14 18:04:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72009, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70009 - User's password in response html
User's password in response html
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-25 22:58 UTC by Chris Steipp
Modified: 2014-10-14 18:04 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Proposed fix (536 bytes, patch)
2014-10-06 20:20 UTC, Max Semenik
Details

Description Chris Steipp 2014-08-25 22:58:35 UTC
Sherif reported that the mobile link seems to be appending POST fields when generating the url, so after submitting a username/password, the password is in the text of the resulting page.


curl -i -s -k  -X 'POST' \
    -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Firefox/28.0' -H 'Referer: http://en.wikipedia.beta.wmflabs.org/w/index.php?title=Special:UserLogin&returnto=Main+Page' -H 'Content-Type: application/x-www-form-urlencoded' \
    -b 'GeoIP=GB::51.5000:-0.1300:v4; centralnotice_bucket=1-4.2; uls-previous-languages=%5B%22en%22%5D; mediaWiki.user.sessionId=YI03bpxPjata58Fp5ZwwvIEB1r9p3PZs; enwikiSession=414940d3638c0d8c1bc3899d56b23f1a' \
    --data-binary $'wpName=%27%27&wpPassword=%27%27&wpLoginAttempt=Log+in&wpLoginToken=3037b08023402e508455f7340476341c' \
    'http://en.wikipedia.beta.wmflabs.org/w/index.php?title=Special:UserLogin&action=submitlogin&type=login&returnto=Main+Page'
Comment 2 dr0ptp4kt 2014-09-30 20:03:49 UTC
Is any further action required on this? Is this Zero-related, or is it something for MobileFrontend? If it's MobileFrontend, could we get Max and Kaldari on this bug?
Comment 3 Sherif Mansour 2014-10-01 08:11:52 UTC
I'll defer to Chris as he knows the code base way better than I do as to where the issue resides
Comment 4 Chris Steipp 2014-10-03 17:18:52 UTC
For some reason I thought this was zero, but yeah, it looks more like mobile frontend. Max, can you take a look at this?
Comment 5 Max Semenik 2014-10-06 20:20:55 UTC
Created attachment 16681 [details]
Proposed fix

Proposed fix. Will commit tests separately because they would require FauxRequest changes in core to test reasonably.
Comment 6 Ryan Kaldari 2014-10-06 20:36:36 UTC
The proposed fix looks good to me.
Comment 7 Chris Steipp 2014-10-06 22:25:56 UTC
LGTM, +2
Comment 8 Jon 2014-10-14 18:04:32 UTC
Good catch. That's nasty.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links