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

Issue: [B113:request_without_timeout] #1062

Open
Rolstenhouse opened this issue Sep 21, 2023 · 0 comments
Open

Issue: [B113:request_without_timeout] #1062

Rolstenhouse opened this issue Sep 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Rolstenhouse
Copy link

Describe the bug

Here's a code snippet of what's triggering the error. It's happening in a python codebase!

>> Issue: [B113:request_without_timeout] Requests call without timeout
   Severity: Medium   Confidence: Low
   CWE: CWE-400 (https://cwe.mitre.org/data/definitions/400.html)
   More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b113_request_without_timeout.html
   Location: whatnot/repositories/orders.py:95:8
94	    return [
95	        refund_requests_by_order_ids.get(order_id)  # nosec B101
96	        for order_id in str_order_ids

Reproduction steps

1. Create any python file with `requests` in a function name 
2. Run the linter

Expected behavior

It ignores requests when it's nested in a function

Bandit version

1.7.5 (Default)

Python version

3.11 (Default)

Additional context

No response

@Rolstenhouse Rolstenhouse added the bug Something isn't working label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant