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

Fixed the apigateway__enum module #437

Merged
merged 6 commits into from
Jun 14, 2024

Conversation

TeneBrae93
Copy link
Contributor

  • If the user has "GET" permissions on API Gateways but not the API Keys, the module will still get all the paths/methods/resources rather than failing

  • There was no error handling on "all regions" so it would fail. Added error handling so the user can check all regions without issues

  • Previously it saved the data to a standalone file, updated this so it stores to the Pacu DB like other modules

- If the user has "GET" permissions on API Gateways but not the API Keys, the module will still get all the paths from the Gateway rather than failing
- There was no error handling on "all regions" so it would fail. Added error handling so the user can check all regions without issues
- Previously it saved the data to a standalone file, updated this so it stores to the Pacu DB like other modules
print = pacu.print
session = pacu.get_active_session()
session = pacu_main.get_active_session()
print = pacu_main.print
args = parser.parse_args(args)

outfile_path = downloads_dir()/'apigateway'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove all file output stuff if this data is now saved in the DB

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stand by, I think I missed something on the database. Digging into this now and will also fix this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DaveYesland -- This should all be fixed now

@DaveYesland DaveYesland merged commit 64524a4 into RhinoSecurityLabs:master Jun 14, 2024
3 checks passed
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