Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Sun, 18 Aug 2019 23:58:50 -0400
From: Justin Bull <>
Subject: [CVE-2019-15150] CSRF in MediaWiki extension OAuth2 Client 0.3

[CVE-2019-15150] CSRF in MediaWiki extension OAuth2 Client 0.3

Happy Sunday everyone.

A security bulletin for you all.

MediaWiki OAuth2 Client (

MediaWiki implementation of the PHP League's OAuth2 Client, to allow MediaWiki
to act as a client to any OAuth2 server.

Not Affeted:
0.2 and earlier.

Affected Versions:

Fixed Versions:


In the OAuth2 Client extension 0.3 for MediaWiki, a CSRF vulnerability
exists due to the OAuth2 state parameter not being checked in the callback

Per OAuth 2.0 spec, the authorization code grant flow is susceptible to CSRF
and clickjacking attacks unless an appropriate "state" parameter is chosen and

Although the software correctly generates an unguessable state value and sets
it in the URL to the OAuth 2.0 server, it fails to actually check/validate the
parameter in the callback against what it previously selected.

The regression was introduced when switching underlying vendor code.[4]


As described in the OAuth 2.0 RFC spec, this opens the site relying on the
software up to clickjacking and CSRF attacks.[1]

A successful attack can lead to loss of integrity of the user/victim.


Update callback function to verify presence and correct `state` value as
previously chosen prior to initiating the OAuth2 flow[5], as done in v0.4


2019-08-17: Bug discovered
2019-08-17: CVE requested, assigned, privately disclosed to maintainer,
            bugfix/patch authored
2019-08-18: Maintainer acknowledged, patched version 0.4 is released

Discovery by me.

Thanks to the maintainer Schine GmbH. for a quick acknowledgement and release.



Best Regards,
Justin Bull
PGP Fingerprint: E09D 38DE 8FB7 5745 2044 A0F4 1A2B DEAA 68FD B34C

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.