![]() |
Warning Using Free WP Themes
Just wanted to give people a heads up, the last two themes I downloaded have had hidden links inside the code for the index file.
They wouldn't show up on the page but were viewable when you looked at the source. |
I suspected the same on a client's site that runs multiple wordpress installations that has used multiple free templates. In 5 of the cases, the templates included code in the header.php and sidebar.php that allowed specially crafted strings to allow remote execution. We weren't able to determine whether the modification was made prior to his template being installed or the result of someone having his admin password for a few of the blogs as he didn't have the original template file zips.
|
None of the stuff I've found, so far, has been malicious but I do suggest anyone using free themes look at them closely.
I've never noticed it before but one of the themes I had issues with was one I'd downloaded about a year ago. I just had never used it. |
What were the hidden links to? And were they base64 encoded? I've seen a coiuple of those, and could have just decoded and removed the base64 encoded crap, but I ditched the themes instead.
|
Quote:
These were links written as html but positioned in such a way that they were not visible. One of them redirected to what looks like an old tube site. The others I didn't follow but deleted. |
Encoding makes it hard for someone to change the link and remove the link that they are trying to send a little PR to. It is usually wrapped around some other function so that removing it breaks the template somewhat. That's their 'payment' for making the free template.
However, it does make it incredibly easy to hide a malicious payload -- a payload that probably 90% of the internet wouldn't ever notice. If you had something unique enough in the template that you could find sites using it through a google search, you could exploit a few machines. It is the reason I suspect that the templates were not delivered with exploits, but, modified through the wordpress admin. |
Quote:
|
I checked mine and luckily didn't have any crap in there. But yeah defiantly want to check and make sure there isn't something that might change your blog without your knowing it.
|
Quote:
|
Maybe This will help. Read the entries towards the bottom of the page.
|
The problem is that when you decode it like that, you see the rendered code. So, if there was a widget called in the footer, you would have the rendered widget and you couldn't use the wordpress admin to control it.
Secondly, if you do view the rendered text and think, ok, I'm good with what is being displayed, you would miss any possible exploits that require certain parameters or header values and you wouldn't be able to see the actual code being executed. I wouldn't use that as a safety net, though, if it didn't include your existing footer widgets, then I would think you should be ok. What I'm starting to see somewhat frequently is that they are wrapping integral page functions into their encoding to prevent you from blindly removing the encoded block. |
I just downloaded a free WP theme and I like to check the code as well, so I decoded the footer.php and found
Code:
error_reporting(0); |
They are grabbing a link from their rotator script based on the domain that is requesting it. They would be able to change the links displayed in the footer based on your domain name.
|
thanks for the heads up
|
download the TAC plugin dont have like but google it works great to scan your themes :)
|
Is it possible to have the names of those WP themes, Thanks for bringing this up.
|
mmm, thanks for letting us know!
|
Quote:
|
Quote:
as was previously posted, too many too list and who know what you are using, some of them, it's not malicious, it's just them maybe taking some probably crap traffic that didn't already buy from you posts in the bottom footer, so those, if the theme is good seo wise and looks good, go ahead and use it, i mean it's free and they person who made it might as well make a bit of cash for their hard work, but others do has evil code in them, download the TAC plugin that i listed earlier and test the theme. |
thanks, before reading this all I've just thought editing index file and deleting links will help, but everything seems to be a lot more complicated. Thanks again.
|
All times are GMT -4. The time now is 02:18 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc