<?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 CyberGul on Medium]]></title>
        <description><![CDATA[Stories by CyberGul on Medium]]></description>
        <link>https://medium.com/@gulhameed30j?source=rss-31fddfedd2ab------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hlF8qYXDfH8fK7mTCCL7bg.png</url>
            <title>Stories by CyberGul on Medium</title>
            <link>https://medium.com/@gulhameed30j?source=rss-31fddfedd2ab------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 04:13:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gulhameed30j/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[Host Header Injection/Redirection]]></title>
            <link>https://medium.com/@gulhameed30j/host-header-injection-redirection-593404ff52aa?source=rss-31fddfedd2ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/593404ff52aa</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[CyberGul]]></dc:creator>
            <pubDate>Sun, 14 Jun 2020 22:39:08 GMT</pubDate>
            <atom:updated>2020-06-14T22:39:08.258Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi this is my second blog and if you want to read my first blog then click on this link: <a href="https://medium.com/@gulhameed30j/my-first-bug-bounty-8c6a953dc3f0"><strong>My First Bug Bounty.</strong></a></p><h4><strong>Vulnerability i Found:</strong></h4><p>The bug i found was <strong>Host Header Injection</strong> and got<strong> $50 </strong>for reporting this vulnerability. Due to the privacy policy i can not disclose the name of the site so lets assume the site name as <strong>example.com.</strong></p><h4><strong>What is Host Header?</strong></h4><p>It is a third piece of information which is used in addition to IP address and port number to uniquely identify a web domain. Microsoft calls it an <strong>application server.</strong></p><p>For Example: URL <a href="https://www.example.com/">https://www.example.com</a> in this URL the host header is <a href="http://www.example.com./">www.example.com.</a></p><p>Host header specifies which web application or website should process an incoming HTTP request. The web server use the value of host header to forward the request to specified web application.each web application hosted on the same IP address commonly mention as <strong>virtual host</strong>.In the browser you specified host header name then browser include that host header name in the location field of the request header that the browser sends it to the server.</p><h4>What is Virtual Host?</h4><p>The Practice of running more then one website on a single machine. it can be <strong>IP based </strong>or <strong>named based</strong>.</p><p>For Example: company1.example.com, company2.example.com, company3.example.com all website will be running on a single machine</p><h4><strong>How to find Host Header Injection?</strong></h4><p>After knowing what is host header and why it is used, a question arises that:</p><p><strong>what if we supply an invalid host header name? what will happen?</strong></p><p>It is possible to send request with random host header name in the first virtual host because most of the web servers are design to pass the unrecognized host header name to the first virtual host in the list.</p><p>Another way to supply random host header name is by adding <strong>X-Forwarded-Host</strong>. in some configuration it will rewrite the host header.</p><p>For Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*6Cj-5U_XmVn2iL88ThSmtw.png" /><figcaption>host header injection</figcaption></figure><h4>Tip:</h4><p>Always remember, never <strong>trust</strong> the user input and it should always be considered as <strong>unsafe </strong>and should be validate properly.Most of the developer’s don’t realize that the host header is controlled by the user.</p><h4><strong>Steps to Reproduce The Vulnerability:</strong></h4><ol><li>First go to the URL <a href="https://www.example.com/">https://www.example.com</a></li><li>Intercept the traffic using Proxy . I used Burp Proxy tool</li><li>Send the request to the repeater.</li><li>Now change the host header name which is <a href="http://www.example.com/">www.example.com</a> to <a href="http://www.bing/">www. bing</a>.com</li><li>You will see <strong>301 moved permanently </strong>in the response and<strong> location </strong>will be <strong>bing.com</strong></li><li>Now copy the URL from Burp proxy to see the response in browser</li><li>Past the URL in the browser and you will be redirected to Bing!</li></ol><h4>Impact:</h4><p>Whenever a user visit this URL , it will be redirected to attacker controlled site which can be used for phishing attacks. Users credentials can be compromised.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=593404ff52aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First Bug Bounty]]></title>
            <link>https://medium.com/@gulhameed30j/my-first-bug-bounty-8c6a953dc3f0?source=rss-31fddfedd2ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c6a953dc3f0</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[dmarc]]></category>
            <category><![CDATA[spf]]></category>
            <category><![CDATA[email-spam]]></category>
            <dc:creator><![CDATA[CyberGul]]></dc:creator>
            <pubDate>Sat, 13 Jun 2020 21:48:50 GMT</pubDate>
            <atom:updated>2020-06-13T21:48:50.605Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi , as this is my first blog so little brief about myself. i am student of software engineering currently in 3rd year.</p><h4><strong><em>How I started as a Security Researcher?</em></strong></h4><p>A friend of mine is working in this field for almost 9 year. I discussed with him about this field and how to build career in the same, he taught me some basic stuff and sent me blogs and books to learn. After learning 2,3 bugs i started testing it on live sites, may be it was my beginner’s luck that i got my first bounty in a week of doing testing.</p><h4>What was the Bug?</h4><p>The bug was Email Spoofing. Due to the privacy policy i can not disclose the name of the site but through example you can easily understand how to find and exploit the bug</p><h4><strong>What is Email Spoofing?</strong></h4><p>it means that the email protocol does not have any mechanism for authentication which is used to mislead the recipient about the origin of the message.</p><p>following are the two reasons which can cause email spoofing</p><ol><li>SPF record not set for the email</li><li>DMARC protocol is missing for the email</li></ol><h4><strong>What is SPF record?</strong></h4><p>SPF stands for “ Sender Policy Framework” it used to check whether the IP is authorized to send email from the particular domain. it can leads to false positive result , so the receiver server should check for the SPF record to validate the sender email.</p><h4><strong>What is DMARC protocol?</strong></h4><p>it stands for “Domain-Based Message Authentication, Reporting, and Conformance” through this the sender have option to let the receiver know that its email is protected by DKIM or SPF and defines that what procedure to take when email is fail to authenticate .DMARC is not commonly used</p><h4><strong>Vulnerability i found:</strong></h4><p>The vulnerability i found was SPF miss configuration, and i was awarded with Amazon gift card worth of $100.</p><h4><strong>How to find SPF Miss Configuration?</strong></h4><p>1: To check which host is authorized to send email i used this site <a href="https://www.kitterman.com/spf/validate.html">https://www.kitterman.com/spf/validate.html</a> just paste the domain and click on get SPF record</p><p>2: if you see in the result <strong>No Valid SPF Record Found </strong>you can send the email on behalf of that domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*stTXSaPPp4m1JrcT5khY1g.png" /></figure><h4><strong>How to Expolit?</strong></h4><p>1: Collect all the possible email of your target website. for example abc@company.com</p><p>2: Now use this site <a href="http://elenco.leoalfre.altervista.org/beta/FakeMail/index.html">https://emkei.cz/ </a>for expolitation or you can use any fake mailer site</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*jCRWWhT2TEH90UHKkm7T8w.png" /></figure><p>3: now fill the form in <strong>Form-Email</strong>: write the company email and in <strong>To</strong> write your own email ,subject can be anything.</p><p>4: After sending the form, check your email you will receive the email from the company which was sent by you.</p><h4><strong>Impact:</strong></h4><p>The cyber criminals can send malicious email to customers on behalf of the company which can cause huge reputation loss to the company.</p><h4><strong>Thank you!</strong></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c6a953dc3f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>