From 73ff972789b142a2c95c52d3b3dcf4a1e6f38648 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Tue, 3 Aug 2021 20:10:15 +0200 Subject: [PATCH] #2219 Moving check earlier in the chain for better effect --- cypress/platform/knsv.html | 16 +++++++++++++--- cypress/platform/xss2.html | 6 ++++++ src/diagrams/common/common.js | 1 - src/utils.js | 9 ++++++++- 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/cypress/platform/knsv.html b/cypress/platform/knsv.html index 2f4eb532b..50b3c0607 100644 --- a/cypress/platform/knsv.html +++ b/cypress/platform/knsv.html @@ -57,9 +57,19 @@ subgraph CompositeState end
-graph TD - A[""] +%%{init: { '__proto__': {'vuln': 'test'}} }%% +%%{init: { '__proto__': {'vuln': 'test'}} }%% + +sequenceDiagram +Alice->>Bob: Hi Bob +Bob->>Alice: Hi Alice
+
+ %%{init: { 'theme':'base', '__proto__': {'polluted': 'asdf'}} }%% + %%{init: { 'theme':'base', '__proto__': {'polluted': 'asdf'}} }%% + graph LR + A --> B +
flowchart TD Link --> b @@ -121,7 +131,7 @@ YourState logLevel:0, fontSize: 18, curve: 'cardinal', - securityLevel: 'loose', + securityLevel: 'strict', // themeVariables: {relationLabelColor: 'red'} }); function callback(){alert('It worked');} diff --git a/cypress/platform/xss2.html b/cypress/platform/xss2.html index 3e4c0790b..0774023ff 100644 --- a/cypress/platform/xss2.html +++ b/cypress/platform/xss2.html @@ -38,6 +38,12 @@ graph LR A --> B
+
+ %%{init: { 'theme':'base', '__proto__': {'polluted': 'asdf'}} }%% + %%{init: { 'theme':'base', '__proto__': {'polluted': 'asdf'}} }%% + graph LR + A --> B +