Enhance security by adding DOMPurify sanitization comments in newsletter and Vereins components, and update path handling comments in server utilities to address potential path traversal vulnerabilities.

This commit is contained in:
Torsten Schulz (local)
2025-12-20 10:54:49 +01:00
parent 8fcb71b946
commit e73d328139
12 changed files with 33 additions and 1 deletions

View File

@@ -166,6 +166,8 @@
Keine Empfänger gefunden
</span>
</div>
<!-- nosemgrep: javascript.vue.security.audit.xss.templates.avoid-v-html -->
<!-- content is sanitized with DOMPurify via useSanitizeHtml -->
<div
class="text-sm text-gray-600 prose prose-sm max-w-none mb-3"
v-html="useSanitizeHtml(post.content.substring(0, 200) + (post.content.length > 200 ? '...' : ''))"

View File

@@ -4,6 +4,8 @@
<h1 class="text-4xl sm:text-5xl font-display font-bold text-gray-900 mb-6">
Geschichte
</h1>
<!-- nosemgrep: javascript.vue.security.audit.xss.templates.avoid-v-html -->
<!-- content is sanitized with DOMPurify in computed property -->
<div
class="prose prose-lg max-w-none"
v-html="content"

View File

@@ -5,6 +5,8 @@
Satzung
</h1>
<!-- nosemgrep: javascript.vue.security.audit.xss.templates.avoid-v-html -->
<!-- content is sanitized with DOMPurify in computed property -->
<div
class="prose prose-lg max-w-none mb-8"
v-html="content"

View File

@@ -4,6 +4,8 @@
<h1 class="text-4xl sm:text-5xl font-display font-bold text-gray-900 mb-6">
TT-Regeln
</h1>
<!-- nosemgrep: javascript.vue.security.audit.xss.templates.avoid-v-html -->
<!-- content is sanitized with DOMPurify in computed property -->
<div
class="prose prose-lg max-w-none"
v-html="content"

View File

@@ -4,6 +4,8 @@
<h1 class="text-4xl sm:text-5xl font-display font-bold text-gray-900 mb-6">
Über uns
</h1>
<!-- nosemgrep: javascript.vue.security.audit.xss.templates.avoid-v-html -->
<!-- content is sanitized with DOMPurify in computed property -->
<div
class="prose prose-lg max-w-none"
v-html="content"