Security in Wordpress Flashcards

1
Q

Q: Why is security important in WordPress?

A

A: To protect the site from attacks, data breaches, and unauthorised access.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Q: What are the most common security threats in WordPress?

A

A: Brute force attacks, SQL injection, cross-site scripting (XSS), and malware.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Q: How can you secure the WordPress admin area?

A

A: Use strong passwords, two-factor authentication, and limit login attempts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Q: What role does HTTPS play in WordPress security?

A

A: Encrypts data transfer between the user and the site, preventing interception.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Q: What is the purpose of the wp-config.php file?

A

A: To store critical configuration settings and database credentials.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Q: What plugin can you use to limit login attempts?

A

A: Limit Login Attempts Reloaded.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Q: How can you change the default WordPress login URL?

A

A: Use a plugin like WPS Hide Login.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Q: What is two-factor authentication (2FA)?

A

A: A security method requiring two forms of identification to log in.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Q: What function allows you to check login failures?

A

A: wp_login_failed hook.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Q: How do you disable XML-RPC to prevent brute force attacks?

A

A: Add the following to your .htaccess file:

<Files>
Order Deny,Allow
Deny from all
</Files>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Q: Why is it important to use the principle of least privilege?

A

A: To limit users to only the permissions they need, reducing security risks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Q: How do you check a user’s permissions programmatically?

A

A: Use the current_user_can() function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Q: How can you secure the wp-admin directory?

A

A: Use a password-protected .htaccess file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Q: How can you audit user activity in WordPress?

A

A: Use a plugin like WP Activity Log.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Q: Why should you avoid using the default “admin” username?

A

A: It is commonly targeted in brute force attacks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Q: What permissions should be set for wp-config.php?

A

A: 400 or 440 to prevent unauthorised access.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Q: How can you prevent access to sensitive files like .htaccess and wp-config.php?

A

A: Add rules in .htaccess to deny access.

18
Q

Q: How do you disable directory listing in WordPress?

A

A: Add Options -Indexes to the .htaccess file.

19
Q

Q: How can you secure file uploads in WordPress?

A

A: Use a plugin to scan uploads for malicious content.

20
Q

Q: What is the purpose of the DISALLOW_FILE_EDIT constant?

A

A: Prevents file editing through the WordPress admin dashboard.

21
Q

Q: Why should you avoid using nulled plugins and themes?

A

A: They often contain malware or malicious code.

22
Q

Q: How can you update plugins and themes automatically?

A

A: Add the following to your wp-config.php:

add_filter( ‘auto_update_plugin’, ‘__return_true’ );
add_filter( ‘auto_update_theme’, ‘__return_true’ );

23
Q

Q: How do you check plugins for known vulnerabilities?

A

A: Use a plugin like Wordfence or Sucuri Security.

24
Q

Q: What should you do before installing a new plugin?

A

A: Check its reviews, update frequency, and compatibility.

25
Q

Q: Why is it important to delete unused plugins and themes?

A

A: They can be exploited if not updated.

26
Q

Q: How can you change the default WordPress table prefix?

A

A: Update the $table_prefix variable in wp-config.php.

27
Q

Q: How do you back up a WordPress database?

A

A: Use a plugin like UpdraftPlus or WP-CLI’s wp db export.

28
Q

Q: How can you secure database access?

A

A: Use strong database passwords and limit user privileges.

29
Q

Q: What is the purpose of the DISALLOW_UNFILTERED_HTML constant?

A

A: Prevents users from adding unfiltered HTML, reducing XSS risks.

30
Q

Q: Why should you limit the number of database connections?

A

A: To reduce potential access points for attackers.

31
Q

Q: What is a Web Application Firewall (WAF)?

A

A: A security layer that filters and monitors HTTP traffic to prevent attacks.

32
Q

Q: Name a popular WAF plugin for WordPress.

A

A: Wordfence Security or Sucuri Firewall.

33
Q

Q: What is reCAPTCHA, and how can it be used in WordPress?

A

A: A tool to prevent spam and bots, often added to login and comment forms.

34
Q

Q: How can you monitor suspicious activity on your WordPress site?

A

A: Use a plugin like iThemes Security or Sucuri.

35
Q

Q: How do you block IP addresses in WordPress?

A

A: Use .htaccess or a security plugin.

36
Q

Q: Why should you regularly update WordPress, plugins, and themes?

A

A: To fix vulnerabilities and improve security.

37
Q

Q: Why is it important to back up your WordPress site?

A

A: To restore your site in case of an attack or failure.

38
Q

Q: What tool can be used to scan for malware on a WordPress site?

A

A: Wordfence, Sucuri, or MalCare.

39
Q

Q: Why should you monitor your site for changes to core files?

A

A: To detect and remove malicious modifications.

40
Q

Q: How can you verify the integrity of WordPress core files?

A

A: Use the wp core verify-checksums WP-CLI command.