The following proof of concept demonstrates a XSS virus. The vulnerable environment created is an example scenario required for XSS viruses and does not show an exhaustive set of possible conditions. It illustrates permanent XSS within a web application. In this case, the vulnerability is exploitable via a get request, which allows a trivial virus to be created. Initially an instance of the vulnerable web application will be seeded with the self-propagating code. When this code is executed by web browsers, it results in their infection. The infected web browsers connect to random sites and perform the exploiting get request. The injected code will, in turn, infect further vulnerable web applications with the self-propagating code. The following crafted permanent XSS exploitable PHP page can be infected with a virus. The page accepts a parameter (param) value and writes it to a file (file.txt). This file is then returned in the request to the browser. The file will contain the previous value of the “param” parameter. If no parameter is passed it will display the file without updating it. Web Application: index.php $p=$HTTP_GET_VARS['param'];$filename = "./file.txt"; if ($p != "") {$handle=fopen($filename, "wb");fputs($handle, $p);fclose($handle);} $handle = fopen($filename, "r");$contents = fread($handle, filesize($filename));fclose($handle); print $contents;?> This page (index.php) was hosted on multiple virtual servers within a 10.0.0.0/24 subnet. One web application instance was then seeded with the following code which retrieves a javascript file and executes it. Alternatively, it is possible to inject the entire code into the vulnerable applications rather than requesting a javascript file. For simplicity, a javascript file (xssv.jsp) was requested. Injected Seed Code: The javascript file that was requested in the example is shown below. Its self-propagation uses an iframe which is periodically reloaded using the loadIframe() function. The target site IP address of the iframe is selected randomly within the 10.0.0.0/24 subnet via the function get_
在做百度搜索引擎优化时,我们常常会满意扩展要害词的需要。对付相对风行的行业,通过第三方东西,我们实际上可以找到某些方针要害词。 可是,对付一些不受接待的行业来说,在某些时候利用第三方要害词挖掘东西很难...
精神病遗传吗(精神疾病究竟是否会基因遗传)还记得以前有部电视连续剧《欢乐颂》,主人公安迪对婚姻关系有比较严重的抵触,依据详细介绍,她的妈妈疯掉,侄子也是有精神疾病,她觉得自身发生难题是早晚的事儿,...
本文的目的是为主成分分析(PCA)提供一个完整且简单的解释,特别是其运作方式,以增进大家对该分析法的理解并加以利用,而不必具有强大的数学背景。 PCA实际上是网上广泛提及的一种方法,很多文章都有涉及。...
据美国有线电视新闻网当地时间12月4日报道,美国健康指标与评估研究所(IHME)和华盛顿大学统计数据显示,新冠肺炎在本周成为美国最主要的致死因素。 IHME在周五(4日)的新闻发布会中称,上...
⒈我想问一下哪里可以找黑客 我想请人帮黑一个qq 感谢就在令薪水的哪个按键 按键如今显示信息不出来可是作用仍在 你点了就可以领了 ⒉自己急寻一个助人为乐的热情黑客 亲人在异地下落不明,要求黑客。晕,...
2017七年級下語文教學事情計劃讀書啊,我信赖但有朗朗書聲出破廬,遲早有一日有萬鯉躍龍門之奇象。 篇一: 為瞭有用地搞好語文教學事情,學期初始本人認真剖析课本,積極瞭解學情,結合實際...