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

New directory listing template #9714

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

theMiddleBlue
Copy link
Contributor

Template / PR Information

This PR adds a new template that checks if "directory listing" is enabled on one of the links collected by visiting the BaseURL. The template runs two different HTTP requests: the first one collects links from src and href attributes on the BaseURL, and the second request checks if a directory listing is present on all path levels in collected links.

For example:

If something like <a href="/wp-content/plugins/foo/css/bar.css"> is found in response, this template checks the following URLs:

https://<target>/wp-content/plugins/foo/css/
https://<target>/wp-content/plugins/foo/
https://<target>/wp-content/plugins/
https://<target>/wp-content/

Why add this template, since already there's the dir-listing template?

This template differs from dir-listing since it first collects all possible links in the target response body, and tries to follow them dynamically (and not just statically hard-coded in the template).

References:

Template Validation

I've validated this template locally?

  • YES
  • NO

Additional Details (leave it blank if not applicable)

Google Query: intitle:index.of

Matched response data snippet:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Index of /foo</title>
 </head>
 <body>
<h1>Index of /foo</h1>

Thanks ❤️

This PR has been done during a Twitch Live on Rev3rse Security Channel, special thanks to @Sparrrgh

@GeorginaReeder
Copy link

Great, thanks so much for your contribution @theMiddleBlue !

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.

None yet

2 participants