Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to check themes integrity in WP-CLI #120

Closed
1 task done
emerson-oliveira opened this issue Dec 12, 2023 · 1 comment
Closed
1 task done

Add command to check themes integrity in WP-CLI #120

emerson-oliveira opened this issue Dec 12, 2023 · 1 comment

Comments

@emerson-oliveira
Copy link

Feature Request

Use Case and Problem Faced

I'm trying to ensure the integrity of the themes installed on my WordPress site. Currently, WP-CLI allows you to check the integrity of WordPress core files and plugins, but not themes. This is a problem because themes, like plugins, can be targets of attacks and compromise website security.

Proposed solution

I would like WP-CLI to include a command to check the integrity of themes, similar to the wp --allow-root plugin verify-checksums --all command. This command, which could be something like wp --allow-root theme verify-checksums --all, would verify the theme files against the checksums provided by the official WordPress theme repository.

This command would help identify any theme files that have been modified or corrupted and could be a valuable tool in maintaining website security.

Possible Disadvantages

A potential disadvantage of this functionality is that it may not be able to verify the integrity of custom themes or themes that have been significantly modified. Furthermore, like any security tool, it is not foolproof and should not be used as the only line of defense against security threats.

@danielbachhuber
Copy link
Member

Thanks for the suggestion, @emerson-oliveira.

The theme checksums idea is already tracked here: wp-cli/ideas#149

@danielbachhuber danielbachhuber closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants