-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Catalog wordpress plugins #1911
Labels
ecosystem:wordpress
relating to the wordpress ecosystem
enhancement
New feature or request
good-first-issue
Good for newcomers
new-cataloger
Comments
westonsteimel
added
enhancement
New feature or request
new-cataloger
ecosystem:wordpress
relating to the wordpress ecosystem
labels
Jul 5, 2023
Hey there! I started working on this feature but found these lines in grype package during debugging why I didn't see vulnerable wordpress packages. These lines mark wordpress as a "known target" and ignore these vulnerabilities:
@wagoodman which order of making changes should I follow to deliver/release new wordpress cataloger with minimal impact on false positives?
|
disc
added a commit
to disc/syft
that referenced
this issue
Oct 11, 2023
disc
added a commit
to disc/syft
that referenced
this issue
Oct 11, 2023
Signed-off-by: disc <a.hacicheant@gmail.com>
disc
added a commit
to disc/syft
that referenced
this issue
Oct 12, 2023
Signed-off-by: disc <a.hacicheant@gmail.com>
disc
added a commit
to disc/syft
that referenced
this issue
Oct 12, 2023
Signed-off-by: disc <a.hacicheant@gmail.com>
disc
added a commit
to disc/syft
that referenced
this issue
Feb 3, 2024
Signed-off-by: disc <a.hacicheant@gmail.com>
disc
added a commit
to disc/syft
that referenced
this issue
Feb 7, 2024
Signed-off-by: disc <a.hacicheant@gmail.com>
wagoodman
pushed a commit
to disc/syft
that referenced
this issue
Feb 14, 2024
Signed-off-by: disc <a.hacicheant@gmail.com>
wagoodman
added a commit
that referenced
this issue
Feb 14, 2024
* Closes #1911 Wordpress cataloger Signed-off-by: disc <a.hacicheant@gmail.com> * Fixed a few unit tests and static analizer notices Signed-off-by: disc <a.hacicheant@gmail.com> * Updated `README.md` Signed-off-by: disc <a.hacicheant@gmail.com> * Fixed `golangci-lint` notices Added integration test for `wordpress-plugin` Signed-off-by: disc <a.hacicheant@gmail.com> * Fixed `gosimports` notices Signed-off-by: disc <a.hacicheant@gmail.com> * Updated `json schema` version Signed-off-by: disc <a.hacicheant@gmail.com> * Fixed CLI tests, increased expected package count Signed-off-by: disc <a.hacicheant@gmail.com> * Read first 4Kb of a plugins file's content Signed-off-by: disc <a.hacicheant@gmail.com> * replace JSON schema version Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * change wording on source info for wordpress packages Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * Minor changes after a huge refactoring Signed-off-by: disc <a.hacicheant@gmail.com> * Removed unused files Signed-off-by: disc <a.hacicheant@gmail.com> * Updated schema Signed-off-by: disc <a.hacicheant@gmail.com> * Fixed integration tests Signed-off-by: disc <a.hacicheant@gmail.com> * fix integration tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * Renamed `metadata.Name` to `metadata.PluginInstallDirectory` Signed-off-by: disc <a.hacicheant@gmail.com> * rename fields to be compliant with json conventions Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: disc <a.hacicheant@gmail.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
GijsCalis
pushed a commit
to GijsCalis/syft
that referenced
this issue
Feb 19, 2024
* Closes anchore#1911 Wordpress cataloger Signed-off-by: disc <a.hacicheant@gmail.com> * Fixed a few unit tests and static analizer notices Signed-off-by: disc <a.hacicheant@gmail.com> * Updated `README.md` Signed-off-by: disc <a.hacicheant@gmail.com> * Fixed `golangci-lint` notices Added integration test for `wordpress-plugin` Signed-off-by: disc <a.hacicheant@gmail.com> * Fixed `gosimports` notices Signed-off-by: disc <a.hacicheant@gmail.com> * Updated `json schema` version Signed-off-by: disc <a.hacicheant@gmail.com> * Fixed CLI tests, increased expected package count Signed-off-by: disc <a.hacicheant@gmail.com> * Read first 4Kb of a plugins file's content Signed-off-by: disc <a.hacicheant@gmail.com> * replace JSON schema version Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * change wording on source info for wordpress packages Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * Minor changes after a huge refactoring Signed-off-by: disc <a.hacicheant@gmail.com> * Removed unused files Signed-off-by: disc <a.hacicheant@gmail.com> * Updated schema Signed-off-by: disc <a.hacicheant@gmail.com> * Fixed integration tests Signed-off-by: disc <a.hacicheant@gmail.com> * fix integration tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * Renamed `metadata.Name` to `metadata.PluginInstallDirectory` Signed-off-by: disc <a.hacicheant@gmail.com> * rename fields to be compliant with json conventions Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: disc <a.hacicheant@gmail.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
ecosystem:wordpress
relating to the wordpress ecosystem
enhancement
New feature or request
good-first-issue
Good for newcomers
new-cataloger
What would you like to be added:
Add a new cataloger to discover wordpress plugins
Why is this needed:
Wordpress is quite heavily used and there are quite a significant number of vulnerability records related to wordpress plugins, so being able to discover available plugins with syft would allow detection later.
Additional context:
Some information on what the expected metadata looks like: https://developer.wordpress.org/reference/functions/get_plugin_data/
Using the quickstart from https://hub.docker.com/r/bitnami/wordpress/, after execing into the wordpress image I get:
The plugins in that image end up under
/bitnami/wordpress/wp-content/plugins/
. There is information about discovering the plugin directory at https://developer.wordpress.org/plugins/plugin-basics/determining-plugin-and-content-directories/ but possibly something like**/wp-content/plugins/
would sufficeLooking at the (truncated) contents for one specific plugin:
The text was updated successfully, but these errors were encountered: