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

phpBB 远程代码执行漏洞(CVE-2004-1315)

CVE-2004-1315 别名:GHSA-X5J2-7752-GM38
CVSS 7.5 / 2.0 EPSS 72.5% CISA KEV 在野利用 公开 PoC · 4
综合风险77/ 100
CVSS7.5高危
EPSS72.5%30 天利用概率
机构收录时间2004-11-12更新 2026-12-03

研判简报

概述

该漏洞存在于 phpBB 2.x 系列的 viewtopic.php 文件中,由于程序对 highlight 参数的 URL 解码处理不当,导致攻击者可以通过双重编码注入恶意代码。该漏洞曾被 Santy.A 蠕虫利用,允许远程攻击者在受影响的服务器上执行任意 PHP 代码。所有运行旧版本 phpBB 的系统管理员均应高度关注。

严重性

CVSS 2.0 评分为 7.5(High),综合风险分 78.51/100。EPSS 30 天利用概率高达 72.5%(百分位 99.6%),表明该漏洞在当前网络环境中仍面临极高的被利用风险。

利用状态

截至 2026-11-27,该漏洞已被 CISA KEV(已知被利用漏洞目录)收录,CISA SSVC 评估为 exploitation=active。Exploit-DB 存在 4 条公开 PoC,且 Metasploit 框架中包含对应的利用模块(phpbb_highlight)。

受影响产品

受影响版本包括 phpBB 2.0.11 之前的所有版本,具体涵盖:phpBB 1.0.0 至 1.4.4,以及 2.0.0 至 2.0.10 的多个版本(包括 beta 和 rc 版本)。

修复版本

官方已发布修复版本,用户应升级至 phpBB 2.0.11 或更高版本。

缓解措施

若无法立即升级,建议禁用受影响的 viewtopic.php 功能或通过 Web 应用防火墙(WAF)拦截包含恶意 highlight 参数的请求。若产品已停止维护或无法修复,建议停止使用该软件。

响应步骤

  1. 检查服务器日志,搜索 URL 中包含 highlight 参数且带有异常编码(如 %2527 等)的请求记录。
  2. 确认是否存在被 Santy.A 蠕虫或其他恶意脚本篡改的文件。
  3. 立即将 phpBB 升级至 2.0.11 或更高版本。
  4. 检查 Web 目录是否存在未授权上传的 PHP 后门文件。
  5. 修改数据库连接凭据及管理员账户密码,防止潜在的凭据泄露。
  6. 审查服务器权限,确保 Web 服务运行在最小权限环境下,限制 PHP 执行系统命令的能力。

参考来源

  1. https://community.broadcom.com/symantecenterprise/communities/community-home/librarydocuments/viewdocument?DocumentKey=a9c54f79-d780-437b-a7f5-a74960e299d5&CommunityKey=8af7f28f-02f1-4107-8639-93a60b6546d4&tab=librarydocumentskev
  2. https://vulncheck.com/kev/cve-2004-1315advisory,vulncheck_kev
  3. https://www.exploit-db.com/exploits/12510exploit,exploitdb
  4. https://www.exploit-db.com/exploits/16890exploit,exploitdb
  5. https://www.exploit-db.com/exploits/647exploit,exploitdb
  6. https://www.exploit-db.com/exploits/24274exploit,exploitdb
  7. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_unix/webapp/phpbb_highlightexploit,metasploit
  8. http://www.securityfocus.com/bid/10701vdb-entry,x_refsource_BID,vdb-entry,x_refsource_BID,x_transferred,advisory,euvd
  9. https://security.gentoo.org/glsa/200411-32vendor-advisory,x_refsource_GENTOO,vendor-advisory,x_refsource_GENTOO,x_transfer
  10. http://marc.info/?l=bugtraq&m=110365752909029&w=2mailing-list,x_refsource_BUGTRAQ,mailing-list,x_refsource_BUGTRAQ,x_transferred,
  11. https://exchange.xforce.ibmcloud.com/vulnerabilities/18052vdb-entry,x_refsource_XF,vdb-entry,x_refsource_XF,x_transferred,advisory,euvd
  12. http://www.phpbb.com/phpBB/viewtopic.php?t=240513x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,Vendor Advisory,advisory,e
  13. http://www.kb.cert.org/vuls/id/497400third-party-advisory,x_refsource_CERT-VN,third-party-advisory,x_refsource_CERT-V
  14. http://www.us-cert.gov/cas/techalerts/TA04-356A.htmlthird-party-advisory,x_refsource_CERT,third-party-advisory,x_refsource_CERT,x_tr
  15. http://secunia.com/advisories/13239/third-party-advisory,x_refsource_SECUNIA,third-party-advisory,x_refsource_SECUNI
  16. http://marc.info/?t=110079440800004&r=1&w=2mailing-list,x_refsource_BUGTRAQ,mailing-list,x_refsource_BUGTRAQ,x_transferred,