https://test.wikipedia.org/w/index.php?title=Sandbox&action=edit&debug=true&uselang=constructor
generates
TypeError: src.substr is not a function
https://test.wikipedia.org/w/index.php?title=Sandbox&action=edit&debug=true&uselang=constructor
generates
TypeError: src.substr is not a function
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Use "obj.hasOwnProperty( prop )" instead of "prop in obj" | mediawiki/extensions/WikiEditor | master | +6 -3 |
I'm not sure how this could be exploited... But @Krinkle, should we have an Object.prototype.hasOwnProperty.call( object, ... ) check in autoLang?
Both https://gerrit.wikimedia.org/r/186006 and https://gerrit.wikimedia.org/r/184619 fixes this bug in WikiEditor. @gerritbot has possible no rights to post here.
I didn't find a possibility to exploit this bug.
Change 184619 merged by jenkins-bot:
Use "obj.hasOwnProperty( prop )" instead of "prop in obj"