Title: Can plugins modify theme files?
Last modified: August 21, 2016

---

# Can plugins modify theme files?

 *  [sleepdepd](https://wordpress.org/support/users/sleepdepd/)
 * (@sleepdepd)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/can-plugins-modify-theme-files/)
 * Apologies if this is the wrong forum for this question.
 * I’m helping a friend with their WordPress site and found some funny code in the
   function.php file in their Theme.
 * Basically the code uses strrev(), decode_base64() and eval() to execute some 
   malicious code. I’m wondering if the extensibility in plugins would allow one
   of them to add this code to the functions.php file, or if its more likely someone
   added this code to the file manually.
 * Thank you.

Viewing 1 replies (of 1 total)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/can-plugins-modify-theme-files/#post-4222899)
 * Hacks can happen in various ways – in any case, these are the resources for hacked
   sites:
 * [http://codex.wordpress.org/FAQ_My_site_was_hacked](http://codex.wordpress.org/FAQ_My_site_was_hacked)
   
   [http://wordpress.org/support/topic/268083#post-1065779](http://wordpress.org/support/topic/268083#post-1065779)
   [http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/](http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/)
   [http://ottopress.com/2009/hacked-wordpress-backdoors/](http://ottopress.com/2009/hacked-wordpress-backdoors/)
 * Additional Resources:
    [http://sitecheck.sucuri.net/scanner/](http://sitecheck.sucuri.net/scanner/)
   [http://www.unmaskparasites.com/](http://www.unmaskparasites.com/) [http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html](http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html)

Viewing 1 replies (of 1 total)

The topic ‘Can plugins modify theme files?’ is closed to new replies.

## Tags

 * [exploit](https://wordpress.org/support/topic-tag/exploit/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/can-plugins-modify-theme-files/#post-4222899)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
