<?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 Sandeeppavan on Medium]]></title>
        <description><![CDATA[Stories by Sandeeppavan on Medium]]></description>
        <link>https://medium.com/@sandeeppavan2125?source=rss-313e79ee8cdc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KQgf_VmRoGC4A5GX</url>
            <title>Stories by Sandeeppavan on Medium</title>
            <link>https://medium.com/@sandeeppavan2125?source=rss-313e79ee8cdc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 20:15:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sandeeppavan2125/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[AUTHENTICATION VULNERABILITY]]></title>
            <link>https://medium.com/@sandeeppavan2125/authentication-vulnerability-95e757cbb9a4?source=rss-313e79ee8cdc------2</link>
            <guid isPermaLink="false">https://medium.com/p/95e757cbb9a4</guid>
            <category><![CDATA[two-factor-authentication]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[authenticity]]></category>
            <category><![CDATA[jwt-authentication]]></category>
            <dc:creator><![CDATA[Sandeeppavan]]></dc:creator>
            <pubDate>Mon, 06 Apr 2026 08:55:48 GMT</pubDate>
            <atom:updated>2026-04-06T08:55:48.722Z</atom:updated>
            <content:encoded><![CDATA[<p>INTRODUCTION:</p><p>Authentication is the security process of verifying the identity of a user, device, or system before granting access to resources. It confirms “who you are” (e.g., via password, biometric) to prevent unauthorized access and protect data, acting as a crucial first step before authorization User authentication methods include password verification, multi-factor checks, biometric scanning, and token validation. These steps secure access and support effective employee lifecycle management while reducing identity fatigue across applications.</p><p>WHAT IS Authentication ?</p><p>Authentication is the Process of Verifying the Identity of a user , system or device before granting access</p><p>There are three main types of authentication:</p><ul><li>Something you know, such as a password or the answer to a security question. These are sometimes called “knowledge factors”.</li><li>Something you have, This is a physical object such as a mobile phone or security token. These are sometimes called “possession factors”.</li><li>Something you are or do. For example, your biometrics or patterns of behavior. These are sometimes called “inherence factors”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*AJP4TMOr8E93himSCViFww.png" /></figure><p>Authentication mechanisms rely on a range of technologies to verify one or more of these factors.</p><p>How Vulnerabilities Arise :</p><p>· Weak Password Policies</p><p>· Poor Session Management</p><p>· Lack of Rate Limiting</p><p>· Improper Implementing of MFA</p><p>· Insecure Storage of Credentials</p><p>· Mis-Configured OAuth</p><p>· Logic flaws in login or reset flaws</p><p>Root Causes :</p><p>· Insecure Design</p><p>· Coding Mistakes</p><p>· Mis Configuration</p><p>· Lack of Security Testing</p><p>Authentication– Vulnerabilities Impacts:</p><p>If Authentication is compromised attackers may:</p><p>· Account take over</p><p>· Unauthorized data access</p><p>· Privilege escalation</p><p>· Identity theft</p><p>· Financial fraud</p><p>· Data breaches</p><p>· Compliance Violations</p><p>· Full System Compromise</p><p>Vulnerabilities in Password Based Authentication:</p><p>· Weak Passwords Allowed</p><p>· No Account Lock out (or) Rate Limiting</p><p>· Credentials transmitted without HTTPs</p><p>· Passwords Stored in Plain text (or) Weak Hashing</p><p>· Insecure Password reset Mechanism</p><p>· Username enumeration</p><p>· Default Credentials not Changed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*yH47p6p9e-6jKcA5KEwadQ.png" /></figure><p>Secure Practices</p><p>Ø Enforce Strong Password Policy</p><p>Ø Use bcrypt/argon2 hashing</p><p>Ø Implement Login rate limiting</p><p>Ø Generic error messages</p><p>Vulnerabilities In Multi Factor Authentication (MFA):</p><p>Common MFA Weakness</p><p>· OTP Sent Via SMS (Sim Swap attacks)</p><p>· MFA bypass through alternate login methods</p><p>· Backup Codes not Protected</p><p>· No MFA enforcement for Sensitive actions</p><p>· OTP Reuse (or) long Validity</p><p>· MFA disabled without Verification</p><p>Attacks :</p><p>Ø MFA fatigue attack</p><p>Ø Phishing real time OTP Capture</p><p>Secure practices:</p><p>Ø Use authentication apps instead of sms</p><p>Ø Step-up authentication for critical actions</p><p>Ø Limit OTP attempts and Expiry</p><p>Vulnerabilities in Other Authentication Mechanisms:</p><p>· Session Based Authentication:</p><p>Session Fixation</p><p>Session Hijacking</p><p>Predictable Sessions IDS</p><p>No Session timeout</p><p>· Bio-Metric Authentication:</p><p>Bio metric Spoofing</p><p>No Fallback Protection</p><p>· API Authentication:</p><p>Hardcoded Api Keys</p><p>Tokens not Rotated</p><p>No Token Expiration</p><p>· Token Based JWT :</p><p>Weak Signing algorithms</p><p>Token Tampering</p><p>Long Lived Tokens</p><p>Vulnerabilities in OAuth Authentication:</p><p>Common OAuth Issues:</p><p>· Improper redirect URL Validation</p><p>Token Leakage</p><p>· Missing State Parameter</p><p>CSRF attacks</p><p>· Access Token Exposed in URL</p><p>Token Theft</p><p>· Using Implicit Flow Unnecessarily</p><p>· Scope Misconfiguration</p><p>Excessive Permissions</p><p>· No token Expiration</p><p>· Client Secret Exposed</p><p>Impact: Account take over, Unauthriozed access to third party data</p><p>Security your Authentication Mechanisms:</p><p>General Security Controls :</p><p>· Enforce Strong Password Policy</p><p>· Implement MFA</p><p>· Use Https Every where</p><p>· Apply Rate Limiting And Account Lockout</p><p>· Monitor Login anomalies</p><p>Password Security :</p><p>· Hash with bcrypt/argon2</p><p>· Secure Password reset(token-based, Short Expiry)</p><p>· Prevent Username enumeration</p><p>Session Security :</p><p>· Secure Cookies ( HTTP Only, Secure, Same site)</p><p>· Session Timeout and rotation</p><p>· Logout Invalidates Session</p><p>MFA Security :</p><p>· Avoid sms if Possible</p><p>· Protect backup codes</p><p>· Require MFA For Sensitive operations</p><p>OAuth Security :</p><p>· Validate redirect URLs Strictly</p><p>· Use State Parameter</p><p>· Use Authorization code flow</p><p>· Limit Scopes</p><p>· Expire and rotate tokens</p><p>MONITORING :</p><p>· Log Authentication Events</p><p>· Detect Brute Force (or) Unusual login patterns</p><p>· Alert on Suspicious activity</p><p>MITIGATIONS :</p><p>· Strict Password Guidelines<br> <br> Make sure your passwords are secure:<br> <br> At least 8–12 characters<br> Included must be:<br> Numbers in uppercase and lowercase<br> Unique characters<br> Use wordlists like rockyou to block common passwords.</p><p>· Brute Force Protection &amp; Rate Limiting<br> <br> Stop automated assaults:<br> <br> Limit the number of login attempts (e.g., five per minute).<br> After unsuccessful attempts, add delays</p><p>· Avoid Enumeration of Usernames<br> <br> Don’t reveal legitimate users:<br> <br> ❌ Negative:<br> “User not found” “Incorrect password”<br> <br> ✅ Positive:<br> “Invalid email or password”</p><p>· MFA, or multi-factor authentication<br> <br> Include an additional layer of security:<br> <br> OTP (Email, SMS, and Authenticator applications)<br> Hardware keys (for applications with high security)</p><p>· Safe Session Administration<br> Make use of random, secure session IDs<br> After logging in, regenerate the session<br> End the session after you log out.</p><p>· Stop Bypassing Authentication</p><p>· Secure OTP Implementation</p><p>· Add Captcha Protection</p><p>· Secure Password Reset</p><p>· Mechanism for Account Lockout<br> After several fails, lock the account.<br> Establish a secure recovery procedure</p><p>· Logging &amp; Monitoring Log: Unsuccessful attempts to log in<br> Suspicious actions<br> Be mindful of:<br> Several unsuccessful attempts<br> Log in from odd places</p><p>· Validation and Sanitization of Input<br> Clean every input.<br> Avoid:<br> XSS and SQL Injection</p><p>CONCULSION :</p><p>The first and most important line of defense in every application is authentication. Even the most secure systems are vulnerable if it fails because attackers can obtain unauthorized access and get around all other security measures.<br> <br> Weak passwords, inadequate rate limiting, OTP bypass, improper session management, and unsafe password reset procedures can all be found and successfully addressed with appropriate authentication security testing. These flaws can have serious repercussions, such as data leaks, account takeover, and privilege escalation, but they are frequently easy to attack.</p><p>Strong security measures, like multi-factor authentication (MFA), secure session handling, robust input validation, and stringent rate limitation, guarantee that authentication processes are resistant to contemporary attack methods. Long-term security is also greatly aided by ongoing monitoring, logging, and frequent security evaluations.<br> <br> Authentication security is a continuous effort rather than a one-time implementation in the current threat scenario. Businesses need to take a proactive stance, test their systems often, and adhere to best practices like the OWASP principles.<br> <br> In the end, a secure authentication system not only safeguards private information but also increases user confidence and fortifies the application’s overall integrity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95e757cbb9a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cross Site Scripting (XSS):]]></title>
            <link>https://medium.com/@sandeeppavan2125/cross-site-scripting-xss-18f08f1bc0cb?source=rss-313e79ee8cdc------2</link>
            <guid isPermaLink="false">https://medium.com/p/18f08f1bc0cb</guid>
            <category><![CDATA[dom-xss]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[stored-xss]]></category>
            <category><![CDATA[xss-vulnerability]]></category>
            <category><![CDATA[reflected-xss]]></category>
            <dc:creator><![CDATA[Sandeeppavan]]></dc:creator>
            <pubDate>Thu, 02 Apr 2026 07:24:26 GMT</pubDate>
            <atom:updated>2026-04-02T07:24:26.783Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction:</strong></p><p>In the web-driven world of today, user interaction is crucial to almost every program. Websites constantly accept and handle user input, from comment sections to login forms. When this input is not adequately validated or sanitized, one of the most common security vulnerabilities that results is Cross-Site Scripting (XSS). <br> <br> Cross-site scripting, or XSS, is one type of web security vulnerability that lets hackers install harmful programs into trustworthy websites. Because it exploits the user’s trust in the online application, XSS is particularly dangerous. The attacker targets users instead than the server directly by using the software as a delivery channel. <br> In this blog, we will go over how XSS works, its several forms, its real-world impacts, and — most importantly — how to effectively block it.</p><p><strong>What is XSS?</strong></p><p>Cross-Site Scripting (XSS) is a web security vulnerability where attackers inject malicious client-side scripts (usually JavaScript) into trusted websites. When unsuspecting users visit the compromised page, the script executes in their browser, allowing attackers to steal session cookies, hijack accounts, or deface websites.</p><p><strong>How does it works ?</strong></p><p>Cross-site scripting works by manipulating a vulnerable web site so that it returns malicious JavaScript to users. When the malicious code executes inside a victim’s browser, the attacker can fully compromise their interaction with the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ZfskTt-ZaDK8OnsVI7srKw.png" /><figcaption>img1</figcaption></figure><p><strong>Types of XSS?</strong></p><p>There are three main types of XSS attacks. These are:</p><p>Reflected XSS, where the malicious script comes from the current HTTP request.</p><p>Stored XSS, where the malicious script comes from the website’s database.</p><p>DOM-based XSS, where the vulnerability exists in client-side code rather than server-side code.</p><p><strong>1. Reflected XSS:</strong></p><p>Reflected XSS is the simplest variety of cross-site scripting. It arises when an application receives data in an HTTP request and includes that data within the immediate response in an unsafe way.</p><p>Checking for the if inputs gets reflected in the page source, body url</p><p>If input gets reflected we can hunt for reflected xss</p><p>Sending a simple javascript to execute and prove xss</p><p>No input validation or sanitization is dangerous</p><p>Basic Search Reflection</p><p>Vulnerable URL: <a href="https://example.com/search?q=store">https://example.com/search?q=store</a></p><p>Response: &lt;p&gt;You searched for: store &lt;/p&gt;</p><p>Attack URL: https://example.com/search?q=&lt;script&gt;alert(2)&lt;/script&gt;</p><p>Result: The browser executes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*AEE1HL2M_TDbmMMUi1UR3w.png" /><figcaption>img2</figcaption></figure><p><strong>XSS in Limited Inputs:</strong></p><p>· XSS in limited inputs</p><p>· How to do XSS if &lt;Script&gt; tags are blocked</p><p>Payload : &lt;Script&gt;alret(1)&lt;/script&gt;</p><p>&lt;img.Src = x.onerror = conform(1)&gt;</p><p><strong>XSS in Request Headers:</strong></p><p>· We can do XSS by giving the arbitrary is payload in to the request headers</p><p>· If the application interpreted and executes it, then it will boom!</p><p>· You can choose any Request Header</p><p>· No Sanitization and taking decisions is dangerous</p><p><strong>XSS in User agent and Caching Server Attacking Many:</strong></p><p>· we attack the website using XSS in User Agent in the web application</p><p>· we will also save our payload into the Caching Server (MISS — HIT)</p><p>· Whenever anyone visits the url which is cached by the server will lead to XSS</p><p>· XSS will remain until Cached is flushed</p><p><strong>XSS in Email login Fields:</strong></p><p>· We attack the website using XSS In email Field in the web application</p><p>· According to RFC822 email address Validator we will make our payload , XSS will win!</p><p><strong>XSS Protection-Bypass On XYZ Bank :</strong></p><p>· We will bypass and XSS Where there is Improper Input Sanitization or HTML Encoding With limited inputs</p><p>· No proper Encoding or Escaping and taking decisions is dangerous</p><p>Ex: BANK</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7fzGp4k23Go8lqAK0Dd0iw.png" /><figcaption>img3</figcaption></figure><p><strong>2. XSS Stored:</strong></p><p>· Stored cross-site scripting (also known as second-order or persistent XSS) arises when an application receives data from an untrusted source and includes that data within its later HTTP responses in an unsafe way.</p><p>· IF any application stores your inputs but in an unsafe manner</p><p>· Always try where you can save the input XSS Payload where the server saves the payload</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*AoCjwv1ftam9wyxPGTH3SA.png" /><figcaption>img4</figcaption></figure><p><strong>3. DoM (Document Object model) Based XSS:</strong></p><p>DOM-based XSS vulnerabilities usually arise when JavaScript takes data from an attacker-controllable source, such as the URL, and passes it to a sink that supports dynamic code execution, such as eval () or inner HTML. This enables attackers to execute malicious JavaScript, which typically allows them to hijack other users’ accounts.</p><p>To deliver a DOM-based XSS attack, you need to place data into a source so that it is propagated to a sink and causes execution of arbitrary JavaScript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*e-ErnILnXHZJXALjsZ-vhQ.png" /></figure><p>Client side attack input comes into the Dom is source it gets executed through in the Dom Is Sink</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*HjWRW_L2T665WCjqzfmvQw.png" /><figcaption>img6</figcaption></figure><p><strong>XSS MOUSE:</strong></p><p>· When Keyword input is blocked you can perform XSS using mouse</p><p>· Mouse payloads — Onmouseover, onmousemove, onmouseup, onmouseenter, onmouseleave, onmousewheel, onmouseout</p><p>· Effective in Bypassing many keyboard input checks and win</p><p><strong>XSS Polyglots:</strong></p><p>· Dictionary: Mutilingual (or) person who knows many languages</p><p>· Combining XSS Payloads leads to polyglots</p><p>· Effective in bypassing many input checks and win</p><p>XSS polyglots Breakdown:</p><p><strong>XSS Exploitation-URL Redirection:</strong></p><p>· We are Going to make the victim redirect to Evil website</p><p>· We will find a injection point burpsuite spider feature</p><p>· Inject the XSS Payload in the Param and boom!</p><p><strong>XSS by Using Spider:</strong></p><p>· IF we do not get a parameter directly from the application</p><p>· We will find a injection point using burpsuite spider Feature</p><p>· Inject the XSS Payload in the param and Boom!</p><p><strong>Impacts:</strong></p><p>· URl Redirection</p><p>· Phishing</p><p>· Cookie stealer</p><p>· File upload like SVG with script</p><p><strong>XSS Mitigations:</strong></p><p>· Input Sanitization</p><p>· Escaping-Encoding of all the input that a user ends</p><p>· Strong Input Validation for Limited inputs with sanitization</p><p>· WAF</p><p>· Filter input on arrival</p><p>· Encode data on output</p><p>· Use appropriate response headers</p><p>· Content security policy (Csp)</p><p><strong>Conclusion:</strong></p><p>One of the most prevalent and harmful flaws in contemporary web applications is Cross-Site Scripting (XSS). As we’ve shown, even a minor error, such as neglecting to verify or encrypt user input, might allow hackers to run harmful scripts in a user’s browser.<br> <br> The consequences of Reflected, Stored, or DOM-based XSS can be dire, ranging from data theft and session hijacking to total account compromise. Because XSS takes use of user trust instead of assaulting the server directly, it is particularly dangerous.</p><p>Ultimately, security is a continuous process rather than a one-time event. Maintaining awareness, conducting frequent testing, and putting best practices into practice will assist guarantee that your applications continue to be reliable and safe for users.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18f08f1bc0cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NO RATE LIMITING]]></title>
            <link>https://medium.com/@sandeeppavan2125/no-rate-limiting-21c9e58b4316?source=rss-313e79ee8cdc------2</link>
            <guid isPermaLink="false">https://medium.com/p/21c9e58b4316</guid>
            <category><![CDATA[otp-bypass]]></category>
            <category><![CDATA[no-rate-limit]]></category>
            <category><![CDATA[cache-bypass]]></category>
            <dc:creator><![CDATA[Sandeeppavan]]></dc:creator>
            <pubDate>Wed, 25 Mar 2026 16:53:18 GMT</pubDate>
            <atom:updated>2026-03-25T16:53:18.698Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>NO RATE LIMITING</strong></p><p><strong>Introduction</strong>:</p><p>Mechanisms that limit how many requests a user or system can submit in a certain amount of time are crucial for preserving availability and security in contemporary online applications and APIs. A No Rate Limit vulnerability arises when these controls are absent or implemented incorrectly.<br> <br> An application has a No Rate Limit vulnerability when it permits excessive or limitless requests. Attackers may use this vulnerability to quickly carry out automated and repetitive tasks, posing significant security threats. Brute-force attacks on login systems, credential stuffing, OTP (One-Time Password) bypass attempts, API misuse, and resource exhaustion are examples of common attack scenarios.<br> <br> Attackers can repeatedly submit requests to guess passwords, list user accounts, or overload the system if rate limitation is not in place.</p><p>It is essential to:<br> <br> Avoiding mistreatment<br> Preventing overload on APIs<br> preventing DoS and brute force attacks<br> <br> An application is susceptible to uncontrolled traffic in the absence of rate limitation, which may result in data compromise or service interruption.</p><p><strong>What is No Rate Limiting:</strong></p><p>No Rate Limiting is a security vulnerability where a web application fails to restrict the number of requests a user or bot can make within a specific timeframe.</p><p><strong>How a No Rate Limit Works:</strong></p><p>A “no-rate limit” vulnerability occurs when an application fails to restrict the number of requests a user can make within a specific timeframe, allowing unlimited actions. This flaw enables automated attacks like brute-forcing logins, email bombing, or API abuse.</p><p>Unrestricted Access: High-volume traffic on sensitive endpoints, such as login, OTP validation, or password recovery, is permitted since the server handles every request, regardless of frequency. <br> Missing 429 Errors: A 429 Too Many Requests error is returned by legitimate rate limiter. In the absence of protection, attackers can quickly test thousands of passwords or codes using software. <br> Automated Brute-Forcing: Since the server doesn’t stop or block requests, attackers can quickly submit thousands of credential combinations to get around authentication. <br> Abuse of Business Logic: If there are no restrictions, attackers can take advantage of capabilities like sending repeated API queries or redeeming infinite coupons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*LVUKYCeFyiYwvmc7amThTQ.png" /></figure><p><strong>No Rate Limit On Account Creation:</strong></p><p>We will send X number of Simultaneous request to the Server and Server will act on Each request.</p><p>Thus, Making X number of email accounts on the Website</p><p>No validation (or) Limiting the requests and Taking decisions is dangerous.</p><p>First Capture the request in Burp suit</p><p>Send to intruder</p><p>Start attack àSuccess code 200 .</p><p><strong>No Rate Limit Leads to ATO:</strong></p><p>We will send X number of Simultaneous request to the Server and Server will act on Each request.</p><p>Thus, by sending X number of right OTP Token , Password we can Successfully Crack the code</p><p>No Validation or Limiting the requests and taking decisions in dangerous</p><p>First enter the invalid otp</p><p>Then capture the request</p><p>Then send the request to intruder</p><p>Then start the Brute Force attack</p><p>Set the range like 15 to 25 in payload</p><p>Make time delay like 3 seconds for each request .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*BV8jGLYpOAdOhLJkBWAiqA.png" /></figure><p><strong>No-Rate Limiting on OTP Verify leads to ATO:</strong></p><p>We will send X number of Simultaneous requests to the server and server will act on Each request.</p><p>Thus, by sending X number of right OTP Token , Password we can Successfully Crack the code</p><p>No Validation (or) Limiting the requests and taking decisions is dangerous</p><p>Using same otp for verification can lead to bypass no rate limit .</p><p>After doing otp Brute force from the rang which we have in our own .then if it allows after the attack also then it leads to verify limit .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*0--twSSGuOg57-9AMlQyZg.png" /></figure><p><strong>No –Rate Limiting Protection Bypass1:</strong></p><p>We will send X number of Simultaneous requests to the server and server will act on Each request .</p><p>We will do bypass for no rate limit using rate and ip address .</p><p>Thus, by sending X number of right OTP Token , Password we can Successfully Crack the code .</p><p>No Validation (or) Limiting the requests and taking decisions is dangerous .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*HGSzOFCiqC4qPXe3ZUaJpA.png" /></figure><p><strong>No –Rate Limiting Protection Bypass2:</strong></p><p>We will send X number of Simultaneous requests to the server and server will act on Each request.</p><p>We will do bypass for no rate limit using X-forwarded Host .</p><p>Thus, by sending X number of right OTP Token , Password we can Successfully Crack the code .</p><p>No Validation (or) Limiting the requests and taking decisions is dangerous .</p><p>By submitting several requests using legitimate OTP token or password combinations, the attacker can:<br> <br> Brute-force OTPs with success<br> Crack passwords for users<br> Take over the account.<br> Misuse of authentication systems</p><p>Add headers with request</p><p>X-Originating-IP: IP</p><p>X-Forwarded — for: IP</p><p>X-Remote-Add r:IP</p><p>X-client-IP : IP</p><p>X-Host : IP</p><p>X-Forwarded-Host:IP</p><p>Use nano check.py</p><p>Python3 check.py _domain-name.com_</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*i0VOQfoFwhTA7QCU-OZ2Ag.png" /></figure><p><strong>Impacts:</strong></p><p>· Leaves applications Vulnerable to severe abuse</p><p>· Brute force attacks</p><p>· Account takeovers</p><p>· API exploitation</p><p>· Denial of Service attacks(DOS)</p><p>· Data Scraping .</p><p>· Resource depletion .</p><p>· Allowing them to bypass security controls</p><p>· Business Logic Abuse</p><p><strong>Key Vulnerable areas:</strong></p><p>· Login forms &amp; Authentication</p><p>· OTP/Password Reset</p><p>· API end-points</p><p><strong>Mitigations:</strong></p><p>· Implement Middleware/Rate Limiter</p><p>· API Gateway/WAF Configuration</p><p>· Token/leaky Bucket Algorithms</p><p>· Use Caching</p><p>· Avoid Bypass Techniques</p><p>· Address Race Conditions</p><p><strong>Conclusion:</strong></p><p>High Risk of Account Takeover: Automated tools (like Burp Intruder) can test thousands of password variations against a particular user account or cycle through several users using a single password in the absence of rate constraints. <br> Misconfiguration of security: As seen by documented instances on a variety of systems, a lack of rate limitation is frequently recognized as a security misconfiguration and goes against best practices.<br> Resource Exhaustion &amp; Denial-of-Service (DoS): Although this is mostly an authentication problem, the capacity to overload the server with login requests can result in server instability and a Denial-of-Service (DoS) condition that affects platform performance. <br> <br> Bypass Potential: In certain situations, basic rate limiting may be circumvented by altering IP addresses or modifying headers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21c9e58b4316" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CORS-(CROSS ORIGIN RESOURCE SHARING)]]></title>
            <link>https://medium.com/@sandeeppavan2125/cors-cross-origin-resource-sharing-bb54ba284063?source=rss-313e79ee8cdc------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb54ba284063</guid>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[csrf-token]]></category>
            <category><![CDATA[file-upload-vulnerability]]></category>
            <category><![CDATA[cors]]></category>
            <dc:creator><![CDATA[Sandeeppavan]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 10:55:43 GMT</pubDate>
            <atom:updated>2026-03-23T12:14:37.759Z</atom:updated>
            <content:encoded><![CDATA[<p>INTRODUCATION:</p><p>A browser-enforced security feature called CORS (Cross-Origin Resource Sharing) controls how web apps operating in one origin can access and use resources from another origin. The combination of protocol (HTTP/HTTPS), domain, and port defines an origin; any change in these components causes a cross-origin request. <br> <br> Applications are frequently divided among several services in contemporary web development, such as a frontend hosted on one domain and a backend API on another. The Same-Origin Policy (SOP), a crucial security regulation intended to stop rogue websites from getting private information from other websites without authorization, is used by web browsers by default.</p><p>CORS extends this security concept by providing a controlled and accepted way to go around these restrictions when it’s safe to do so. Servers can explicitly specify which external origins are permitted to access their resources by appending specific HTTP headers to their responses. These headers tell the browser whether to approve or reject the request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RmOFUQ2j7BJnoJk5hLFHhw.png" /><figcaption>Basic Idea</figcaption></figure><p>Hi Bounty Hunters !</p><p>Origin: What Is It?<br> <br> Three elements define an origin:<br> <br> Domain (example.com) Protocol (HTTP/HTTPS) Port (80, 443, etc.)<br> <br> It has a distinct origin even if there is only a slight variation:</p><p><a href="https://example.com/">https://example.com</a> ✅ <a href="http://example.com/">http://example.com</a> is the same origin URL. ❌ (separate protocols) <br> <a href="https://api.example.com/">https://api.example.com</a> ❌ (an alternative subdomain) <br> <a href="https://example.com:8080/">https://example.com:8080</a> ❌ (different ports)</p><p>Same-Origin Policy (SOP)</p><p>You must be familiar with the Same-Origin Policy (SOP) before you can comprehend CORS.<br> <br> SOP is a security feature of browsers that:<br> <br> stops websites from sending requests to other origins.<br> <br> Why Does SOP Exist?<br> <br> To defend users against assaults such as:<br> <br> Theft of data and hijacking of sessions<br> Unauthorized access to APIs</p><p>CORS: What is it?<br> <br> The CORS protocol enables servers to:<br> <br> In a regulated manner, loosen the Same-Origin Policy<br> <br> It uses HTTP headers to provide secure communication between several origins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-l2JCtzQLKrFcEwRvZt15w.png" /></figure><p>­­­­­</p><p>How CORS Works:</p><p>Case 1:</p><p>Request is sent by the browser<br> The browser adds an Origin header to a cross-origin request:<br> Source: <a href="https://client.com/">https://client.com</a></p><p>Case 2:</p><p>The server replies with the CORS headers Access-Control-Allow-Origin: <a href="https://client.com/">https://client.com</a></p><p>Case 3:</p><p>The browser verifies if the request is allowed or not. If not, the request is blocked.<br> Crucial: CORS is enforced by the browser, not the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*d9KQhu4dO8IWS3kEVGcuZg.png" /><figcaption>figure</figcaption></figure><p>Exploitation CORS “Origin Reflection”:<br><br>CORS “Origin Reflection” exploitation: “When the server receives the Origin header from the request without properly validating it and then reflects it back in the response, this is known as “CORS origin reflection.” <br> In a secure implementation, the server should only allow specific, dependable origins. However, in this vulnerable scenario, the server dynamically accepts any origin that the client provides and trusts all domains. <br> The server says, “I will accept it from any origin,” to summarize. <br> <br> A Crucial Definition <br> CORS reflection origin exploitation occurs when a server dynamically trusts and returns any origin that the user designates. Attackers can now access private information by circumventing CORS restrictions.<br> <br>If the response shows attacker.com with access control allow origin and access control allow credentials.</p><p>We have win !</p><p>{</p><p>“url”: “https://www.Synack.com/sensitive-details/’,</p><p>“Credentials” : “true”,</p><p>“type”: “reflection type”,</p><p>“origin”: <a href="https://evil.com/">https://evil.com</a></p><p>“Status_code” : 200</p><p>}</p><h4>Exploitation of CORS Prefix Match :</h4><p>A security flaw known as CORS prefix match exploitation arises when a web server validates the Origin header using partial string matching (such prefix-based checks) instead of verifying the exact, trusted domain. Occasionally, the server assesses whether the incoming origin starts with a certain trustworthy value (like <a href="https://trusted.com)/">https://trusted.com)</a> rather than just matching it to a list of allowed origins.<br> <br>Attackers can easily get around CORS restrictions by creating rogue domains that look authentic but are actually under their control because of this faulty validation. Because it starts with <a href="https://trusted.com,/">https://trusted.com,</a> a domain like <a href="https://trusted.com.attacker.com/">https://trusted.com.attacker.com</a> will pass a prefix-based check even though it is not a trusted domain because the response header includes the attacker’s origin as valid.<br> <br> This misconfiguration becomes extremely dangerous when used with Access-Control-Allow-Credentials: true because it allows the attacker to send authenticated requests on behalf of a victim and get sensitive data, such as user information, session details, or API replies. Ultimately, if sensitive endpoints are compromised, abusing CORS prefix matches may result in negative consequences like data leaks, unauthorized access, and even a full account breach.</p><p>{</p><p>“url”: “http://www.hakonindia.org/wp_json”,</p><p>“Credentials”: “true”,</p><p>“type”: “prefix_match”,</p><p>“origin”: ”http://www.hakonindia.org,evil.com”,</p><p>“status_code”: 200</p><p>}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4gsD663vfWGKd7fSuQliLA.png" /></figure><p>Exploitation of CORS Suffix Match:</p><p>A CORS suffix match vulnerability arises when a server verifies the Origin header using ends With () or lazy suffix-based checks instead of strict, exact matching. In conclusion, attackers can easily go around the server’s trust if the domain finishes with a particular string. <br> <br> Consequently, the server includes these attacker-controlled sources in the Access-Control-Allow-Origin response header, mistakenly treating them as legitimate. <br> <br> This misconfiguration presents a serious security concern since attackers can easily create rogue domains that meet the suffix requirements while staying under their control. For example, domains like <a href="https://eviltrusted.com,/">https://eviltrusted.com,</a> <a href="https://attackertrusted.com,/">https://attackertrusted.com,</a> or <a href="https://malicious-trusted.com/">https://malicious-trusted.com</a> all end in trusted.com and would pass such lax validation checks while not being approved or trusted.</p><p>This allows the attacker’s website to use cross-origin requests to obtain confidential data from the vulnerable application. <br> <br> Access-Control-Allow-Credentials: true, which permits authenticated requests using the victim’s session cookies, greatly raises the risk. Cross-origin searches, tricking a logged-in user into visiting a malicious website, and stealing private data like account details, account information, or API responses are all possible under some conditions.</p><p>{</p><p>“url”:”https://ukrainianpople.us/wp_json/’,</p><p>“Credentials”: “true”,</p><p>“type”: “suffix_match”</p><p>“origin” : <a href="https://evilukrainianpeople.us/">https://evilukrainianpeople.us</a>”,</p><p>“status_code”:200</p><p>}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K7q3lmm7BX_RglZlVgztWA.png" /></figure><h4>Impacts of Cors:</h4><p>Sensitive data exposure allows hackers to access user information (account details, profiles, etc.).Meeting Hijacking: Because cookies are sent automatically, user sessions might be abused.</p><p>Account Takeover: Complete access to user accounts in the case that confidential APIs are made public<br> <br> Data exfiltration: Information could be taken and transferred to servers under the control of an attacker.<br> Token or API key leakage: When JWT tokens or API keys are made publicly available<br> <br> Internal API Exposure: External access to secret or internal endpoints<br> Attackers might behave illegally on the user’s behalf.<br> Information Disclosure: Provides system and backend data</p><p>Only trusted origins are permitted (exact match, no prefix/suffix checks). <br> For sensitive APIs, stay away from * (wildcard). <br> Don’t dynamically reflect Origin <br> Make use of the permitted domain whitelist <br> Only enable credentials when necessary (never with *) <br> Limit headers and methods to what is absolutely necessary. <br> Turn off CORS for private and internal APIs.</p><h4>Cors Mitigations :</h4><p>Allow only trusted origins (exact match, no prefix or suffix checks). <br>Avoid using * (wildcard) for sensitive APIs.<br>Do not reflect the origin dynamically.</p><p>Use a whitelist of authorized domains. <br> Enable credentials only if needed (never with *). <br>Restrict methods and headers to the minimum needed. <br> Disable CORS for internal and private APIs.</p><p>Conclusion :</p><p>CORS is a vital component of current web security. It enables regulated access to several origins while safeguarding users from dangerous attacks. Understanding how CORS operates is critical for developers, testers, and security experts alike.<br> <br> If properly setup, it allows for smooth integration of services.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb54ba284063" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[File Upload Vulnerability]]></title>
            <link>https://medium.com/@sandeeppavan2125/file-upload-vulnerability-d786e14c6aee?source=rss-313e79ee8cdc------2</link>
            <guid isPermaLink="false">https://medium.com/p/d786e14c6aee</guid>
            <category><![CDATA[file-upload-vulnub]]></category>
            <dc:creator><![CDATA[Sandeeppavan]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 11:07:45 GMT</pubDate>
            <atom:updated>2026-03-13T09:59:36.993Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>File upload functionality One of the most prevalent features in contemporary web apps is file upload functionality, which is also one of the riskiest when not used properly. I found a high-impact vulnerability during a recent security audit that started with a seemingly innocuous feature: uploading profile images. identifying dubious redirection in order to reduce the dangers related to this vulnerability.A online application that allowed users to upload a profile avatar image had a high-impact vulnerability found during a recent security evaluation. Although this feature first seemed innocuous, inadequate file validation gave attackers the chance to upload malicious programs to the site. At first, it appeared that the upload process had some fundamental safeguards, like the usage of multipart form-data requests and the existence of a CSRF token. After the upload, the program also showed a preview of the image, creating the illusion that the file handling procedure was safe. Nevertheless, additional testing showed that the program did not correctly verify the type and content of the uploaded file.</p><p>In this blog post, I’ll explain how a seemingly straightforward avatar upload feature was used to upload a PHP web shell, which resulted in the server being fully compromised.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPIZn20ursnJZ0K_qXh2bw.png" /><figcaption>Unrestricted File Upload Attack Flow</figcaption></figure><p>Hi Bounty Hunters,</p><p>I recently found File upload Vulnerability issue so let’s discuss about it and get started.</p><p>File upload functionality is a very common feature in modern web applications. Many platforms allow users to upload files such as profile images, documents, or attachments. However, when this feature is not implemented securely, it can become a critical attack vector.</p><p>In this case, the application allowed users to upload a <strong>profile avatar image</strong> through the endpoint:</p><h3>Target Functionality</h3><p>The application provides a feature that allows users to upload a <strong>profile avatar</strong> through their account settings. This functionality is intended to enable users to personalize their profiles by uploading an image.</p><p>The request uses <strong>multipart/form-data</strong>, which is a standard method for uploading files through web forms. During the upload process, the application accepts image files and stores them on the server for later display on the user’s profile.</p><p>The application allowed users to:</p><ul><li>Upload profile avatar via:<br> POST /my-account/avatar</li><li>Accepted image files</li><li>Stored files under:</li><li>The upload appeared secure at first:</li><li>Multipart form-data used</li><li>CSRF token present</li><li>Image preview after upload</li></ul><p>However, the key observation was: <em>Uploaded files were stored inside a </em><strong><em>web-ccessible directory</em></strong><em>.</em></p><p>This immediately made the feature high risk.</p><figure><img alt="Avatar Upload Abuse for PHP Web Shell Deployment" src="https://cdn-images-1.medium.com/max/709/1*6aBwFZKxeGvNibP_GAZjTg.png" /></figure><h3>Observed Security Controls</h3><p>At first glance, the upload mechanism appeared to implement several security measures, suggesting that the functionality was designed with some level of protection.</p><p><strong>Observed controls included:</strong></p><ul><li>The usual file upload format, multipart/form-data, was utilized in the file upload request.<br>The request contained a CSRF token, signifying defense against Cross-Site Request Forgery attacks.<br>Following upload, the program produced an image preview to verify that the file had been successfully saved and linked to the user profile. Malicious files were eventually able to be uploaded and executed because the file upload process lacked enough server-side validation and security measures, despite these seeming safeguards.</li></ul><h3>Testing File Type Validation</h3><p>To understand how the application validates uploaded files, I began testing the file upload functionality by intercepting the avatar upload request using a web proxy.</p><p><strong>I intercepted the request using Burp Suite. Original Request</strong></p><p>POST /my-account/avatar<br>Content-Type: multipart/form-data<br>filename=” avatar. jpg”</p><p>I modified it to upload a PHP file:</p><p>filename=”shell.php”<br>Content-Type: application/x-php</p><p>Result: Upload successful Server response confirmed:</p><h3>Accessing the Uploaded File</h3><p>After successfully uploading the malicious file to the server, the next step was to verify whether the file could be accessed and executed through the web application. The uploaded file was stored in a publicly accessible directory used by the application to store user avatars.</p><p>To determine the level of privileges under which the commands were being executed, the following command was issued</p><p><strong>Next, I navigated to:</strong></p><p>/files/avatars/shell.php</p><p>Then executed a command:</p><p>/files/avatars/shell.php?cmd=ls</p><p>Response showed system output.</p><p>To confirm execution level: /files/avatars/shell.php?cmd=id</p><p>Result: uid=0(root) gid=0(root)</p><p>This confirmed Remote Code Execution.</p><h3>Root Cause Analysis</h3><p><strong>The vulnerability existed due to multiple design failures:</strong></p><p>Issue Impact No extension validation PHP file uploaded Files stored in web root Executed by server No content inspection Arbitrary code allowedNo filename sanitization Path traversal possible No execution restrictions Full command execution</p><p>Exploitation Impact</p><p><strong>This vulnerability allows:</strong></p><p><strong>Remote Code Execution</strong></p><p>Attacker can execute any system command:</p><p>whoami<br>cat /etc/passwd<br>ls -la<br>2. Server Takeover</p><p>Possible actions: Upload reverse shell Modify application files Access database credentials Pivot inside internal network</p><h3>Server Takeover</h3><p>Once remote code execution is achieved, attackers can perform various malicious actions, including:</p><ul><li>Uploading a <strong>reverse shell</strong> to maintain remote access</li><li>Modifying or replacing <strong>application source code</strong></li><li>Extracting <strong>database credentials from configuration files</strong></li><li>Accessing sensitive user data stored in databases</li><li>Pivoting into the <strong>internal network</strong> to compromise additional systems</li><li>Installing backdoors for persistent access</li></ul><p><strong>Full Application Compromise</strong></p><p>If running with high privileges (as seen: root): Complete system control Data theft Persistence installation</p><p>If the application is running with <strong>high privileges (e.g., root)</strong>, an attacker may gain the same level of access after successfully exploiting the vulnerability.</p><p><strong>Impact</strong></p><ul><li>carrying out random system commands</li><li>Changing or removing program files</li><li>Installing backdoors or harmful software</li><li>command of the complete application environment</li></ul><figure><img alt="A strong final blog title like a real bug bounty case study" src="https://cdn-images-1.medium.com/max/1024/1*O2F7WDKYovxLZffc4UEigg.png" /><figcaption>A strong final blog title like a real bug bounty case study</figcaption></figure><p>Successful exploitation of this vulnerability may lead to full application<br>compromise. If the application runs with elevated privileges (e.g., root),<br>an attacker could execute arbitrary commands on the server, resulting in<br>complete system control.</p><p><strong>Secure Fix Recommendations:</strong></p><ul><li>Allow only safe file types (e.g., JPG, PNG) using strict extension and MIME validation, and block executable files like .php, .jsp, etc.</li><li>Store uploaded files outside the web root and serve them via a controlled endpoint or force download to prevent execution.</li><li>Rename files and sanitize filenames (remove path traversal patterns) and disable script execution in the upload directory.</li><li>Implement Strict File Type Validation The application should validate uploaded files using a <strong>whitelist approach</strong> for both file extensions and MIME types.</li></ul><p><strong>References</strong>:</p><p><a href="https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html">File Upload — OWASP Cheat Sheet Series</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d786e14c6aee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>