<?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 Ismayil Tahmazov on Medium]]></title>
        <description><![CDATA[Stories by Ismayil Tahmazov on Medium]]></description>
        <link>https://medium.com/@tehmezovismayil?source=rss-2ab490558c89------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*GrC_Pl7SRrU40GMR</url>
            <title>Stories by Ismayil Tahmazov on Medium</title>
            <link>https://medium.com/@tehmezovismayil?source=rss-2ab490558c89------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 22:11:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tehmezovismayil/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[Steal input DATA’s with CSS File injection (Bugbounty)]]></title>
            <link>https://medium.com/@tehmezovismayil/steal-input-datas-with-css-file-injection-bugbounty-449ba41a5092?source=rss-2ab490558c89------2</link>
            <guid isPermaLink="false">https://medium.com/p/449ba41a5092</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[Ismayil Tahmazov]]></dc:creator>
            <pubDate>Tue, 04 Aug 2020 11:52:54 GMT</pubDate>
            <atom:updated>2020-08-04T11:52:54.004Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NM4XuafGnPNBnhhAGF7XlQ.png" /></figure><p>What is css injection ?</p><p>CSS injection vulnerabilities arise when an application imports a style sheet from a user-supplied URL, or embeds user input in CSS blocks without adequate escaping. They are closely related to cross-site scripting (XSS) vulnerabilities but often trickier to exploit.</p><p><a href="https://portswigger.net/kb/issues/00501300_css-injection-reflected">CSS injection (reflected)</a></p><p>Testing</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z7gCz3h77uAIVM0i57NNjA.png" /></figure><p>XSS : Not worked :(.</p><p>Test CSS File: Good CSS File injected :).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bQcfKOsIDgUBIn5rsKgxxg.png" /></figure><p>Other vulnerability CLICKJACKING to help us complete the CSS injection</p><p>Our attack method will allow the victim to enter an address and pull data from that page with css injection.</p><p>We need it for this</p><ul><li>fakeurl (I used <strong>ngrok</strong> )</li><li>PHP script</li><li>Sending the address to the victim</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NM4XuafGnPNBnhhAGF7XlQ.png" /></figure><p>Step #1</p><p><strong>Create index.php</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v0KlLk6mcEXitoHLTeziaQ.png" /></figure><p>The index file will establish the link between the victim and the site.</p><p><strong>Create a.php</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*02q8acVGLEapsCMI__9uEw.png" /></figure><p>In this file we will call the target site in iframe.</p><p><strong>Create css.php</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nMTokEes8rV6czFx3zDJ9g.png" /></figure><p>css.php file is one of our most important files.Here, css codes to be injected into the page are produced.The generated codes are reproduced per character.</p><ul><li>Req 1: abcdef123456789 -&gt; founded a</li><li>Req 2 : a(abcdef123456789) -&gt; founded 9</li><li>Req 3 : a9(abcdef123456789)</li></ul><p>In this way, the cycle continues until we get full data.</p><p>As in the scripting languages, CSS has REGEX.</p><p>For example : <strong>input[name^=email_protected_]</strong></p><p>Since the e-mail address is protected here, the input name changes constantly, and we will ask that it complete the rest based on the remaining part.</p><p><strong>Create opt.php</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*c0e7o01URiQgvQV_qQV2rg.png" /></figure><p>opt.php writes incoming requests to the file.Thus, the next request is generated by reading from the written file.</p><p>Get Full Payload : <a href="https://dotphp.net/cssinj/site.php?css=https://dotphp.net/cssinj/css.php">https://dotphp.net/cssinj/site.php?css=https://dotphp.net/cssinj/css.php</a></p><p>Test Injection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*zL6T9CVqbnFWJsoVDlMFcQ.png" /><figcaption>Normal site without css payload.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9QvbRE-ArVlH5-_79dK37Q.png" /><figcaption>CSS injected page. body{color:red} Worked.</figcaption></figure><p>And the last step is to send an address to the victim. : <a href="https://dotphp.net/inj.php">https://dotphp.net/inj.php</a> ( index.php )</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FqkHf9XExyBU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DqkHf9XExyBU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FqkHf9XExyBU%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/c41300c5f6be41f907ce4b3cee23741f/href">https://medium.com/media/c41300c5f6be41f907ce4b3cee23741f/href</a></iframe><p>Youtube video URL : <a href="https://www.youtube.com/embed/qkHf9XExyBU">https://www.youtube.com/embed/qkHf9XExyBU</a></p><p>Inline CSS Injection Leak Data : <a href="https://medium.com/bugbountywriteup/exfiltration-via-css-injection-4e999f63097d">https://medium.com/bugbountywriteup/exfiltration-via-css-injection-4e999f63097d</a></p><p>Twitter: <a href="https://twitter.com/Tismayil1">https://twitter.com/Tismayil1</a></p><p>Happy Hunting. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=449ba41a5092" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cookie Based PHP Local File Inclusion ( Bug Bounty)]]></title>
            <link>https://medium.com/@tehmezovismayil/cookie-based-php-local-file-inclusion-bug-bounty-553f8b38d4dc?source=rss-2ab490558c89------2</link>
            <guid isPermaLink="false">https://medium.com/p/553f8b38d4dc</guid>
            <dc:creator><![CDATA[Ismayil Tahmazov]]></dc:creator>
            <pubDate>Mon, 03 Aug 2020 17:51:01 GMT</pubDate>
            <atom:updated>2020-08-04T10:45:58.831Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the sites I reviewed had a cookie that caught my attention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QmE1_zrhqvy-N-JxM6XYsA.png" /></figure><p><strong>lang=langPack/en</strong></p><p>I thought about changing that.</p><p><strong>lang=langPack/blabla</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AlAuPXKrX7wJWrU7evhAAQ.png" /></figure><p>I started trying for LFI vulnerability.</p><p><strong>Tested Payload’s :</strong></p><p>../../../../../etc/passwd</p><p>./index.php</p><p>../../index.php</p><p>When I looked at the error again, something caught my attention.</p><p><strong>include(“langPack/blabla.php”):</strong></p><p>I did not enter a .php file extension in cookies. I noticed that the system automatically adds .php.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*G36e1zgiCQqpnKyB13Dd1g.jpeg" /></figure><p>I immediately thought of the method I had seen in a repo before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HUnbflJ52uZAC3ePci7BIg.png" /><figcaption><a href="https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/File%20Inclusion">https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/File%20Inclusion</a></figcaption></figure><p>In my first attempt, I tried to shoot the language file itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OFLc_cb5Ee7UPVsSJhF0SA.png" /></figure><p>Then result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JTHcdogoRrv5FCEmiwfEoA.png" /></figure><ul><li>Report Sended. Waiting Bounty. :)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=553f8b38d4dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>