mdn / sprints

Archived: MDN Web Docs issues are tracked in the content repository.
https://github.com/mdn/content
Creative Commons Zero v1.0 Universal
149 stars 142 forks source link

Failed XSS Attempt at https://wiki.developer.mozilla.org/zh-CN/docs/MDN/Feedback #3456

Closed GalvinGao closed 4 years ago

GalvinGao commented 4 years ago

Request type

Details

There's code that seems to be a failed (not successful; not vulnerable to the user) XSS attempt in the zh-CN MDN wiki page Array.prototype.map(), specifically at https://wiki.developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/map#See_also . Please refer to the screenshot below.

Snipaste_2020-07-02_00-28-46

By checking the history records of the wiki page, it seems the change comes from Revision 1616575 (diff), which is committed by an user named Jayly.

Side Notes

I don't have much of the skill about analyzing malicious JavaScript scripts, but by doing a quick search of cookie and http in the script billyjons.net/21db1c5c8b372aecca.js it seems that it is a real XSS script that might send information including Cookies in browser to the attacker, and may also contain other credentials. This behavior is quite uncommon and suspicious so I decided to report it here ;)

Affected Page(s)

Elchi3 commented 4 years ago

Thanks! I removed the failed xss attempt and banned the user.