JS: Add new sink to test

This commit is contained in:
Asger F
2023-04-26 14:32:37 +02:00
parent 4df05b4e74
commit 0d74d88b7b
2 changed files with 2 additions and 0 deletions

View File

@@ -19,5 +19,6 @@ export class Source {
methodOnComponent(x) {
this.sanitizer.bypassSecurityTrustHtml(x);
this.elementRef.nativeElement.innerHTML = x;
}
}

View File

@@ -31,6 +31,7 @@ taintFlow
| source.component.ts:15:22:15:29 | source() | sink.component.ts:27:48:27:57 | this.sink6 |
| source.component.ts:15:22:15:29 | source() | sink.component.ts:29:48:29:57 | this.sink8 |
| source.component.ts:15:22:15:29 | source() | source.component.ts:21:48:21:48 | x |
| source.component.ts:15:22:15:29 | source() | source.component.ts:22:51:22:51 | x |
| source.component.ts:16:33:16:40 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
testAttrSourceLocation
| inline.component.ts:8:43:8:60 | [testAttr]=taint | inline.component.ts:8:55:8:59 | <toplevel> |