Skip to content

Add graphql introspection module #2515

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

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

mukesh-dream11
Copy link

This module probes for GraphQL endpoints, and attempts to extract schemas if found. The module itself is just a starting point, there can be further improvements added such as authentication and unit tests for this module.

@TheTechromancer
Copy link
Collaborator

@mukesh-dream11 thanks for the PR

@liquidsec this might be useful for lightfuzz

Also relevant: #766

Copy link

codecov bot commented Jul 3, 2025

Codecov Report

Attention: Patch coverage is 96.61017% with 2 lines in your changes missing coverage. Please review.

Project coverage is 93%. Comparing base (500d18d) to head (a9fa97d).

Files with missing lines Patch % Lines
bbot/modules/graphql_introspection.py 96% 2 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##             dev   #2515   +/-   ##
=====================================
- Coverage     93%     93%   -0%     
=====================================
  Files        400     402    +2     
  Lines      33184   33243   +59     
=====================================
+ Hits       30696   30730   +34     
- Misses      2488    2513   +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mukesh-dream11
Copy link
Author

@TheTechromancer I've added unit tests and the web-basic flag to this module. Feel free to change flags if you believe this fits better under a different category. I believe web-basic is appropriate because this module is designed to send a maximum of 3 requests to any given root URL (sub-URLs are ignored for now).

I'm done with this PR, so I'm handing this off for review. :)

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.

2 participants