Skip to content

Commit 11115da

Browse files
committed
🔒 Do not execute scripts in assets SVG by default to prevent XSS #16844
Signed-off-by: Daniel <[email protected]>
1 parent 65532ae commit 11115da

File tree

23 files changed

+125
-3
lines changed

23 files changed

+125
-3
lines changed

app/appearance/langs/ar_SA.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
"click": "نقر",
129129
"allowHTMLBLockScript": "‫السماح بتنفيذ البرامج النصية في كتل HTML‬",
130130
"allowHTMLBLockScriptTip": "‫بعد التمكين، لن يتم تصحيح البرنامج النصي في كتلة HTML، يرجى إدراك المخاطر المحتملة لهجمات XSS‬",
131+
"allowSVGScript": "السماح بتشغيل السكربتات داخل SVG",
132+
"allowSVGScriptTip": "عند التفعيل، لن يتم تصفية الكود داخل SVG لأغراض الأمان. يرجى الانتباه إلى مخاطر XSS المحتملة",
131133
"autoLaunchMode0": "عدم التشغيل تلقائيًا",
132134
"autoLaunchMode1": "التشغيل التلقائي بعد الإقلاع",
133135
"autoLaunchMode2": "التشغيل التلقائي وتقليل الواجهة الرئيسية بعد الإقلاع",

app/appearance/langs/de_DE.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
"click": "Klick",
129129
"allowHTMLBLockScript": "Die Ausführung von Skripten innerhalb von HTML-Blöcken zulassen",
130130
"allowHTMLBLockScriptTip": "Nach der Aktivierung wird das Skript im HTML-Block nicht bereinigt. Bitte seien Sie sich des potenziellen Risikos von XSS-Angriffen bewusst.",
131+
"allowSVGScript": "Ausführen von Skripten innerhalb von SVG erlauben",
132+
"allowSVGScriptTip": "Wenn aktiviert, wird der Code im SVG nicht sicherheitsgefiltert。Achten Sie auf mögliche XSS-Risiken",
131133
"autoLaunchMode0": "Nicht automatisch starten",
132134
"autoLaunchMode1": "Automatisch nach dem Booten starten",
133135
"autoLaunchMode2": "Automatisch starten und die Hauptoberfläche minimieren nach dem Booten",

app/appearance/langs/en_US.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
"click": "Click",
129129
"allowHTMLBLockScript": "Allow execution of scripts within HTML blocks",
130130
"allowHTMLBLockScriptTip": "When enabled, the script in the HTML block will not be sanitized, Please be aware of the potential risk of XSS attacks",
131+
"allowSVGScript": "Allow execution of scripts inside SVG",
132+
"allowSVGScriptTip": "When enabled, code inside SVG will not be security-filtered. Be aware of potential XSS risks",
131133
"autoLaunchMode0": "Do not launch automatically",
132134
"autoLaunchMode1": "Auto launch after booting",
133135
"autoLaunchMode2": "Auto launch and minimize the main interface after booting",

app/appearance/langs/es_ES.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
"click": "Hacer clic",
129129
"allowHTMLBLockScript": "Permitir la ejecución de scripts dentro de bloques HTML",
130130
"allowHTMLBLockScriptTip": "Después de habilitarlo, el script en el bloque HTML no se desinfectará. Tenga en cuenta el riesgo potencial de ataques XSS",
131+
"allowSVGScript": "Permitir ejecutar scripts dentro del SVG",
132+
"allowSVGScriptTip": "Al activarlo, el código dentro del SVG no será filtrado por seguridad。Tenga en cuenta el riesgo potencial de XSS",
131133
"autoLaunchMode0": "No iniciar automáticamente",
132134
"autoLaunchMode1": "Inicio automático después del arranque",
133135
"autoLaunchMode2": "Iniciar automáticamente y minimizar la interfaz principal después del arranque",

app/appearance/langs/fr_FR.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
"click": "Cliquez sur",
129129
"allowHTMLBLockScript": "Autoriser l'exécution de scripts dans les blocs HTML",
130130
"allowHTMLBLockScriptTip": "Après activation, le script dans le bloc HTML ne sera pas nettoyé. Veuillez être conscient du risque potentiel d'attaques XSS",
131+
"allowSVGScript": "Autoriser l'exécution de scripts dans le SVG",
132+
"allowSVGScriptTip": "Si activé, le code dans le SVG ne sera pas filtré pour la sécurité。Veuillez noter le risque potentiel de XSS",
131133
"autoLaunchMode0": "Ne pas lancer automatiquement",
132134
"autoLaunchMode1": "Lancement automatique après le démarrage",
133135
"autoLaunchMode2": "Lancement automatique et minimisation de l'interface principale après le démarrage",

app/appearance/langs/he_IL.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
"click": "לחץ",
129129
"allowHTMLBLockScript": "אפשר הפעלת סקריפטים בתוך בלוקים של HTML",
130130
"allowHTMLBLockScriptTip": "לאחר הפעלה, הסקריפט בבלוק HTML לא יחוטא, שים לב לסיכון פוטנציאלי של התקפות XSS",
131+
"allowSVGScript": "לאפשר הרצת סקריפטים בתוך SVG",
132+
"allowSVGScriptTip": "בהפעלת האפשרות, הקוד בתוך SVG לא יסונן מבחינה בטיחותית — יש לשים לב לסיכון אפשרי של XSS",
131133
"autoLaunchMode0": "אל תצא אוטומטית",
132134
"autoLaunchMode1": "צא אוטומטית לאחר אתחול",
133135
"autoLaunchMode2": "צא אוטומטית ומזער את הממשק העיקרי לאחר אתחול",

app/appearance/langs/it_IT.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
"click": "Clicca",
129129
"allowHTMLBLockScript": "Consenti l'esecuzione di script nei blocchi HTML",
130130
"allowHTMLBLockScriptTip": "Dopo l'abilitazione, lo script nel blocco HTML non verrà sanificato. Si prega di essere consapevoli del potenziale rischio di attacchi XSS.",
131+
"allowSVGScript": "Consenti l'esecuzione di script all'interno di SVG",
132+
"allowSVGScriptTip": "Se abilitato, il codice all'interno dell'SVG non sarà filtrato per motivi di sicurezza. Prestare attenzione al rischio potenziale di XSS",
131133
"autoLaunchMode0": "Non avviare automaticamente",
132134
"autoLaunchMode1": "Avvio automatico dopo l'accensione",
133135
"autoLaunchMode2": "Avvio automatico e minimizzazione dell'interfaccia principale dopo l'accensione",

app/appearance/langs/ja_JP.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
"click": "クリック",
129129
"allowHTMLBLockScript": "HTML ブロック内のスクリプトの実行を許可",
130130
"allowHTMLBLockScriptTip": "HTML ブロック内のスクリプトはサニタイズされません。XSS 攻撃の潜在的なリスクに十分注意してください",
131+
"allowSVGScript": "SVG 内のスクリプトを実行許可",
132+
"allowSVGScriptTip": "有効にすると SVG 内のコードはセキュリティフィルタの対象になりません。潜在的な XSS 攻撃に注意してください",
131133
"autoLaunchMode0": "自動的に起動しない",
132134
"autoLaunchMode1": "システムの起動後に自動的に起動する",
133135
"autoLaunchMode2": "システムの起動後にインターフェースを最小化して自動的に起動する",

app/appearance/langs/ko_KR.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
"click": "클릭",
129129
"allowHTMLBLockScript": "HTML 블록 내 스크립트 실행 허용",
130130
"allowHTMLBLockScriptTip": "활성화하면 HTML 블록의 스크립트가 삭제되지 않습니다. XSS 공격의 잠재적 위험에 주의하세요",
131+
"allowSVGScript": "SVG 내부 스크립트 실행 허용",
132+
"allowSVGScriptTip": "활성화하면 SVG 내의 코드는 보안 필터링 대상이 되지 않습니다。잠재적 XSS 공격에 주의하세요",
131133
"autoLaunchMode0": "자동으로 시작하지 않음",
132134
"autoLaunchMode1": "부팅 후 자동 시작",
133135
"autoLaunchMode2": "부팅 후 자동 시작 및 메인 인터페이스 최소화",

app/appearance/langs/pl_PL.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
"click": "Kliknij",
129129
"allowHTMLBLockScript": "Zezwalaj na wykonywanie skryptów w blokach HTML",
130130
"allowHTMLBLockScriptTip": "Po włączeniu skrypt w bloku HTML nie będzie czyszczony, proszę być świadomym potencjalnego ryzyka ataków XSS",
131+
"allowSVGScript": "Zezwól na wykonywanie skryptów w SVG",
132+
"allowSVGScriptTip": "Po włączeniu kod w SVG nie będzie filtrowany pod kątem bezpieczeństwa — uważaj na potencjalne ataki XSS",
131133
"autoLaunchMode0": "Nie uruchamiaj automatycznie",
132134
"autoLaunchMode1": "Uruchom automatycznie po włączeniu",
133135
"autoLaunchMode2": "Uruchom automatycznie i zminimalizuj główny interfejs po włączeniu",

0 commit comments

Comments
 (0)