News for hackers. Stuff that matters.
Re:One Computer Can Knock Almost Any WordPress Site Offline by Raphmedia on Wednesday February 07, 2018 @12:56PM (#16326489)
For those that are curious, here is what the famous "load-script.php" returns when you call it with a bunch of params: https://wordpress.com/wp-admin/load-scripts.php?c=0&load%5B%...
Re:One Computer Can Knock Almost Any WordPress Site Offline by dotancohen on Wednesday February 07, 2018 @01:25PM (#16326739)
That is a subtle way of making a point.

Note however that the file is under 450 KiB, there are images on that site which rival this (generated) file. And the readfile() call is an extraordinarily light call, all it does is, as the name implies, read from disk to STDOUT (the HTTP stream in this case).

Re:One Computer Can Knock Almost Any WordPress Site Offline by Raphmedia on Wednesday February 07, 2018 @03:14PM (#16327598)
Note that "load-styles.php" isn't any better https://wordpress.com/wp-admin/load-styles.php?c=0&dir=ltr&l...

That being said, one can only hope that generating those isn't that heavy on the server.

Re:One Computer Can Knock Almost Any WordPress Site Offline by LyndsySimon on Wednesday February 07, 2018 @02:54PM (#16327480)
It's not about filesize - you're not trying to saturate the site's network pipe, you're trying to tie up all of its processes combining arbitrary JS files so it doesn't have time to respond to legitimate requests.
Re:One Computer Can Knock Almost Any WordPress Site Offline by pmarreck on Wednesday February 07, 2018 @01:54PM (#16327000)
You know how I know WP is a monument to poor design and bad technical debt?

This right here.

Re:One Computer Can Knock Almost Any WordPress Site Offline by sebringj on Wednesday February 07, 2018 @02:24PM (#16327237)
This is just clickbait exploitation for Wordpress haters who think Wordpress is a pile of garbage and wished it would just die already and then were hoping this would be empirical damnation but were slightly disappointed that it wasn't because it actually helps expose an issue that will result in a patch that will result in Wordpress living on forever past our deaths. I mean, well that's what someone MIGHT think...not me of course, I mean I LOVE Wordpress.
Re:One Computer Can Knock Almost Any WordPress Site Offline by fredsted on Wednesday February 07, 2018 @12:52PM (#16326450)
As I assume that the load-scripts.php file is only used for the admin interface, it seems silly that WordPress didn't want to classify this as a bug and make it only accessible to authorized users.

Does anyone have an idea why this is?

Re:One Computer Can Knock Almost Any WordPress Site Offline by ryanlol on Wednesday February 07, 2018 @01:15PM (#16326656)
>Does anyone have an idea why this is?

Because it is not.

Re:One Computer Can Knock Almost Any WordPress Site Offline by brianshaffer on Wednesday February 07, 2018 @01:32PM (#16326802)
Solution: add http auth to your /wp-admin directory
Re:One Computer Can Knock Almost Any WordPress Site Offline by ryanlol on Wednesday February 07, 2018 @01:38PM (#16326856)
This will break things.

Edit: Why the downvotes? Lots of non-admin stuff lives inside wp-admin, "add http auth" is terrible advice.

https://censys.io/ipv4?q=%22wp-admin%2Fadmin-ajax.php%22

Hundreds of thousands of sites with "wp-admin/admin-ajax.php" on their index should more than prove this.

Re:One Computer Can Knock Almost Any WordPress Site Offline by brianshaffer on Wednesday February 07, 2018 @04:44PM (#16328304)
Good point. There may be some things that are needed publicly, which you could whitelist. I've seen the whole directory behind the auth on a handful of sites though. ex] tether.to/wp-admin
Re:One Computer Can Knock Almost Any WordPress Site Offline by asdfasdfasdf22 on Wednesday February 07, 2018 @12:30PM (#16326235)
recently set up a wordpress site on aws using elastic beanstalk, redis, and cloudfront -- can take quite a beating. if i had the chance to optimize more, it could have handled more... but i was really unimpressed with Wordpress and how it has failed to evolve much over the years.
Re:One Computer Can Knock Almost Any WordPress Site Offline by benburleson on Wednesday February 07, 2018 @01:05PM (#16326569)
Can't this be easily cached? It's GET of a unique URL, seems like a perfect solution.
Re:One Computer Can Knock Almost Any WordPress Site Offline by btown on Wednesday February 07, 2018 @01:16PM (#16326665)
An attacker could permute the load order or add other parameters, breaking any cache above the Wordpress level. This is definitely on WP to solve.
Re:One Computer Can Knock Almost Any WordPress Site Offline by ryanlol on Wednesday February 07, 2018 @01:17PM (#16326672)
>This is definitely on WP to solve

How do you propose that WP solve DoS attacks against their application?

This script simply doesn't seem particularly slow to me, despite messing with the parameters a bit.

https://wordpress.com/wp-admin/load-scripts.php?c=0&load%5B%...

Perhaps most people here are missing the fact that you can hit literally any part of WP a lot and it will break.

Re:One Computer Can Knock Almost Any WordPress Site Offline by ball_of_lint on Wednesday February 07, 2018 @01:38PM (#16326854)
Not having this script might slow down the site some, but it would completely prevent this attack. The goal isn't to prevent all DoS attacks, it's to prevent massive force multipliers like this so that DoS attacks are expensive.
Re:One Computer Can Knock Almost Any WordPress Site Offline by ryanlol on Wednesday February 07, 2018 @01:39PM (#16326872)
>Not having this script might slow down the site some, but it would completely prevent this attack.

Where "this attack" equals repeatedly requesting a script which isn't even particularly slow compared to other part of WP...

>it's to prevent massive force multipliers

This is not a "massive force multiplier". Please spend a tiny bit more time looking into the subject.

Re:One Computer Can Knock Almost Any WordPress Site Offline by SippinLean on Wednesday February 07, 2018 @01:34PM (#16326819)
"literally" as in "not literally" as most parts of WP are not vulnerable to this attack.
Re:One Computer Can Knock Almost Any WordPress Site Offline by ryanlol on Wednesday February 07, 2018 @01:36PM (#16326831)
But they literally are.
Re:One Computer Can Knock Almost Any WordPress Site Offline by thrownaway954 on Wednesday February 07, 2018 @01:45PM (#16326934)
i think you need to step away from your computer for a bit and calm down. Someone just found out about this vulnerability and yes there is debate about who is responsible for mitigating the attack vector, but that doesn't mean to get all stressed out about it. You are replying to ever comment that isn't aligned with your opinion at this point.
Re:One Computer Can Knock Almost Any WordPress Site Offline by ryanlol on Wednesday February 07, 2018 @01:49PM (#16326961)
I'm perfectly calm.

>Someone just found out about this vulnerability

This is grossly misrepresenting the issue. There is no vulnerability, webapps are slow.

>that doesn't mean to get all stressed out about it. You are replying to ever comment that isn't aligned with your opinion at this point.

Not getting stressed out is exactly what I am trying to advocate by calling out people spreading FUD.

Re:One Computer Can Knock Almost Any WordPress Site Offline by thrownaway954 on Wednesday February 07, 2018 @01:28PM (#16326767)
exactly, that's how every other adhoc solution does it. however the bigger issue is that since it site under wp-admin, it should require a login to access.
Re:One Computer Can Knock Almost Any WordPress Site Offline by SippinLean on Wednesday February 07, 2018 @01:38PM (#16326850)
Seems accidental, any reason this could be intentional?
Re:One Computer Can Knock Almost Any WordPress Site Offline by eridius on Wednesday February 07, 2018 @01:40PM (#16326881)
From the same paragraph:

> Since it is also used to improve performance of the wp-login.php page, it can be invoked before any user authorization is required.

Re:One Computer Can Knock Almost Any WordPress Site Offline by timkpaine on Wednesday February 07, 2018 @12:39PM (#16326326)
is something like this advisable to do to your own site to test or will cloud providers get angry? is it legal to do in general?
Re:One Computer Can Knock Almost Any WordPress Site Offline by asdfasdfasdf22 on Wednesday February 07, 2018 @12:45PM (#16326383)
i don't see why would it be illegal to do this to your own site. and i don't see why cloud providers would get angry -- you're just giving them money for the bandwidth you use on your account.

when i built out the wordpress aws site i mentioned here i used a locust cluster to simulate high traffic loads in order to test the load balancer in elastic beanstalk... amazon even has a guide on how to set it up.

Re:One Computer Can Knock Almost Any WordPress Site Offline by jerf on Wednesday February 07, 2018 @12:53PM (#16326458)
This will hammer your CPU to the wall too. If it's a cheap cloud provider that is charging you based on the assumption that you're not actually going to use very much CPU and the server you're running on is overprovisioned, they'll get angry. If you're paying for 100% of the specs you're getting, it won't bother them (i.e., AWS, where even the 'overprivisioned' tiny VMs are overprovisioned with specific SLAs for what that means, and you're still welcome to use 100% of that promise).
Re:One Computer Can Knock Almost Any WordPress Site Offline by asdfasdfasdf22 on Wednesday February 07, 2018 @01:16PM (#16326664)
> i.e., AWS

good points, this is what i was referring to - aws doesn't care.

Re:One Computer Can Knock Almost Any WordPress Site Offline by fredsted on Wednesday February 07, 2018 @12:53PM (#16326457)
You might use up your traffic allocation and your provider might shut the server down if it disturbs other tenants.
Re:One Computer Can Knock Almost Any WordPress Site Offline by magoon on Wednesday February 07, 2018 @01:36PM (#16326835)
Get a CDN
Re:One Computer Can Knock Almost Any WordPress Site Offline by ryanlol on Wednesday February 07, 2018 @01:12PM (#16326634)
One Computer Can Knock Almost Any Site Offline
Re:One Computer Can Knock Almost Any WordPress Site Offline by SippinLean on Wednesday February 07, 2018 @01:33PM (#16326807)
Except that usually DoS attacks are effective because they use a distributed system of many computers (DDoS).

This attack is notable in that it requires only one, this detail is worth mentioning.

Re:One Computer Can Knock Almost Any WordPress Site Offline by ryanlol on Wednesday February 07, 2018 @01:42PM (#16326901)
You clearly lack any understanding on this subject.

Application layer attacks are not a new thing.

Re:One Computer Can Knock Almost Any WordPress Site Offline by iaw on Wednesday February 07, 2018 @01:58PM (#16327024)
It would be awesome if your replies in this thread were constructive and educational.

You've made a few blanket statements without further clarification or evidence and are coming across as kind of insulting.

I refer you to the Hacker News guidelines on comments : https://news.ycombinator.com/newsguidelines.html

Re:One Computer Can Knock Almost Any WordPress Site Offline by ryanlol on Wednesday February 07, 2018 @02:10PM (#16327124)
>It would be awesome if your replies in this thread were constructive and educational.

I am aware that my replies have been brief, but WP is not a project I particularly want to defend and sadly nobody is paying me to do so.

>without further clarification or evidence

I would expect that the people making the claim about this serious new vulnerability should be the ones substantiating that claim.

Anyone who's ever ran a wordpress website should immediately know this is bullshit. It all sums up to "wordpress is really slow, this script is not particularly slow, other parts of wordpress are significantly slower".

Then there's the bunch of people telling you to restrict access to wp-admin... This is terrible advice and will break non-admin stuff that lives within wp-admin.

Re:One Computer Can Knock Almost Any WordPress Site Offline by wmeredith on Wednesday February 07, 2018 @01:26PM (#16326751)
I also found this click bait title humorous. ONE COMPUTER can launch a car to into space!*

* As long as it's the one controlling all the other computers that control all the systems for Falcon Heavy.

Re:One Computer Can Knock Almost Any WordPress Site Offline by firasd on Wednesday February 07, 2018 @01:09PM (#16326604)
I kinda agree with the WP people that this is not really an exploit. If you call a script that does a few seconds of processing, and keep calling it, yes it will take down the server...

That said it can definitely be mitigated by checking for this kind of request explicitly and not letting the same IP keep requesting the URL (plus caching, etc.) Maybe it's an argument for WP to integrate some of the features of 'firewall' plugins.

Re:One Computer Can Knock Almost Any WordPress Site Offline by Azkar on Wednesday February 07, 2018 @01:24PM (#16326730)
> If you call a script that does a few seconds of processing, and keep calling it, yes it will take down the server...

aka, exploiting the script loading behavior...

Re:One Computer Can Knock Almost Any WordPress Site Offline by firasd on Wednesday February 07, 2018 @01:30PM (#16326779)
The thing is, in WordPress, it's not uncommon to end up with a public URL that takes a few seconds to generate if it uses a few plugins or multiple queries on a low-end server. This is really just demonstrating that apache/nginx fall over at some point (usually what goes away first is the MySQL connection).
Re:One Computer Can Knock Almost Any WordPress Site Offline by thrownaway954 on Wednesday February 07, 2018 @01:27PM (#16326755)
i think the issue is that since the script sits under wp-admin it is outside of something that administrators can use caching techniques against. Also, if it is under wp-admin, it should require a logon to access.