POJIA破甲
地图 / Double evaluation in .bash_prompt of dotfiles allows a malicious repository to execute arbitrary commands

Double evaluation in .bash_prompt of dotfiles allows a malicious repository to execute arbitrary commands

其他弱点 / Unlabeled / #1785378

厂商
Ian Dunn
严重程度
中危
赏金
—
弱点
Unlabeled
研究员
@ryotak
披露日期
2022-12-01
资产
GitHub repositories
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(2079 字符中的一小部分)
Summary Due to the improper usage of the `PS1` environment variable in [`.bash_prompt` of dotfiles](https://github.com/iandunn/dotfiles/blob/16a432681077362f263cb926737ad5cca5df6307/.bash_prompt), a malicious repository can execute arbitrary commands when changed the current directory to it.
原文中的代码
	export PS1="\n${command_mark}${color_user_host}\u${color_reset} @ ${color_user_host}$hostname${color_reset} in ${color_folder}\w${color_reset} \
	$(vcs_prompt) \
	\n> "

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Ian Dunn 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @ryotak · 版权归作者与 Ian Dunn 所有

同类报告

June 2022 Incident ReportHackerOne · 2022-07-01HTML-injection in PDF-export leads to LFIVisma Public · — · $500DOM XSS on duckduckgo.com searchDuckDuckGo · 2020-06-14An attacker can archive and unarchive any structured scope object on HackerOneHackerOne · 2022-04-18Java (Maven): Actually fix the use of insecure protocol to download/upload artifactsGitHub Security Lab · — · $4,000Handling of `tracking` command allows making arbitrary blind requests with user's cookies from Grammarly Extension's originSuperhuman (formerly Grammarly) · 2019-08-01
Double evaluation in .bash_prompt of dotfiles allows a malicious repository to execute arbitrary commands · 破甲 POJIA