mirror of
https://github.com/HanaokaYuzu/Gemini-API.git
synced 2026-04-12 12:23:03 -06:00
[PR #192] [CLOSED] fix: improve security by enabling SSL verification and restricting cookie file permissions #213
Labels
No labels
advanced
advanced
bug
dependencies
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
model
pull-request
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mirrors/Gemini-API#213
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/HanaokaYuzu/Gemini-API/pull/192
Author: @ww2283
Created: 12/11/2025
Status: ❌ Closed
Base:
master← Head:fix/security-improvements📝 Commits (1)
ff01766fix: improve security by enabling SSL verification and restricting cookie file permissions📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
src/gemini_webapi/utils/get_access_token.py(+1 -2)📝
src/gemini_webapi/utils/rotate_1psidts.py(+1 -0)📄 Description
Security: SSL verification disabled and plaintext cookie storage
Summary
During a security audit, I found two issues that could expose users to credential theft:
verify=Falsein HTTP clients enables MITM attacksIssue 1: SSL Verification Disabled (Critical)
Location:
src/gemini_webapi/utils/get_access_token.pyCurrent code:
Impact:
__Secure-1PSID,__Secure-1PSIDTS) can be stolenFix:
Remove
verify=False(httpx defaults toverify=True):Issue 2: Cookie Cache Permissions (Medium)
Location:
src/gemini_webapi/utils/rotate_1psidts.pyCurrent code:
Impact:
Fix:
Set restrictive permissions after writing:
Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.