The strings were concatenated, making it impossible to match the path.
还没有人认领这个 Issue。
评估
调研方向
首先跟踪报告的流程:从 fileName 经过 "String filePath = Global.getDownloadPath() + fileName;" 到 writeBytes,并将其与通往 FileUtils.isValidFilename 的路径进行比较。检查 CodeQL 数据流查询如何处理拼接,然后验证从 fileName 到 writeBytes 的查询会返回结果,同时现有路径仍然得到覆盖。
由索引模型根据 Issue 内容生成。
描述
Source can query the fileName.
Sink can also query data.
Logic can be connected.
But no results were found.
The test from fileName to FileUtils.isValidFilename can retrieve results.
However, when querying from fileName to writeBytes, no results are returned. The data passes through the line "String filePath = Global.getDownloadPath() + fileName;" in the middle.
- 主要语言
- CodeQL
- 星标
- 10.1k
- 派生
- 2.1k
- 平均合并
- 2 天 10 小时
- 30 天内合并 PR
- 134
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/codeql 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
false-positive
难度 2/5 1-3 小时 新手友好度 70/100
-
false-positive
难度 3/5 1-2 天 新手友好度 68/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 88/100
sipyourdrink-ltd/bernstein#6191 ·
-
security severity:low track:open-source
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 72/100
gwen001/offsectools_www#2055 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
WalletConnect/actions#112 ·