nodeSolidServer / nodeSolidServer/node-solid-server
Exclude swap files (.swp) from containment statements
還沒有人認領這個 Issue。
- #1760 來自 @bourgeoa —— 已關閉,未合併
- 主要語言
- JavaScript
- 星號
- 1.8k
- 分支
- 308
- PR 合併指標
- 30 天內沒有已合併 PR
描述
https://fileinfo.com/extension/swp
.swp file is created when a text editor like nano or vim opens a file in a directory. When the editor is closed, the swap file is removed.
While swap files exist in a directory, NSS includes them in containment statements.
My attempts to GET the .swp file resulted in a 404, but this could still be a potential risk. At the very least, it does expose information when it really shouldn't.
I suggest excluding .swp from containment statements.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
該 issue 提到了 containment statements 和 .swp 檔案,但沒有指出實作檔案或測試。首先定位產生 containment statements 的程式碼,並使用暫時的 .swp 檔案重現該行為。當 .swp 檔案被排除在 containment statements 之外,且不會破壞其他檔案的處理,同時相關測試通過時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- backend, security
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100