提交 #878861: error311 FileRise 3.20.0 Cross Site Scripting信息

标题error311 FileRise 3.20.0 Cross Site Scripting
描述The footerHtml branding field is served in the unauthenticated public siteConfig endpoint without HTML sanitization. While other branding fields like loginTagline and metaDescription are sanitized via strip_tags(), footerHtml receives only a (string) cast. AdminModel.php buildPublicSubset() at line 214: 'footerHtml' => (string)($config['branding']['footerHtml'] ?? ''). UserController.php siteConfig() serves this to unauthenticated users via /api/public/siteConfig.php. An admin can inject arbitrary HTML/JS. CSP blocks script tags but not event handlers (img onerror, svg onload). Requires admin privileges to inject. PoC: curl -s http://127.0.0.1:8080/api/public/siteConfig.php | jq .branding.footerHtml returns unsanitized HTML.
来源⚠️ https://github.com/error311/FileRise/security/advisories/GHSA-rmwm-wq9g-583g
用户
 BRabbit (UID 99520)
提交2026-07-03 08時38分 (2 月前)
管理2026-08-19 18時39分 (2 months later)
状态已接受
VulDB条目393219 [error311 FileRise 直到 3.20.0 Branding Field AdminModel.php buildPublicSubset footerHtml 跨网站脚本]
积分20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!