POJIA破甲
地图 / Admin Command Injection via username in user_archive ExportCsvFile

Admin Command Injection via username in user_archive ExportCsvFile

代码执行 / 命令注入(通用) / #214022

厂商
Discourse
严重程度
中危
赏金
$512
弱点
命令注入(通用)
研究员
@ziot
披露日期
2017-05-13
资产
—
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(1464 字符中的一小部分)
When a user generates a backup of their posts, their username gets sent to the `ExportCsvFile` job. The username is placed inside of a gzip command in backticks. Although the application prevents special characters in usernames, an admin is able to make modifications to the database via the restore …
原文中的代码
      file_name_prefix = if @entity == "user_archive"
        "#{@entity.split('_').join('-')}-#{@current_user.username}-#{Time.now.strftime("%y%m%d-%H%M%S")}"

      file_name = "#{file_name_prefix}-#{file.id}.csv"
      absolute_path = "#{UserExport.base_directory}/#{file_name}"

      `gzip -5 …

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

时间线

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

同类报告

H1514 Remote Code Execution on kitcrm using bulk customer update of Priority ProductsShopify · 2020-02-06Remote Code Execution on www.semrush.com/my_reports on Logo uploadSemrush · 2019-06-24Git flag injection - local file overwrite to remote code executionGitLab · 2019-12-19 · $12,000Privilege Escalation From user to SYSTEM via unauthenticated command executionUbiquiti Inc. · 2019-11-08BAD Code !Paragon Initiative Enterprises · 2016-11-04Local files could be overwritten in GitLab, leading to remote command executionGitLab · 2019-07-17 · $12,000