Giter Site home page Giter Site logo

Incorrect Plugin Detection about wpscan HOT 6 CLOSED

wpscanteam avatar wpscanteam commented on August 19, 2024
Incorrect Plugin Detection

from wpscan.

Comments (6)

ethicalhack3r avatar ethicalhack3r commented on August 19, 2024

Thanks for the info.

Just to clarify. An invalid plugin redirects you back to the main site?

http://targetsite.com/wp-content/plugins/this-is-not-a-plugin/ => http://targetsite.com/

If so, this could probably be fixed by taking a hash of the index page and then comparing it against the plugin enumeration response. Like we do with the 404 hash.

from wpscan.

Xploit3r avatar Xploit3r commented on August 19, 2024

Yeah, that is correct.

A GET Request to: http://www.target.com/wp-content/plugins/not-a-plugin/

returns you the content of the index page. However, the URL in the browser still remains:

http://www.target.com/wp-content/plugins/not-a-plugin/

It doesn't actually redirect you to http://target.com/index.php however the content is the same as that of index.php

Probably some sort of URL rewrite done on the server side.

For a valid plugin it will return a 403 forbidden response.

I saved the index.html and then the invalid plugin response and they are the same :)

I think you are correct, if we compare the hash of the index page with that of the invalid plugin response, we can filter the false positives.

from wpscan.

erwanlr avatar erwanlr commented on August 19, 2024

Does this only happen for wp-table and wp-table-reloaded or were they just examples ?

from wpscan.

Xploit3r avatar Xploit3r commented on August 19, 2024

This happens for any plugin that does not exist on that wordpress.

So, as an example I took a plugin with the name - not-a-plugin to show the issue.

from wpscan.

firefart avatar firefart commented on August 19, 2024

I think Issue #24 would do the trick here. Have not had the time to implement it yet.

from wpscan.

ethicalhack3r avatar ethicalhack3r commented on August 19, 2024

I think @firefart's solution will fix this but might be worth to implement the 'homepage hash' check too to try and automatically prevent this particular behaviour. However, when the 'homepage hash' automated check doesn't work, then @firefart's string detection could be used by the user.

from wpscan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.