POJIA破甲
地图 / Translation discovery crashes on crafted filenames (regex substitution injection)

Translation discovery crashes on crafted filenames (regex substitution injection)

代码执行 / Use of Externally-Controlled Format String / #4044441

厂商
Weblate
严重程度
低危
赏金
—
弱点
Use of Externally-Controlled Format String
研究员
@sumit-sabhaya
披露日期
2026-10-30
资产
https://github.com/WeblateOrg/translation-finder
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(4587 字符中的一小部分)
The `translation-finder` package (used by Weblate for translation file discovery) raises an uncaught `re.error` and aborts discovery for the whole repository when a scanned repository contains a translation file whose name embeds backslash-escaped language tokens, e.g. `x\g<99>-en.po` or …
原文中的代码
wildcard = self.get_wildcard(part)
if wildcard:
    mask_parts = parts.copy()
    match = re.compile(f"(^|[._-]){re.escape(part)}($|[._-])")
    for i, current in enumerate(mask_parts):
        if match.findall(current):
            skip.add(i)
            mask_parts[i] = match.sub( …

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

时间线

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

同类报告

CVE-2022-40604: Apache Airflow: Format String VulnerabilityInternet Bug Bounty · 2025-01-18 · $8,000Exploitable Format String Vulnerability in curl_mfprintf Functioncurl · 2024-11-06INI Format string injection in Revive Adserver 6.0.4 settingsRevive Adserver · 2026-01-14Format string vulnerability, curl_msnprintf() functioncurl · 2025-02-20Format String Vulnerability in the EdgeSwitch restricted CLIUbiquiti Inc. · 2018-06-19██████████ running a vulnerable log4jU.S. Dept Of Defense · 2022-01-19
Translation discovery crashes on crafted filenames (regex substitution injection) · 破甲 POJIA