You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stored Cross-Site Scripting (XSS) in kanboard-plugin-wiki file viewer #11361
Template/file_viewer/show.php in funktechno/kanboard-plugin-wiki renders text-file attachment content without HTML escaping:
Kanboard core's equivalent template uses $this->text->e($content) for escaping, but the plugin's template override (Plugin.php:55, setTemplateOverride) omits it.
A user with the Project Member role can upload a .txt file containing JavaScript to a wiki page. When another user previews the file via /wiki/file/<file_id>, the script executes in their browser, enabling session theft and privilege escalation.
Steps to reproduce:
As a project member, upload poc.txt containing <script>alert(document.domain)</script> to a wiki page
As another user, click "View file" on poc.txt
The script executes
Fix: change line 12 of Template/file_viewer/show.php from
Activity