字号·· | 护眼
漏洞档案 · 高危

tshirtecommerce custom_product_designer 路径遍历(CVE-2023-27640)

CVE-2023-27640
CVSS 7.5 / 3.1 EPSS 3.7% CISA KEV 在野利用 公开 PoC Nuclei 模板
综合风险68/ 100
CVSS7.5高危
EPSS3.7%30 天利用概率
机构收录时间2023-06-01更新 2026-11-29

研判简报

概述

tshirtecommerce(又称 Custom Product Designer)是 PrestaShop 的定制商品设计模块。攻击者可向 /tshirtecommerce/fonts.php 端点发送伪造的 HTTP 请求,通过 type 参数实施目录遍历,读取系统上任意路径、任意扩展名的文件,并以 base64 编码返回内容。该漏洞无需认证即可远程利用,可导致配置文件中的令牌、私钥等敏感数据泄露。运行该模块的 PrestaShop 站点应优先关注。

严重性

CVSS 3.1 评分 7.5(AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N),综合风险分 67.74/100;EPSS 30 天利用概率 3.7%(百分位 90.5%,2026-11-27)。攻击面为面向公网的 PrestaShop 前端,无需凭据即可读取文件。

利用状态

CISA KEV 已收录(2023-06-01);已有公开 Nuclei 检测模板(http/cves/2023/CVE-2023-27640.yaml);Exploit-DB/公开 PoC 共 1 条;CISA SSVC:automatable=yes / exploitation=poc / technical_impact=partial。官方记录称该漏洞于 2023 年 3 月在野利用。以上状态核查日期为 2026-11-28。勒索关联情况材料未给出。

受影响产品

tshirtecommerce:custom_product_designer <= 2.1.4(PrestaShop 模块)。参考材料称 2.1.4 为最新版本、发布于 2019-07-24,且模块自 2019 年起似无维护。部署形态为 PrestaShop 插件/模块。

修复版本

材料未给出官方修复版本。参考材料仅提供社区补丁(对 tshirtecommerce/fonts.php 增加扩展名白名单与 realpath 前缀校验,对 includes/functions.php 中 getSVG 增加路径校验),并注明该补丁可能影响依赖其他扩展名的功能;官方记录未给出厂商修复版本或厂商表态。

缓解措施

无法立即修复时:按 KEV 要求应用厂商修复/缓解措施,若无则停止使用该产品;参考材料强烈建议直接移除该模块。临时缓解可包括限制对 /tshirtecommerce/fonts.php 与 tshirtecommerce/ajax.php?type=svg 的访问、在 WAF 拦截含路径遍历序列的 type/file_name 参数,但材料未给出经官方确认的缓解方案。

响应步骤

  1. 排查 PrestaShop 站点是否安装 tshirtecommerce 模块及版本是否 <= 2.1.4。
  2. 检索 Web 日志中对 /tshirtecommerce/fonts.php、tshirtecommerce/ajax.php?type=svg 的请求,关注 type、file_name 参数中的 ../ 等遍历序列及 base64 大段响应。
  3. 检查配置文件中令牌、私钥等敏感数据是否可能已泄露,必要时轮换凭据。
  4. 无官方修复版本时移除该模块,或按参考材料应用社区补丁并回归测试。
  5. 部署 Nuclei 模板 CVE-2023-27640.yaml 进行自查,并持续关注 KEV 状态更新。

参考来源

  1. https://nvd.nist.gov/vuln/detail/CVE-2023-27640kev
  2. https://www.cve.org/CVERecord?id=CVE-2023-27640kev
  3. https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2023-27640kev
  4. https://vulncheck.com/kev/cve-2023-27640advisory,vulncheck_kev
  5. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-27640.yamlexploit,nuclei
  6. https://friends-of-presta.github.io/security-advisories/module/2023/03/30/tshirtecommerce_cwe-22.htmlx_transferred,Exploit,Patch,Third Party Advisory