Dangers behind downloading WordPress themes

There is an interesting post by Jeff Chandler on the WeblogTools Collection site titled “Watch Where You Download That“. The post talks about being careful where you get your WordPress [...]

There is an interesting post by Jeff Chandler on the WeblogTools Collection site titled “Watch Where You Download That“. The post talks about being careful where you get your WordPress themes from because, apparently, a lot of people are stealing themes and adding unknown, potentially bad code to the themes. The post has a video of the author downloading some random themes returned from a simple Google search and then examining their code to find sections where the theme runs some unknown encrypted PHP code.

While I entirely agree with the author that you should be very careful where you get your themes from and you should check your themes for any bad and/or odd-looking code, you shouldn’t over-react and freak out about all this. A simple examination of the mysterious code can reveal exactly what is happening.

I downloaded the first theme that the post’s author used in his video (“StudioPress_Red”) and I looked at the actual PHP code that was generated by decoding the “encrypted” code. Here is what the code actually is:

?> <div class="topcurve"></div>

<div id="footer">

<div id="credits">
<p>&copy; 2008 <?php bloginfo('name'); ?> . <?php if(is_home()) : ?><a href="http://dvdtoipodpro.com/" title="ipod video converter">ipod video converter</a><?php endif; ?></p>
</div>

<div class="cleared"></div>

</div> <!-- Closes Footer -->

<div class="bottomcurve"></div>

<?php wp_footer(); ?>

</div> <!-- Closes Wrapper -->

</body>
</html>
 <?

As you can see, the “encrypted” code adds a link to some site, which apparently hosts iPod video converter. Now, I don’t know what would happen if you click on that link (and I recommend that you don’t) but as you can see, it is just a link. The “encrypted” code does not seem to automatically go there, it doesn’t seem to secretly download anything, etc. Most likely, the author of the stolen theme encrypted this section so you wouldn’t be able to remove the iPod video converter link from your blog.

With all that said, if you are running a WordPress blog, you should check out the TAC Plugin. It examines your installed themes and lets you know whether there is anything suspicious about them.

VN:F [1.9.13_1145]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)