You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users may request for their site to be restored after it is sorried. Rollbacks can only be performed with `root`.
6
+
7
+
1. If the user requests for their media to be backed up, `tar` the `/public_html/wp-content/uploads` folder and email it to them.
8
+
2. From `supernova`, run
9
+
10
+
reset-wpadmin username
11
+
12
+
Note that the user will need to recover their password on the WordPress web admin dashboard later, or manually do so according to the instructions on the user-docs.
13
+
3. Run
14
+
15
+
restore-wpbackup target-username staff-username
16
+
17
+
as root/with `sudo`. Select a backup using best judgement. It is usually best to check for when files were last changed to estimate a compromise date.
18
+
4. Delete the contents of the `public_html` directory.
19
+
5. Move the contents of the backed-up directory to `public_html` with `mv public_html_backup/* public_html`.
20
+
6. Run `wp core update` in their `public_html` directory.
A malicious actor gained access to and was able to inject code into your site. They may create redirects from a page to a different site, such as a gambling or scam page, or they will run processes on our servers.
102
+
103
+
Such exploits are fairly common, as WordPress is by far the most popular web content management system. Usually, they gain access through an outdated plugin with a security vulnerability, but there are many possible ways this might have happened.
104
+
105
+
### What do I do?
106
+
107
+
Reach out to [help@ocf.berkeley.edu](mailto:help@ocf.berkeley.edu) with your group account username. We will roll your site back to before the compromise date. If you have any recently uploaded media files that you would like before the site is rolled back, let us know in the email and we will save them for you. All data stored in the database (blogs, etc) will not be rolled back.
108
+
109
+
### How do I prevent this from happening?
110
+
111
+
-**Keep your site up to date:** Regularly update your PHP version. More information can be found on the [WordPress.com documentation][2]. Enable automatic updates for plugins by selecting `Plugins > Enable auto-updates`.
112
+
-**Install security plugins:** WordPress has many security-oriented plugins that can help prevent attacks.
113
+
-**Switch away from WordPress:** Since WordPress is by far the most popular web content management system, WordPress sites are the most targeted in attacks. Using a different web platform or static site generator will make it far less likely your site will be targeted.
0 commit comments