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

Improper Exception Handling #9

Open
shreyashkgupta opened this issue Aug 16, 2024 · 0 comments
Open

Improper Exception Handling #9

shreyashkgupta opened this issue Aug 16, 2024 · 0 comments

Comments

@shreyashkgupta
Copy link
Owner

Issue Details

Severity: Critical
Category: Security
File Path: github_app/main.py

Description

critical

Impact

Returning an HTTPException directly without raising it will not stop the execution of the function, potentially leading to unexpected behavior.

Suggestion

Raise the HTTPException instead of returning it.

Code Sample
raise HTTPException(status_code=404, detail='Invalid Signature')
Proposed Solution
sol 1

✨ Generated with love by Kaizen ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant