diff --git a/cypress/integration/other/xss.spec.js b/cypress/integration/other/xss.spec.js
index e1f05b6e6..830be4f8e 100644
--- a/cypress/integration/other/xss.spec.js
+++ b/cypress/integration/other/xss.spec.js
@@ -53,5 +53,10 @@ describe('XSS', () => {
cy.wait(1000);
cy.get('#the-malware').should('not.exist');
})
+ it('should not allow maniplulating htmlLabels into a false positive', () => {
+ cy.visit('http://localhost:9000/xss4.html');
+ cy.wait(1000);
+ cy.get('#the-malware').should('not.exist');
+ })
})
diff --git a/cypress/platform/exploit.js b/cypress/platform/exploit.js
new file mode 100644
index 000000000..2b4b0baa5
--- /dev/null
+++ b/cypress/platform/exploit.js
@@ -0,0 +1,6 @@
+const div = parent.document.createElement('div');
+div.id = 'the-malware';
+div.className = 'malware';
+div.innerHTML = 'XSS Succeeded';
+parent.document.getElementsByTagName('body')[0].appendChild(div);
+throw new Error('XSS Succeded');
diff --git a/cypress/platform/knsv.html b/cypress/platform/knsv.html
index d63d0e67f..353593e5e 100644
--- a/cypress/platform/knsv.html
+++ b/cypress/platform/knsv.html
@@ -67,15 +67,14 @@ stateDiagram-v2
%%{init:{"theme":"forest", "themeVariables": {
-
+ "specialStateColor":"red",
+ "innerEndBackground":"lightgreen"
}}}%%
- %% "specialStateColor":"red", "innerEndBackground":"lightgreen"
stateDiagram-v2
state fork [[fork]]
state join [[join]]
[*] --> fork
- fork --> Test
- Test --> join
+ fork --> join
join --> [*]
diff --git a/cypress/platform/knsv2.html b/cypress/platform/knsv2.html
index b45742e77..a382591d5 100644
--- a/cypress/platform/knsv2.html
+++ b/cypress/platform/knsv2.html
@@ -21,155 +21,28 @@
.mermaid svg {
/* font-size: 18px !important; */
}
+ .malware {
+ position: fixed;
+ bottom:0;
+ left:0;
+ right:0;
+ height: 150px;
+ background: red;
+ color: black;
+ display: flex;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ font-family: monospace;
+ font-size: 72px;
+ }
-
-
-%%{init: { "logLevel": 1, "er": {"fontSize":18 }} }%%
- erDiagram
- CUSTOMER }|..|{ DELIVERY-ADDRESS : has
- CUSTOMER ||--o{ ORDER : places
- CUSTOMER ||--o{ INVOICE : "liable for"
- DELIVERY-ADDRESS ||--o{ ORDER : receives
- INVOICE ||--|{ ORDER : covers
- ORDER ||--|{ ORDER-ITEM : includes
- PRODUCT-CATEGORY ||--|{ PRODUCT : contains
- PRODUCT ||--o{ ORDER-ITEM : "ordered in"
-
-
-flowchart TD
- A[Christmas] ==> D
- A[Christmas] -->|Get money| B(Go shopping)
- A[Christmas] ==> C
- subgraph T ["Test"]
- A
- B
- C
- end
-
- classDef Test fill:#F84E68,stroke:#333,color:white;
- class A,T Test
- classDef TestSub fill:green;
- class T TestSub
- linkStyle 0,1 color:orange, stroke: orange;
-
-
-graph TD
- subgraph S1
- sub1 -->sub2
- end
- subgraph S2
- sub4
- end
- S1 --> S2
- sub1 --> sub4
-
-
-graph TB
- A --> B
-
-
-stateDiagram-v2
-state S1 {
-sub1 -->sub2
-}
-state S2 {
- sub4
-}
-S1 --> S2
-sub1 --> sub4
-
-
-
- requirementDiagram
- requirement test_req {
- id: 1
- text: the test text.
- risk: high
- verifymethod: test
- }
-
- functionalRequirement test_req2 {
- id: 1.1
- text: the second test text.
- risk: low
- verifymethod: inspection
- }
-
- performanceRequirement test_req3 {
- id: 1.2
- text: the third test text.
- risk: medium
- verifymethod: demonstration
- }
-
- element test_entity {
- type: simulation
- }
-
- element test_entity2 {
- type: word doc
- docRef: reqs/test_entity
- }
-
-
- test_entity - satisfies -> test_req2
- test_req - traces -> test_req2
- test_req - contains -> test_req3
- test_req <- copies - test_entity2
-
-
-flowchart LR
- classDef dark fill:#000,stroke:#000,stroke-width:4px,color:#fff
- Lorem --> Ipsum --> Dolor
- class Lorem,Dolor dark
-
-
-%%{init: {'theme': 'base' }}%%
-%%{init2: { 'logLevel': 0, 'theme': 'forest'} }%%
-flowchart TD
- L1 --- L2
- L2 --- C
- M1 ---> C
- R1 .-> R2
- R2 <.-> C
- C -->|Label 1| E1
- C <-- Label 2 ---> E2
- C ----> E3
- C <-...-> E4
- C ======> E5
-
-
-flowchart LR
-A[red text] -->|default style| B(blue text)
-C([red text]) -->|default style| D[[blue text]]
-E[(red text)] -->|default style| F((blue text))
-G>red text] -->|default style| H{blue text}
-I{{red text}} -->|default style| J[/blue text/]
-K[
-ed text] -->|default style| L[/blue text]
-M[
-ed text/] -->|default style| N[blue text]
-linkStyle default color:Sienna;
-style A stroke:#ff0000,fill:#ffcccc,color:#ff0000
-style B stroke:#0000ff,fill:#ccccff,color:#0000ff
-style C stroke:#ff0000,fill:#ffcccc,color:#ff0000
-style D stroke:#0000ff,fill:#ccccff,color:#0000ff
-style E stroke:#ff0000,fill:#ffcccc,color:#ff0000
-style F stroke:#0000ff,fill:#ccccff,color:#0000ff
-style G stroke:#ff0000,fill:#ffcccc,color:#ff0000
-style H stroke:#0000ff,fill:#ccccff,color:#0000ff
-style I stroke:#ff0000,fill:#ffcccc,color:#ff0000
-style J stroke:#0000ff,fill:#ccccff,color:#0000ff
-style K stroke:#ff0000,fill:#ffcccc,color:#ff0000
-style L stroke:#0000ff,fill:#ccccff,color:#0000ff
-style M stroke:#ff0000,fill:#ffcccc,color:#ff0000
-style N stroke:#0000ff,fill:#ccccff,color:#0000ff
-
-
-
+
+