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

Improvement to wp-json api User check #1319

Closed
erwanlr opened this issue Mar 20, 2019 · 0 comments
Closed

Improvement to wp-json api User check #1319

erwanlr opened this issue Mar 20, 2019 · 0 comments

Comments

@erwanlr
Copy link
Member

erwanlr commented Mar 20, 2019

Current check for users on the wp-json API rely on https://github.com/wpscanteam/wpscan/blob/master/app/finders/users/wp_json_api.rb#L56 for the URL. However, in some case, for example targets with a subdir, the wp-json URL may be incorrect (subdir/wp-json/wp/v2/users/ instead of wp-json/wp/v2/users/).

The homepage should be checked for the wp-json URL, if not found then the default should be used.

<link rel='https://api.w.org/' href='https://wp.lab/wp-json/' />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://wp.lab/cms/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://wp.lab/cms/wp-includes/wlwmanifest.xml" />
<link rel='shortlink' href='https://wp.lab/' />
<link rel="alternate" type="application/json+oembed" href="https://wp.lab/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwp.lab%2F" />
<link rel="alternate" type="text/xml+oembed" href="https://wp.lab/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwp.lab%2F&#038;format=xml" />
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

1 participant