Nettacker icon indicating copy to clipboard operation
Nettacker copied to clipboard

Add common Swagger/OpenAPI endpoints to reconnaissance wordlists

Open notReallySouvik opened this issue 8 months ago • 3 comments

Description

While exploring the modules, I noticed that Swagger/OpenAPI is currently only detected through passive technology fingerprinting in web_technologies.yaml (for example detecting swagger-ui-bundle.js).

However, many applications expose Swagger/OpenAPI documentation through predictable endpoints that are commonly used during reconnaissance, such as:

  • /swagger-ui.html
  • /swagger
  • /swagger-ui/
  • /api-docs
  • /v3/api-docs
  • /swagger.json
  • /openapi.json

These endpoints can sometimes expose full API schemas and unauthenticated routes.

Proposal

Add these common Swagger/OpenAPI paths to the payload wordlists used by modules such as:

  • dir_scan
  • config_scan

This would allow the scanner to actively probe for exposed API documentation endpoints instead of relying only on passive fingerprinting.

Benefits

  • Expands API reconnaissance coverage
  • Helps identify exposed API documentation
  • May reveal unauthenticated API endpoints during recon

Implementation

This should be a relatively small change by extending the relevant wordlists with the endpoints listed above.

If this approach looks good, I’d be happy to work on implementing it.

notReallySouvik avatar Mar 09 '26 20:03 notReallySouvik

I'd like to work on this if it sounds good.

notReallySouvik avatar Mar 09 '26 20:03 notReallySouvik

Hi @arkid15r — I drafted a PR for this in #1542 (added 28 Swagger / OpenAPI / Redoc paths to dir_wordlist.txt per the spec in this issue) but the auto-checker closed it because I'm not assigned. @notReallySouvik mentioned interest back in March but I didn't see a follow-up PR over the last 7 weeks; if you're OK assigning this to me I'll reopen #1542 right away. Otherwise happy to step aside.

ChrisJr404 avatar May 04 '26 01:05 ChrisJr404

I see this was previously assigned to @ChrisJr404 back in May via #1542, which is now closed and unmerged. I've opened #1695 implementing this (active Swagger/OpenAPI endpoint discovery as a dedicated module + wordlist, rather than just wordlist additions to dir_scan) tested against petstore.swagger.io (positive) and example.com (negative, no false positives).

Happy to be assigned if this is still open for a contributor.

rivalsxninjax1 avatar Aug 23 '26 12:08 rivalsxninjax1