Last active
March 24, 2020 11:45
-
-
Save CoreProgramm/2cf791ee907cb39ec36b7fc0f352b8d6 to your computer and use it in GitHub Desktop.
Angular Property Binding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-root', | |
template: `<div [innerHTML] = 'vulnerableContent'></div>` | |
}) | |
export class AppComponent { | |
vulnerableContent = 'Hello <script>alert("your application is crashed")</script>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment