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

Populate valid versions from metadata, too #1850

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

Nirusu
Copy link
Contributor

@Nirusu Nirusu commented Aug 6, 2024

Currently, WPScan populates its list of valid WordPress versions
from a list of fingerprinted WordPress files.

However, this file is not always up-to-date, causing version
detection to fail as WPScan thinks its not a valid version
and raises a InvalidWordPressVersion exception.

Since a lot of the version information is also pulled from
metadata.json anyway, also include this file for the initial
version detection, instead of just relying on the list of
fingerprinted files.

Fixes #1849

Discussion Question

I don't know why exactly the versions were pulled from the fingerprint files, anyway.
Maybe it makes sense to remove it completely?
Since I did not know, I went for the defensive approach and just determining the version based on both of them.

But I wonder why if there is a specific reason why it was not pulled from the metadata before, or why it was based on the fingerprints only.

Licensing

By submitting code contributions to the WPScan development team via Github Pull Requests, or any other method, it is understood that the contributor is offering the WPScan company (company number 83421476900012), which is registered in France, the unlimited, non-exclusive right to reuse, modify, and relicense the code.

Currently, WPScan populates its list of valid WordPress versions
from a list of fingerprinted WordPress files.

However, this file is not always up-to-date, causing version
detection to fail as WPScan thinks its not a valid version
and raises a InvalidWordPressVersion exception.

Since a lot of the version information is also pulled from
metadata.json anyway, also include this file for the initial
version detection, instead of just relying on the list of
fingerprinted files.
@erwanlr erwanlr merged commit fa0130b into wpscanteam:master Sep 5, 2024
1 of 5 checks passed
@Neved4 Neved4 mentioned this pull request Sep 5, 2024
1 task
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

Successfully merging this pull request may close these issues.

Unable to detect Wordpress version
2 participants