Bug: Personal Vault stores plaintext passwords and allows unsafe note paths
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- python
研究方向
The payload names only users.json and the note-path construction under each user's vault; it does not name source files or tests. Start by finding where the login check compares passwords and where note names are joined into paths. Done means passwords are stored and verified with a salted hash from the standard library, note names are validated so they cannot leave the vault directory, and a test covers both. Scope is open, so confirm the approach with maintainers first.
由索引模型根據 Issue 內容生成。
描述
Repository commit
unknown
Python version (python --version)
Python 3.x
Dependencies version (pip freeze)
The app uses a local users.json file and standard library modules only. No dependency list was provided for the sample application.
Expected behavior
The Personal Vault application should not store passwords in plaintext, and note filenames should be validated before being used to construct filesystem paths. The login flow should verify credentials securely and user note operations should remain confined to the current vault directory.
Actual behavior
The sample application stores each password in users.json as plaintext and compares it directly during login. It accepts arbitrary note names and uses them to build paths under the user's vault without validating or normalizing them. This can allow credential disclosure and filesystem access outside the intended vault directory, and file operations can crash or behave unexpectedly when an invalid path is used.
- 主要語言
- Python
- 星號
- 226k
- 分支
- 51.3k
- 平均合併
- 8 小時 58 分鐘
- 30 天內合併 PR
- 4
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TheAlgorithms/Python 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 72/100
TheAlgorithms/Python#15763 ·
維護者通常 1 天內回覆
-
binomial_distribution overflows at 171 trials even when the result is representable可能已有人在做 @landfvit 於 19 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 85/100
TheAlgorithms/Python#15656 · 3 則留言 ·
維護者通常 1 天內回覆
-
continued_fraction uses float division, producing invalid terms for large integers and raising OverflowError可能已有人在做 @trleo 於 19 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 88/100
TheAlgorithms/Python#15655 · 2 則留言 ·
維護者通常 1 天內回覆
-
ciphers/base32.py and ciphers/base85.py encode Unicode code points instead of bytes: output diverges from the spec for non-ASCII, round-trips corrupt chars >= U+0400, arbitrary bytes crash可能已有人在做 @Nate-br 於 21 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 88/100
TheAlgorithms/Python#15636 · 1 則留言 ·
維護者通常 1 天內回覆
-
ciphers/des_ecb.py: encrypt/decrypt silently corrupts any character above U+00FF (round-trip fails)可能已有人在做 @mohammedanasnakhuda 於 21 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 88/100
TheAlgorithms/Python#15634 ·
維護者通常 1 天內回覆
查看 TheAlgorithms/Python 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 78/100
-
Needs Triage
難度 2/5 1-3 小時 新手友好度 80/100
pandas-dev/pandas#72163 ·
維護者通常 2 天內回覆
-
LightFM prepare_test_df ignores mapping values and silently mislabels evaluation pairs可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 79/100
recommenders-team/recommenders#2480 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 85/100
521xueweihan/HelloGitHub#4385 ·
-
🐛 bug
難度 2/5 1-3 小時 新手友好度 72/100
pdm-project/pdm#4012 ·
維護者通常 1 天內回覆