| 제목 | 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. AM 08:38 (2 개월 ago) |
|---|
| 모더레이션 | 2026. 08. 19. PM 06:39 (2 months later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 393219 [error311 FileRise 까지 3.20.0 Branding Field AdminModel.php buildPublicSubset footerHtml 크로스 사이트 스크립팅] |
|---|
| 포인트들 | 20 |
|---|