Example:
<!DOCTYPE>
<html lang="en">
<head>
<title>XSS test</title>
<style>
div {
background-color:red;
height:100px;
width:100px;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
Would it be possible to inject JavaScript
code using inside style tag? I have heard that it's possible to trigger XSS
attacks through CSS
.