Bug 882325 (CVE-2012-5391) - CVE-2012-5391 mediawiki: Vulnerable to session fixation attacks
Summary: CVE-2012-5391 mediawiki: Vulnerable to session fixation attacks
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: CVE-2012-5391
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 882344 882345 885014 885016
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-30 16:59 UTC by Jan Lieskovsky
Modified: 2019-09-29 12:58 UTC (History)
6 users (show)

Fixed In Version: MediaWiki 1.20.1, MediaWiki 1.19.3, MediaWiki 1.18.6
Clone Of:
Environment:
Last Closed: 2013-04-19 08:39:59 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Lieskovsky 2012-11-30 16:59:24 UTC
A session fixation flaw was found in the way MediaWiki, a wiki engine, performed maintenance of user session ids after user login / logout. A remote attacker could provide a specially-crafted URL that, when visited by an authenticated MediaWiki user, could allow the attacker to impersonate the victim.

References:
[1] http://www.gossamer-threads.com/lists/wiki/mediawiki/316419
[2] https://bugzilla.wikimedia.org/show_bug.cgi?id=40995

Comment 2 Jan Lieskovsky 2012-11-30 17:17:07 UTC
This issue affects the versions of the mediawiki package, as shipped with Fedora release of 16 and 17.

--

This issue affects the version of the mediawiki package, as shipped with Fedora EPEL 5.

Comment 3 Jan Lieskovsky 2012-11-30 17:48:56 UTC
For the remaining issues, that got fixed in MediaWiki 1.20.1, MediaWiki 1.19.3 and MediaWiki 1.18.6, exactly:

*  A similar vulnerability was also identified in the CentralAuth Extension, and assigned CVE-2012-5395.

  Upstream bug:
  https://bugzilla.wikimedia.org/show_bug.cgi?id=40962

* Wikipedia user PleaseStand discovered that a new API feature in MediaWiki 1.20 allowed for HTML code to be injected into the "editfont" option.

  Upstream bug:
  https://bugzilla.wikimedia.org/show_bug.cgi?id=42202

  Upstream patches:
  https://gerrit.wikimedia.org/r/gitweb?p=mediawiki%2Fcore.git;a=commit;h=fe45ba87528d855b4f12785016280451bd7893cf
  https://gerrit.wikimedia.org/r/gitweb?p=mediawiki%2Fcore.git;a=commit;h=8e57acf21152a688dcb147e6e2bf5c97ef6860af  

* Wikipedia user PleaseStand discovered that a PCRE backtrack limit could easily be exceeded, causing recent changes and history pages to fail to display. 

  Upstream bug:
  https://bugzilla.wikimedia.org/show_bug.cgi?id=41400

  Upstream patch:
  https://gerrit.wikimedia.org/r/gitweb?p=mediawiki%2Fcore.git;a=commit;h=7f9fe1b29df6ecee9a9c90f6806d7bf8848ff0b1

None of these would affect / would be applicable to the code of the mediawiki packages, as shipped with Fedora release of 16, 17, and Fedora EPEL 5 (IOW these versions would NOT be vulnerable to above three security flaws).

Comment 4 Jan Lieskovsky 2012-11-30 17:50:28 UTC
Created mediawiki tracking bugs for this issue

Affects: fedora-all [bug 882344]
Affects: epel-5 [bug 882345]

Comment 5 Patrick Uiterwijk 2012-12-06 18:15:45 UTC
I will apply the upstream patch to the Fedora and EPEL repos.

Comment 6 Patrick Uiterwijk 2012-12-06 18:17:12 UTC
Also impacted: mediawiki119 package for EPEL 6

Comment 7 Jan Lieskovsky 2012-12-07 09:50:41 UTC
(In reply to comment #6)
> Also impacted: mediawiki119 package for EPEL 6

This is correct. Thank you for pointing out (mediawiki116 should be included in the list too). Will do shortly.

Comment 8 Jan Lieskovsky 2012-12-07 10:01:08 UTC
Created mediawiki116 tracking bugs for this issue

Affects: epel-all [bug 885016]

Comment 9 Fedora Update System 2013-03-22 00:45:25 UTC
mediawiki-1.19.4-2.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2013-03-22 00:47:19 UTC
mediawiki-1.19.4-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Patrick Uiterwijk 2013-04-19 08:39:59 UTC
As noted in the mediawiki119 tracking bug, this has also been fixed for that one as well.
The EPEL5 version is the only one not yet closed, because that branch is orphaned.


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