Hacker Newsnew | past | comments | ask | show | jobs | submit | fredsted's commentslogin

Just set up a Gitea instance, pushed my code and switched my deployment script to it. Took 30 minutes. Github pulls still aren't working.


There's an exploit freely available already, by the way. You can't contain things like this.

If not, you or our agent could build an exploit from the information that's already out.


Are you 100% sure? I have tested 2 PoC's against my dev environment, no luck so far. So I am not sure if there is working exploit already.


I have not seen confirmation that the exploit is for the bug that is going to be patched.

It seems the published exploit can be easily prevented by filtering out multipart post requests. So people actively watching the situation can already prevent that issue by filtering those.


I was able to cook up something in less than 10 minutes and tested many sites. There is a page with enough explanations to do it.


Did you successfully run a RCE test, or only a vulnerability check? So far all write-ups and PoC's i've found fail to "cash in" on the RCE part.


I was able to bring it to the point of memory corruption. It is 3 am where I am now; I will continue in the morning. As a precaution, I configured .htaccess rule.

  # BEGIN php2shell-mitigation
  <IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP:Content-Type} multipart [NC]
  RewriteRule .* - [F,L]
  </IfModule>
  <If "%{HTTP:Content-Type} =~ /multipart/i">
  Require all denied
  </If>
  # END php2shell-mitigation
I added a rewritecond to ignore multipart before php-fpm receives anything. I did a similar thing for nginx servers. Also in .user.ini added "session.upload_progress.enabled = Off".

These two seem to do the trick, but again I am not 1000% sure until tomorrow morning's deeper dive. My eyes are burning, and I can't sleep because of the stress this exploit.


I've done the same in caddy:

@multipart header_regexp Content-Type (?i)multipart respond @multipart 403

@uploads_php path_regexp uploads_php ^/(?:./)?wp-content/uploads/.\.php(?:/.*)?respond @uploads_php 404

Plus the php.ini changes, "session.upload_progress.enabled = Off" and strict mode. Let's hope it holds until then


    @multipart header_regexp Content-Type (?i)multipart
    respond @multipart 403

    @uploads_php path_regexp uploads_php ^/(?:.*/)?wp-content/uploads/.*\.php(?:/.*)?
    respond @uploads_php 404


I've used Safari since I switched to Mac in 2009. It's always been fast and smooth, and the integration - like password sync and SMS 2FA keys - works great.



Any mirrors which don't require giving clicks to neo-Twitter, please?



It's wild that you are on antidepressants because of your job. Have you looked in to side effects and how hard they are to quit? I think you should quit both the antidepressants and the job. If you can't quit the job, don't make it the source of your personal worth, like other commenters say. You're selling your time for a salary. It's not that serious. If you're not getting any negative feedback, they're probably happy with your effort.


I see EU always regulating all sorts of things, ostensibly to help consumers, but why aren't they doing something about scam airlines like Ryanair?


Dark patterns are already regulated, but Ryanair does not comply.


It's a little too on the nose, isn't it?


We simply can't have an Internet where you'll need to comply with 100% of legalisation of all 193+ countries at all times; it's untenable.

For ofcom, 4chan is just a sticking their toes in the pool. If they fall, ofcom will have complete freedom to censor the entire Internet as they wish. It's madness.


That is released in May


It's wild because saying that NAT is required kind of admits your machines are vulnerable on the LAN! You should have good firewall rules no matter what.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: