GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Running Wordpress on PHP7.2/7.3 (https://gfy.com/showthread.php?t=1368163)

Paul&John 09-03-2023 12:55 AM

Running Wordpress on PHP7.2/7.3
 
Hi there!

How big of a security risk is running Wordpress on older versions of PHP? And when considering an upgrade one should move to 7.4 or the latest stable of 8.x? (I usually have only 2-3 plugins, so I guess the upgrade shouldn't cause much of a trouble)

I wasn't thinking about updating it, but one of the blogs is using AIOSEO and it says the support for 7.3.3 will be discontinued this year.

Thanks.

ladida 09-03-2023 08:00 AM

Your problem won't be the php version, but wordpress itself.

Paul&John 09-04-2023 01:39 AM

You mean security wise? Fortunately I didn't had any issues (hacks etc) in the last year (or I just dont know about it which is always a possibility).

k0nr4d 09-04-2023 02:54 AM

Your issue won't be with PHP, it will be with wordpress itself if it's an older version + whatever million plugins you have installed for it. You don't even get the common courtesy of a human being hacking you anymore, it's just bots doing it at this point. If you are running PHP 5 or PHP 8 it won't make a difference if your code has exploits.

The PHP version is largely irrelevant - I know alot of people are all worried about EOL on PHP 7 and so forth but the concern with these older PHP versions isn't that your site will get hacked - anything exploit that comes out for older PHP is very likely to be something that requires local access to the server to begin with rather then something that can be done remotely. There's still sites running PHP 5.2 out there and not getting hacked.

ladida 09-04-2023 03:00 AM

Quote:

Originally Posted by Paul&John (Post 23172821)
You mean security wise? Fortunately I didn't had any issues (hacks etc) in the last year (or I just dont know about it which is always a possibility).

Yes, was talking security wise. As Konrad up there mentioned also, i know plenty of sites on php 5. Nothing wrong with them. They might have some upgrading issues like you're facing etc, but other then that, it works, it won't stop working cause of eol.

Klen 09-04-2023 04:13 AM

It depend on several factors , like:

- How big is your site. If your site receives only few hits daily mostly like nobody knows about it therefore wont be interesting to "get in" even if you leave open door
- what kind of plugins you have installed
- is it WordPress version up to date
- do you have installed script firewall of any kind (mod security, CSF, your own rules)
- do you have installed security patches for old PHP version

k0nr4d 09-04-2023 04:32 AM

Quote:

Originally Posted by Klen (Post 23172858)
It depend on several factors , like:

- How big is your site. If your site receives only few hits daily mostly like nobody knows about it therefore wont be interesting to "get in" even if you leave open door

Bots are going to hammer it 24/7 looking for exploits. If he has anything else on the same server it can get compromised.

Like I said though bigger issue is old wordpress and plugins and not PHP or Apache itself.

Mr Pheer 09-04-2023 04:57 AM

Best thing you can do is get rid of "Generated by wordpress" and all other wordpress identifiers out of your source code. There are plugins to help do that.

k0nr4d 09-04-2023 06:01 AM

Quote:

Originally Posted by Mr Pheer (Post 23172876)
Best thing you can do is get rid of "Generated by wordpress" and all other wordpress identifiers out of your source code. There are plugins to help do that.

That will make no difference. There are other markers that something is wordpress like shit in the html source with directories like wp-content and so forth.

Mr Pheer 09-04-2023 06:20 AM

Quote:

Originally Posted by k0nr4d (Post 23172889)
That will make no difference. There are other markers that something is wordpress like shit in the html source with directories like wp-content and so forth.

It isn't foolproof, but it helps. Not all bots are searching for every marker. Most are searching for the most obvious.

k0nr4d 09-04-2023 06:31 AM

Quote:

Originally Posted by Mr Pheer (Post 23172890)
It isn't foolproof, but it helps. Not all bots are searching for every marker. Most are searching for the most obvious.

The bots are searching for known exploits, so they'll attack specific files and paths for specific plugins. They aren't just looking for wordpress installations in general.

Klen 09-04-2023 06:57 AM

Quote:

Originally Posted by k0nr4d (Post 23172865)
Bots are going to hammer it 24/7 looking for exploits. If he has anything else on the same server it can get compromised.

Like I said though bigger issue is old wordpress and plugins and not PHP or Apache itself.

I base that on behavior on two remain sites which i have - first one , which was my flagship site and had 65k daily traffic and tons of backlinks at one point but now almost nothing, it is still hammered on daily bases by various bots trying get into wordpress and other common security holes. But the second site which had only 3k daily in it's best day and which is even older site, from year 1998, but it's not hammered by any bot compared to first site.

Paul&John 09-04-2023 12:06 PM

Thanks for the answers

Huggles 09-04-2023 12:10 PM

Good thing about Wordpress is even if someone hacked my shit and destroyed my entire site I could have my backup running again in 10 minutes.

k0nr4d 09-04-2023 11:30 PM

Quote:

Originally Posted by Huggles (Post 23173012)
Good thing about Wordpress is even if someone hacked my shit and destroyed my entire site I could have my backup running again in 10 minutes.

No one really destroys sites now unless they hate you specifically. What they do instead is they make redirects to some affiliate offers to make money off your traffic. Sometimes it takes weeks or months before people realize they were even hacked because it only redirects for certain geos for instance.

Huggles 09-05-2023 12:08 AM

Quote:

Originally Posted by k0nr4d (Post 23173202)
No one really destroys sites now unless they hate you specifically. What they do instead is they make redirects to some affiliate offers to make money off your traffic. Sometimes it takes weeks or months before people realize they were even hacked because it only redirects for certain geos for instance.


Well I make $0 off my site right now so does it even fucking matter?


I have the most innovative, most advanced website for media display... $0 per month


Meanwhile if you run a shit tube you can be loaded with 0 innovation


Such is life in 2023

Klen 09-05-2023 06:36 AM

Quote:

Originally Posted by k0nr4d (Post 23173202)
No one really destroys sites now unless they hate you specifically. What they do instead is they make redirects to some affiliate offers to make money off your traffic. Sometimes it takes weeks or months before people realize they were even hacked because it only redirects for certain geos for instance.

Yep. times when purpose of hacking was to post message "you been defaced" are long gone.

k0nr4d 09-05-2023 06:37 AM

Quote:

Originally Posted by Huggles (Post 23173211)
Well I make $0 off my site right now so does it even fucking matter?


I have the most innovative, most advanced website for media display... $0 per month

Yeah but maybe the hacker is making money :1orglaugh

Colmike9 09-05-2023 08:11 AM

Quote:

Originally Posted by Klen (Post 23173311)
Yep. times when purpose of hacking was to post message "you been defaced" are long gone.

I still do this :upsidedow

SCORE Ralph 09-05-2023 03:07 PM

Quote:

Originally Posted by k0nr4d (Post 23172889)
That will make no difference. There are other markers that something is wordpress like shit in the html source with directories like wp-content and so forth.

Leaving your default folder structure is a big security issue. I can't tell you how many times I check for wp-admin and shake my head that a login pops up.

sandman! 09-05-2023 03:55 PM

Old plugins is where you will get fucked

Colmike9 09-05-2023 03:57 PM

Just use Joomla, no one hacks that unless it's a targeted brute force to get login info or something not worth the effort like that. :upsidedow

Klen 09-06-2023 12:29 AM

Quote:

Originally Posted by Colmike9 (Post 23173343)
I still do this :upsidedow

You going to jail pal :1orglaugh

Huggles 09-06-2023 12:35 AM

Wordpress is actually pretty awesome... so much shit you can do with it, mostly for free!

ladida 09-08-2023 10:35 AM

Quote:

Originally Posted by SCORE Ralph (Post 23173464)
Leaving your default folder structure is a big security issue. I can't tell you how many times I check for wp-admin and shake my head that a login pops up.

It's not a "big security issue" :P. It's actually just a small nuissance. You think it would take a long time to find your admin login? :)
Furthermore, your admin login is irrelevant. You can identify wordpress just through certain source code things. Check wpscan. it has a hash for each wordpress version, so not only are you going to get identified, you're also going to be identified which version of wordpress you're running just from looking at your index source code and how it's layed out. Then it's free game, every plugin you have will get identified, and then the fun starts.

Colmike9 09-08-2023 11:10 AM

Honestly, no one's going to bother with hacking a WP porn site, except for rare targeted cases.
All I ever did were things like doing an injection when WP was more vulnerable with sites using pagination and not setting it up to use slugs, then adding in a funny pic somewhere. Or getting into workers' computers, turning up the volume, then making Appletalk scare them..
Or in school, making the teacher's CD drive constantly open

fris 09-08-2023 02:49 PM

too many hosts have servers with outdated php. for wp minimum is 7.4, but 8.0 or 8.1 (this is what i use)

7.4 is the more "safe" version as some peoples code may be incompatible with 8.1 etc.

i noticed while doing dev work for a few clients on vacares, they are shipping 7.3 on their servers wish they could upgrade the defaults for that, its a pain when doing work and want to use updated code.

ladida 09-08-2023 04:54 PM

Quote:

Originally Posted by Colmike9 (Post 23174426)
All I ever did <cut> Or getting into workers' computers, turning up the volume, then making Appletalk scare them..
Or in school, making the teacher's CD drive constantly open

Yea, the way you describe things, it's rather clear you didnt do anything.

Colmike9 09-08-2023 05:04 PM

Quote:

Originally Posted by ladida (Post 23174547)
Yea, the way you describe things, it's rather clear you didnt do anything.

k :upsidedow

Kittens 09-08-2023 08:19 PM

Quote:

Originally Posted by Huggles (Post 23173211)
Well I make $0 off my site right now so does it even fucking matter?


I have the most innovative, most advanced website for media display... $0 per month


Meanwhile if you run a shit tube you can be loaded with 0 innovation


Such is life in 2023

The worst part is that you think if you get hacked that someone's gonna inject an ad on your site and not completely destroy your server IP and domain's reputation with spam filters because the main reason to hack sites is to spam from them.

But hey, when you're back here in a month complaining don't act surprised when people point at your neglect here as the reason why.

jamezon 09-09-2023 10:30 PM

you can mitigate a lot of potential wordpress attacks on cloudflare with filters, if you know a bit about wordpress and bots and attackers metrics . i use a couple of older wp versions and also older php versions and they havent been hacked yet. just close everything that lets people from outside try to comment, mail, post etc. the easiest way is to use cloudflares waf > xmlrpc.php, wp-login.php, wp-comments.php, wp-admin, wp-mail, rest api, throw and block everyone out who is trying to access those from outside,+ it also takes load from your own server , its also good to do this on newer versions

fris 09-10-2023 08:32 AM

Quote:

Originally Posted by Mr Pheer (Post 23172876)
Best thing you can do is get rid of "Generated by wordpress" and all other wordpress identifiers out of your source code. There are plugins to help do that.

add_filter( 'the_generator', '__return_null' );


All times are GMT -7. The time now is 07:56 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123