<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sahi Pro(&lt;=8.x) Stored XSS Archives -</title>
	<atom:link href="https://barriersec.com/category/disclosures/sahi-pro8-x-stored-xss/feed/" rel="self" type="application/rss+xml" />
	<link>https://barriersec.com/category/disclosures/sahi-pro8-x-stored-xss/</link>
	<description></description>
	<lastBuildDate>Mon, 14 Sep 2020 03:01:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.15</generator>

<image>
	<url>https://barriersec.com/wp-content/uploads/cropped-Monochrome-on-Transparent-32x32.png</url>
	<title>Sahi Pro(&lt;=8.x) Stored XSS Archives -</title>
	<link>https://barriersec.com/category/disclosures/sahi-pro8-x-stored-xss/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>CVE-2018-20472 &#8211; Sahi pro ( </title>
		<link>https://barriersec.com/2019/06/cve-2018-20472-sahi-pro/</link>
		
		<dc:creator><![CDATA[goutham madhwaraj]]></dc:creator>
		<pubDate>Tue, 11 Jun 2019 15:48:52 +0000</pubDate>
				<category><![CDATA[disclosures]]></category>
		<category><![CDATA[Sahi Pro(<=8.x) Stored XSS]]></category>
		<category><![CDATA[7.x]]></category>
		<category><![CDATA[8.x]]></category>
		<category><![CDATA[sahi pro]]></category>
		<guid isPermaLink="false">https://barriersec.com/?p=532</guid>

					<description><![CDATA[<p>Sahi Pro web interface is  vulnerable to a Stored XSS . Exploiting this bug needs a prior knowledge of the&#8230;</p>
<p>The post <a rel="nofollow" href="https://barriersec.com/2019/06/cve-2018-20472-sahi-pro/">CVE-2018-20472 &#8211; Sahi pro ( &lt;= 8.x ) Stored XSS</a> appeared first on <a rel="nofollow" href="https://barriersec.com"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Sahi Pro</strong> web interface is  vulnerable to a <strong>Stored XSS</strong> . Exploiting this bug needs a prior knowledge of the end to end flow and basic scripting of sahi pro .</p>
<p>Sahi pro is a web application automation tool which helps automation testers to automate their web application tasks . It makes it very easy for end users with their readily available API functions . an end user can create a sahi script either by using their sahi programming language ( similar to javascript ) or can use ruby . We will use sahi language itself for this demo.</p>
<p>Sahi has some interesting features such as web application interface which aggregates all the reports for the sahi script execution tasks. It was found that web module is vulnerable to stored cross site scripting.</p>
<p>Here is the Proof of concept for the same:</p>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-537" src="https://barriersec.com/wp-content/uploads/xss_1.png" alt="" width="1275" height="460" srcset="https://barriersec.com/wp-content/uploads/xss_1.png 1275w, https://barriersec.com/wp-content/uploads/xss_1-300x108.png 300w, https://barriersec.com/wp-content/uploads/xss_1-768x277.png 768w, https://barriersec.com/wp-content/uploads/xss_1-1024x369.png 1024w" sizes="(max-width: 1275px) 100vw, 1275px" /></p>
<p>fig 1 : sahi script containing XSS payload</p>
<p>Here we have created a simple sahi script which uses a testcase API .</p>
<p><strong>var $tc1 = _testcase(&#8220;TC-1&#8243;,&#8221;&lt;script&gt;alert(document.cookie)&lt;/script&gt;&#8221;).start();</strong></p>
<p><strong>_log(&#8220;testing stored XSS injection&#8221;);</strong></p>
<p><strong>$tc1.end();</strong></p>
<p>In the testcase API , as per the documentation provided accepts two parameters ,first one being <strong>testcase ID</strong> and second one <strong>test case description</strong> . Both values are reflected back in the web reports  which triggers the <strong>XSS</strong> vulnerability . save the file as &#8220;filename.sah&#8221;  and with the help of sahi controller execute the script.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-539 aligncenter" src="https://barriersec.com/wp-content/uploads/stored_2.png" alt="" width="1456" height="948" srcset="https://barriersec.com/wp-content/uploads/stored_2.png 1456w, https://barriersec.com/wp-content/uploads/stored_2-300x195.png 300w, https://barriersec.com/wp-content/uploads/stored_2-768x500.png 768w, https://barriersec.com/wp-content/uploads/stored_2-1024x667.png 1024w" sizes="(max-width: 1456px) 100vw, 1456px" /></p>
<p>Fig 2 : execute the script in the controller</p>
<p>Now navigate to the executed report in the web report console . XSS is triggered .</p>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-541" src="https://barriersec.com/wp-content/uploads/stored_3.png" alt="" width="1609" height="698" srcset="https://barriersec.com/wp-content/uploads/stored_3.png 1609w, https://barriersec.com/wp-content/uploads/stored_3-300x130.png 300w, https://barriersec.com/wp-content/uploads/stored_3-768x333.png 768w, https://barriersec.com/wp-content/uploads/stored_3-1024x444.png 1024w" sizes="(max-width: 1609px) 100vw, 1609px" /> <img decoding="async" loading="lazy" class="alignnone size-full wp-image-542" src="https://barriersec.com/wp-content/uploads/xss_3.png" alt="" width="1796" height="795" srcset="https://barriersec.com/wp-content/uploads/xss_3.png 1796w, https://barriersec.com/wp-content/uploads/xss_3-300x133.png 300w, https://barriersec.com/wp-content/uploads/xss_3-768x340.png 768w, https://barriersec.com/wp-content/uploads/xss_3-1024x453.png 1024w" sizes="(max-width: 1796px) 100vw, 1796px" /></p>
<p><strong>   Fig 3 ,4 : Stored XSS triggers .</strong></p>
<p>This can be utilized by a malicious limited user to steal password protected (admin) web reports credentials.</p>
<p>Disclosure timeline :</p>
<p>Reported on : <strong>8 / December / 2018</strong></p>
<p>Affected versions : all versions of <strong>sahi pro ( &lt;= 8.x ) (web application automation )</strong></p>
<p><strong>vendor website</strong> :  https://sahipro.com/</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://barriersec.com/2019/06/cve-2018-20472-sahi-pro/">CVE-2018-20472 &#8211; Sahi pro ( &lt;= 8.x ) Stored XSS</a> appeared first on <a rel="nofollow" href="https://barriersec.com"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
