1
例子:是否可以在具有內聯樣式的樣式標籤上使用XSS進行攻擊?
<!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>
是否可以使用樣式標籤內注入JavaScript
代碼?我聽說可以通過CSS
觸發XSS
攻擊。
以及其可能的 – Ahmad
這個例子是靜態的發現,所以沒有可能與XSS攻擊它。 –
攻擊示例:http://stackoverflow.com/questions/4546591/xss-attacks-and-style-attributes?rq=1 –