<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Suraj Kumar H M</title>
    <description>The latest articles on DEV Community by Suraj Kumar H M (@surajkumarhm).</description>
    <link>https://dev.to/surajkumarhm</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3962269%2F035b529d-5283-4688-8b6e-3808a4059cb5.png</url>
      <title>DEV Community: Suraj Kumar H M</title>
      <link>https://dev.to/surajkumarhm</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/surajkumarhm"/>
    <language>en</language>
    <item>
      <title>I Changed One Number… and Got Access to Citizens’ ID and Address Proofs</title>
      <dc:creator>Suraj Kumar H M</dc:creator>
      <pubDate>Mon, 01 Jun 2026 08:10:05 +0000</pubDate>
      <link>https://dev.to/surajkumarhm/i-changed-one-number-and-got-access-to-citizens-id-and-address-proofs-2-min-read-1544</link>
      <guid>https://dev.to/surajkumarhm/i-changed-one-number-and-got-access-to-citizens-id-and-address-proofs-2-min-read-1544</guid>
      <description>&lt;p&gt;&lt;em&gt;How a simple parameter manipulation exposed highly sensitive government records&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  It Started With a Simple Request
&lt;/h3&gt;

&lt;p&gt;While exploring a state government web application, I came across a feature where users could apply for a service and upload supporting documents.&lt;br&gt;
Pretty standard flow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Submit application&lt;/li&gt;
&lt;li&gt;Upload ID proof&lt;/li&gt;
&lt;li&gt;Upload address proof&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Later, users could retrieve their documents through the portal.&lt;/p&gt;

&lt;p&gt;Nothing unusual… until I looked at the request behind it.&lt;/p&gt;
&lt;h3&gt;
  
  
  The API That Did Too Much
&lt;/h3&gt;

&lt;p&gt;The application fetched documents using a request like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/api/getDocument?id&lt;span class="o"&gt;=&lt;/span&gt;10234
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At first, it worked as expected — I could access &lt;strong&gt;my own uploaded documents&lt;/strong&gt;.&lt;br&gt;
But something felt off.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;id&lt;/code&gt; parameter looked:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Numeric&lt;/li&gt;
&lt;li&gt;Sequential&lt;/li&gt;
&lt;li&gt;Predictable&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And from experience, that's always worth testing.&lt;/p&gt;
&lt;h3&gt;
  
  
  The One Change
&lt;/h3&gt;

&lt;p&gt;Out of curiosity, I modified the request:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/api/getDocument?id&lt;span class="o"&gt;=&lt;/span&gt;10235
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sent it.&lt;/p&gt;

&lt;p&gt;And waited.&lt;/p&gt;

&lt;h3&gt;
  
  
  What I Saw Next Was Alarming
&lt;/h3&gt;

&lt;p&gt;The server responded successfully.&lt;/p&gt;

&lt;p&gt;But the document wasn't mine.&lt;/p&gt;

&lt;p&gt;It belonged to someone else.&lt;/p&gt;

&lt;h3&gt;
  
  
  And It Got Worse
&lt;/h3&gt;

&lt;p&gt;I tested a few more IDs (carefully, without abusing the system).&lt;/p&gt;

&lt;p&gt;Each time, I could access documents uploaded by different users.&lt;/p&gt;

&lt;p&gt;These weren't just random files.&lt;/p&gt;

&lt;p&gt;They included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Government-issued &lt;strong&gt;ID proofs&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Address verification documents&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Supporting files submitted for official services&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Highly sensitive. Personally identifiable. Real.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Real Problem
&lt;/h3&gt;

&lt;p&gt;At this point, the issue was clear:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;The application had &lt;strong&gt;no proper authorization checks&lt;/strong&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It didn't verify:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Who was making the request&lt;/li&gt;
&lt;li&gt;Whether the document belonged to that user&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead, it followed a dangerous logic:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"If the ID exists, return the file."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  The Vulnerability: IDOR
&lt;/h3&gt;

&lt;p&gt;This is a classic case of &lt;strong&gt;Insecure Direct Object Reference (IDOR)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Internal object IDs are exposed&lt;/li&gt;
&lt;li&gt;Access control is missing&lt;/li&gt;
&lt;li&gt;Attackers can retrieve unauthorized data&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why This Was Serious
&lt;/h3&gt;

&lt;p&gt;This wasn't just a minor bug.&lt;/p&gt;

&lt;p&gt;The impact included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Exposure of &lt;strong&gt;sensitive identity documents&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Risk of &lt;strong&gt;identity theft and fraud&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Potential for &lt;strong&gt;mass data scraping&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Violation of citizen privacy&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the scary part?&lt;/p&gt;

&lt;p&gt;👉 No advanced skills required&lt;br&gt;
 👉 No authentication bypass needed&lt;br&gt;
 👉 Just changing a number&lt;/p&gt;

&lt;h3&gt;
  
  
  Responsible Disclosure
&lt;/h3&gt;

&lt;p&gt;Once I confirmed the issue:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I documented a clear Proof of Concept&lt;/li&gt;
&lt;li&gt;Included reproducible steps&lt;/li&gt;
&lt;li&gt;Highlighted the severity and real-world impact&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The issue was responsibly reported to the concerned authority.&lt;/p&gt;

&lt;p&gt;It was acknowledged and fixed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Recognition
&lt;/h3&gt;

&lt;p&gt;As a result of this report:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The vulnerability was patched&lt;/li&gt;
&lt;li&gt;I was recognized by &lt;strong&gt;CERT-In Hall of Fame&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Key Takeaway
&lt;/h3&gt;

&lt;p&gt;This experience reinforced a powerful lesson:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;The most dangerous vulnerabilities are often the simplest.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;One parameter.&lt;br&gt;
One small change.&lt;br&gt;
Huge impact.&lt;/p&gt;

&lt;h3&gt;
  
  
  Final Thoughts
&lt;/h3&gt;

&lt;p&gt;If you're into security or bug hunting:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Always inspect API requests&lt;/li&gt;
&lt;li&gt;Never trust exposed IDs&lt;/li&gt;
&lt;li&gt;Follow your curiosity&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because sometimes…&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Changing one number is all it takes.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;• Portfolio: &lt;a href="https://surajkumarhm.vercel.app" rel="noopener noreferrer"&gt;https://surajkumarhm.vercel.app&lt;/a&gt;&lt;br&gt;
• ORCID Research Profile: &lt;a href="https://orcid.org/0009-0004-2990-8300" rel="noopener noreferrer"&gt;https://orcid.org/0009-0004-2990-8300&lt;/a&gt;&lt;br&gt;
• LinkedIn: &lt;a href="https://www.linkedin.com/in/surajkumarhm" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/surajkumarhm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's connect and contribute to a safer and more secure digital ecosystem.&lt;/p&gt;

</description>
      <category>bugbounty</category>
      <category>security</category>
      <category>cybersecurity</category>
      <category>backend</category>
    </item>
  </channel>
</rss>
