Bug: Personal Vault stores plaintext passwords and allows unsafe note paths

未關閉
#15,759 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 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 內容生成。

描述

bug
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

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TheAlgorithms/Python 的其他 Issue

查看 TheAlgorithms/Python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。