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

修復 Bandit 檢測到的安全問題:B116 #701

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

asid52714
Copy link

中等嚴重性問題

問題代碼:B113:request_without_timeout
描述:在使用 requests 模組進行 HTTP 請求時,未設定 timeout 參數。
位置:vision_process.py 第 106 行
詳細說明:
python
複製
response = requests.get(image, stream=True)
未設定 timeout 可能導致請求在伺服器無回應時無限等待,進而阻塞程式的執行。
CWE 編號:CWE-400

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.

1 participant