by tux3 · 9mo ago · 0 comments
In short, a Wikimedia Foundation account was doing some sort of test which involved loading a large number of user scripts. They decided to just start loading random user scripts, instead of creating some just for this test.
The user who ran this test is a Staff Security Engineer at WMF, and naturally they decided to do this test under their highly-privileged Wikimedia Foundation staff account, which has permissions to edit the global CSS and JS that runs on every page.
One of those random scripts was a 2 year old malicious script from ruwiki. This script injects itself in the global Javascript on every page, and then in the userscripts of any user that runs into it, so it started spreading and doing damage really fast. This triggered tons of alerts, until the decision was made to turn the Wiki read-only.
The security guy is just the patsy because he actioned it.
They have obviously done this a million times before and now they got burned.
That being said, interesting to see how salaries skyrocketed over the years: https://meta.wikimedia.org/wiki/Wikimedia_Foundation_salarie... but not that much for engineering.
In the case of a Learning event, you keep your job, and take the time to make the environment more resilient to this kind of issue.
In the case of a Limiting event, you lose your job, and get hired somewhere else for significantly better pay, and make the new environment more resilient to this kind of issue.
Hopefully the Wikimedia foundation is the former.
This is more common than you'd think.
> sbassett
That makes the fix pretty easy. Write a regex to detect the evil script, and revert every page to a historic version without the script.
It's very short and from one of my favorite books. Increasingly relevant.
This library wasn't a living creature, or even possessed of automation (which here might mean something more, far more, than human)."
The other day I was using Claude for a task, but it occurred to me, what if Claude is unreachable.
So, I told it to "encode your wisdom into this script in case you are not available"
That was my own version of that
Not so ironically, it came up when we were discussing "software archeology".
The Mummy?
I agree, mostly, but I'm also really glad I don't have to put out this fire. Cheering them on from the sidelines, though!
I refuse to believe that someone on the security team intentionally tested random user scripts in production on purpose.
So, like the Samy worm? (https://en.wikipedia.org/wiki/Samy_%28computer_worm%29)
"Claude> Yes, you're absolutely right! I'm sorry!"
this is both really cool and really really insane
For the global ones that need admin permissions to edit, it's no different from all the other code of mediawiki itself like the php.
For the user scripts, it's no worse than the fact that you can run tampermonkey in your browser and have it modify every page from evry site in whatever way your want.
However its been really useful to allow power users to customize the interface to their needs. It also is sort of a pressure release for when official devs are too slow for meeting needs. At this point wikipedia has become very dependent on it.
And when you have enough rights, you get to add arbitrary code to everywhere on your site.
On the other hand,
>a Staff Security Engineer at WMF, and naturally they decided to do this test under their highly-privileged Wikimedia Foundation staff account
seriously?
> our enemies are innovative and resourceful, and so are we. They never stop thinking about new ways to harm our site and our users, and neither do we.
what language is this?
this is just us playing on the computer, we got b0mbz