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

Potential security issue of information leakage #317

Open
nevercodecorrect opened this issue Mar 18, 2024 · 0 comments
Open

Potential security issue of information leakage #317

nevercodecorrect opened this issue Mar 18, 2024 · 0 comments
Assignees
Labels
bug 我的锅

Comments

@nevercodecorrect
Copy link

The robot is interesting and I found a few potential security issue while reading the source code.

In code here, openai_api_key is directly printed, this could potentially leak the key as decribed in (CWE-532)[https://cwe.mitre.org/data/definitions/532.html]. The print statement could be redacted or set to be read only?

A similar issue is here, the sensitive data is directly written into local file. A more secure way like setting the file only accessible to the current user or keeping the key in memory-only could be used.

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

No branches or pull requests

2 participants