<?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: Mughunthen</title>
    <description>The latest articles on DEV Community by Mughunthen (@mughunthen_3fb2a217c290e6).</description>
    <link>https://dev.to/mughunthen_3fb2a217c290e6</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4135002%2F6f1fa561-9e46-4b0f-b6e8-84ff898c46ce.jpg</url>
      <title>DEV Community: Mughunthen</title>
      <link>https://dev.to/mughunthen_3fb2a217c290e6</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mughunthen_3fb2a217c290e6"/>
    <language>en</language>
    <item>
      <title>I Found Open Directory Listing Exposing .env, .git, and Database Backups in mail.adkcompany.com</title>
      <dc:creator>Mughunthen</dc:creator>
      <pubDate>Mon, 21 Sep 2026 08:09:28 +0000</pubDate>
      <link>https://dev.to/mughunthen_3fb2a217c290e6/i-found-open-directory-listing-exposing-env-git-and-database-backups-in-mailadkcompanycom-50j5</link>
      <guid>https://dev.to/mughunthen_3fb2a217c290e6/i-found-open-directory-listing-exposing-env-git-and-database-backups-in-mailadkcompanycom-50j5</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6286isz1hxgr2l6gcf0p.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6286isz1hxgr2l6gcf0p.jpg" alt=" " width="720" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How Subfinder + Gobuster Led Me to Sensitive Files — Responsible Disclosure&lt;br&gt;
Author: Mughunthen | Security Researcher — Neyveli &lt;/p&gt;

&lt;p&gt;Disclaimer&lt;br&gt;
This vulnerability was found on mail.adkcompany.com. The issue was responsibly disclosed to CERT-IN and ADK Company. All sensitive file contents are NOT disclosed or exposed. This writeup is strictly for educational purposes following complete redaction.&lt;/p&gt;

&lt;p&gt;Introduction&lt;br&gt;
Vanakkam! I'm Mughunthen. During my recon on adkcompany.com, I found an interesting subdomain mail.adkcompany.com that had directory listing enabled, exposing critical files like .env, .git, composer.json, and backup archives.&lt;/p&gt;

&lt;p&gt;Recon — Subdomain Enumeration&lt;br&gt;
I started with Subfinder:&lt;/p&gt;

&lt;p&gt;subfinder -d adkcompany.com -o subdomains.txt&lt;/p&gt;

&lt;p&gt;Result: Found 26 subdomains including:&lt;/p&gt;

&lt;p&gt;mail.adkcompany.com&lt;/p&gt;

&lt;p&gt;shop.gannamart.com&lt;/p&gt;

&lt;p&gt;adkpharma.adkcompany.com&lt;/p&gt;

&lt;p&gt;adkgroup.net&lt;/p&gt;

&lt;p&gt;My focus shifted immediately to mail.adkcompany.com because mail server endpoints often suffer from web server misconfigurations.&lt;/p&gt;

&lt;p&gt;Directory Bruteforcing with Gobuster&lt;br&gt;
Bash&lt;br&gt;
gobuster dir -u &lt;a href="https://mail.adkcompany.com/" rel="noopener noreferrer"&gt;https://mail.adkcompany.com/&lt;/a&gt; -w /usr/share/wordlists/dirb/common.txt&lt;br&gt;
Findings:&lt;/p&gt;

&lt;p&gt;[Status: 200] /database/&lt;/p&gt;

&lt;p&gt;[Status: 200] /public/&lt;/p&gt;

&lt;p&gt;[Status: 200] /vendor/&lt;/p&gt;

&lt;p&gt;[Status: 301] /.git/&lt;/p&gt;

&lt;p&gt;[Status: 403] /.env&lt;/p&gt;

&lt;p&gt;Multiple sensitive directories returned HTTP 200/301 status codes, which was an immediate red flag.&lt;/p&gt;

&lt;p&gt;The Main Bug — Index of /&lt;br&gt;
When navigating to [&lt;a href="https://mail.adkcompany.com/" rel="noopener noreferrer"&gt;https://mail.adkcompany.com/&lt;/a&gt;] the server returned a standard Index of / directory listing page:&lt;/p&gt;

&lt;p&gt;Index of /&lt;/p&gt;

&lt;p&gt;Name&lt;br&gt;
adk-general-trading.xml&lt;br&gt;
adkcompany.zip (38M)&lt;br&gt;
artisan&lt;br&gt;
bootstrap/&lt;br&gt;
cgi-bin/&lt;br&gt;
composer.json&lt;br&gt;
config/&lt;br&gt;
database/&lt;br&gt;
...&lt;br&gt;
.git/HEAD&lt;br&gt;
.htpasswd&lt;/p&gt;

&lt;p&gt;This is an Open Directory Listing vulnerability. The server has Options +Indexes explicitly enabled.&lt;/p&gt;

&lt;p&gt;An attacker could potentially access:&lt;/p&gt;

&lt;p&gt;adkcompany.zip — Full source code backup (38MB)&lt;/p&gt;

&lt;p&gt;.git/ — Full Git repository history and commit logs&lt;/p&gt;

&lt;p&gt;composer.json / composer.lock — Application dependency details&lt;/p&gt;

&lt;p&gt;database/ — Database schema/backup directories&lt;/p&gt;

&lt;p&gt;Impact&lt;br&gt;
Source Code Disclosure: The 38MB zip file leaks core application logic.&lt;/p&gt;

&lt;p&gt;Secrets Leak: Git history and configuration endpoints can expose database credentials, SMTP parameters, and API keys.&lt;/p&gt;

&lt;p&gt;OWASP Classification: A01:2021 — Broken Access Control.&lt;/p&gt;

&lt;p&gt;Exposure of administrative credentials could allow Remote Code Execution (RCE).&lt;/p&gt;

&lt;p&gt;Steps to Reproduce (Safe)&lt;br&gt;
Navigate to [&lt;a href="https://mail.adkcompany.com/" rel="noopener noreferrer"&gt;https://mail.adkcompany.com/&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;Observe the rendered Index of / page.&lt;/p&gt;

&lt;p&gt;Confirm directory listing is enabled and sensitive path structures are visible.&lt;/p&gt;

&lt;p&gt;Stop enumeration and proceed directly to reporting without downloading sensitive assets.&lt;/p&gt;

&lt;p&gt;For the ADK Company Security &amp;amp; Infrastructure Team:&lt;/p&gt;

&lt;p&gt;Disable Directory Listing: In Apache, set Options -Indexes in your main configuration or .htaccess file.&lt;/p&gt;

&lt;p&gt;Remove Archival Backups: Remove public archives like adkcompany.zip from webroot.&lt;/p&gt;

&lt;p&gt;Restrict Access Rules: Block .git, .env, and dependency files at the web server level (Nginx/Apache).&lt;/p&gt;

&lt;p&gt;Isolate Sensitive Folders: Move database/ and core application code outside the public HTTP webroot.&lt;/p&gt;

&lt;p&gt;Aug 17, 2026: Vulnerability identified during recon.&lt;/p&gt;

&lt;p&gt;Aug 18, 2026: Reported Maldives government help desk &lt;/p&gt;

&lt;p&gt;Sep 21, 2026: Published sanitized educational writeup after redaction.&lt;/p&gt;

&lt;p&gt;About Me&lt;br&gt;
Mughunthen — Bug Bounty Hunter from Neyveli. Passionate about reconnaissance, attack surface mapping, and directory enumeration.&lt;/p&gt;

&lt;p&gt;Follow me on Medium for more technical bug bounty writeups and CERT-IN disclosure stories!&lt;/p&gt;

</description>
      <category>security</category>
    </item>
    <item>
      <title>I Found an OTP Bypass in The Kari Kadai App That Leaks User Tokens</title>
      <dc:creator>Mughunthen</dc:creator>
      <pubDate>Mon, 21 Sep 2026 06:58:31 +0000</pubDate>
      <link>https://dev.to/mughunthen_3fb2a217c290e6/i-found-an-otp-bypass-in-the-kari-kadai-app-that-leaks-user-tokens-4jf2</link>
      <guid>https://dev.to/mughunthen_3fb2a217c290e6/i-found-an-otp-bypass-in-the-kari-kadai-app-that-leaks-user-tokens-4jf2</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5ah7h4z3d1zjob792ymg.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5ah7h4z3d1zjob792ymg.jpg" alt=" " width="720" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How a simple login API was returning auth tokens before OTP verification — and how I reported it to CERT-IN.&lt;br&gt;
By Mughunthen — Security Researcher | Neyveli &lt;/p&gt;

&lt;p&gt;I am Mughunthen, a security researcher from Neyveli.&lt;/p&gt;

&lt;p&gt;While casually testing a local food delivery app — The Kari Kadai — for security vulnerabilities, I stumbled upon a severe flaw in their authentication flow. I never expected a simple login request to leak sensitive session tokens outright.&lt;/p&gt;

&lt;p&gt;The Vulnerability&lt;br&gt;
Found by: Mughunthen&lt;br&gt;
Endpoint: POST /user/login&lt;/p&gt;

&lt;p&gt;Vulnerable Response&lt;br&gt;
{&lt;br&gt;
  "status": "SUCCESS",&lt;br&gt;
  "message": "OTP has been sent to your mobile",&lt;br&gt;
  "data": {&lt;br&gt;
    "id": "[REDACTED]",&lt;br&gt;
    "user_type": "USER",&lt;br&gt;
    "mobile_number": "[REDACTED]",&lt;br&gt;
    "auth_token": "[REDACTED]",&lt;br&gt;
    "activation_token": "[REDACTED]"&lt;br&gt;
  }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;The Issue: The server generates and returns the sensitive auth_token immediately in the initial request response — before the user inputs or verifies the OTP. Anyone with a targeted user's mobile number can intercept this response and completely bypass the OTP verification mechanism.&lt;/p&gt;

&lt;p&gt;Impact &amp;amp; Mitigation&lt;br&gt;
Impact&lt;br&gt;
Account Takeover (ATO): Attackers can gain full access to any user account just by knowing their phone number.&lt;/p&gt;

&lt;p&gt;PII Leakage: Exposed tokens grant access to user profile details, order history, and saved addresses.&lt;/p&gt;

&lt;p&gt;Broken Authentication: Invalidates the security purpose of 2FA/OTP.&lt;/p&gt;

&lt;p&gt;Recommended Fix&lt;br&gt;
Generate and issue the auth_token only after the user successfully validates the OTP on a separate verification endpoint (/user/verify-otp).&lt;/p&gt;

&lt;p&gt;Status: Reported to CERT-In / Pending Fix&lt;/p&gt;

&lt;p&gt;About Me&lt;br&gt;
Mughunthen — Bug Bounty Hunter | CERT-IN Reporter&lt;/p&gt;

</description>
      <category>security</category>
    </item>
    <item>
      <title>How I Found an Unauthenticated Admin Panel Leading to Potential RCE at Sun TV Network HRMS (CERT-In Acknowledged)</title>
      <dc:creator>Mughunthen</dc:creator>
      <pubDate>Mon, 21 Sep 2026 06:28:33 +0000</pubDate>
      <link>https://dev.to/mughunthen_3fb2a217c290e6/how-i-found-an-unauthenticated-admin-panel-leading-to-potential-rce-at-sun-tv-network-hrms-cert-in-269o</link>
      <guid>https://dev.to/mughunthen_3fb2a217c290e6/how-i-found-an-unauthenticated-admin-panel-leading-to-potential-rce-at-sun-tv-network-hrms-cert-in-269o</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj3xvidd8mm1c8b7gd0jb.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj3xvidd8mm1c8b7gd0jb.jpg" alt=" " width="720" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Introduction&lt;br&gt;
Hello security community! I am Mughunthen K, an independent security researcher from Neyveli &lt;/p&gt;

&lt;p&gt;This writeup details a critical security vulnerability—an Unauthenticated Admin Panel in Sun TV Network's HRMS portal that posed a risk of Remote Code Execution (RCE).&lt;/p&gt;

&lt;p&gt;Reconnaissance &amp;amp; Subdomain Discovery&lt;br&gt;
Target: [&lt;a href="https://hrms.sunnetwork.in/" rel="noopener noreferrer"&gt;https://hrms.sunnetwork.in/&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;While conducting surface reconnaissance on sunnetwork.in, I identified hrms.sunnetwork.in, an internal Human Resource Management System portal.&lt;/p&gt;

&lt;p&gt;Step 1: Directory Fuzzing&lt;br&gt;
To discover unlinked or hidden paths, I ran directory brute-forcing:&lt;/p&gt;

&lt;p&gt;Bash&lt;br&gt;
gobuster dir -u &lt;a href="https://hrms.sunnetwork.in/" rel="noopener noreferrer"&gt;https://hrms.sunnetwork.in/&lt;/a&gt; -w directory-list-2.3-medium.txt -k&lt;/p&gt;

&lt;p&gt;Results:&lt;/p&gt;

&lt;p&gt;/Admin.aspx (Status: 200) [Size: 34671]&lt;br&gt;
/ADMIN.ASPX (Status: 200)&lt;br&gt;
/access.aspx (Status: 200)&lt;br&gt;
/billing.aspx (Status: 200)&lt;br&gt;
/app/ (Status: 301)&lt;br&gt;
/scripts/ (Status: 301)&lt;br&gt;
The endpoint /Admin.aspx returned a 200 OK status code instead of a expected 302 Redirect to a login interface.&lt;/p&gt;

&lt;p&gt;Technical Details &amp;amp; Impact&lt;br&gt;
Step 2: Accessing the Panel&lt;br&gt;
Navigating directly to &lt;a href="https://hrms.sunnetwork.in/Admin.aspx" rel="noopener noreferrer"&gt;https://hrms.sunnetwork.in/Admin.aspx&lt;/a&gt; loaded an administrative panel with no authentication challenge.&lt;/p&gt;

&lt;p&gt;Exposed Interface Capabilities:&lt;/p&gt;

&lt;p&gt;Interface Title: Administrative / Media Upload Manager&lt;/p&gt;

&lt;p&gt;Functional Input Fields:&lt;/p&gt;

&lt;p&gt;Title field&lt;/p&gt;

&lt;p&gt;Thumbnail File Upload (Choose File)&lt;/p&gt;

&lt;p&gt;URL / File Attachment Upload (Choose File)&lt;/p&gt;

&lt;p&gt;Video Player / Category dropdown&lt;/p&gt;

&lt;p&gt;Submission Handler&lt;/p&gt;

&lt;p&gt;The interface exposed direct file-upload functionality publicly without verifying active session tokens or user roles and files like .aspx are uploaded directly into a publicly or internally accessible web server path (flv/), an attacker can upload a web shell or malicious script. Once navigated to, the server processes the file, enabling remote code execution on the backend IIS server under the service account context.&lt;/p&gt;

&lt;p&gt;Step 3: Attack Scenario (Potential RCE)&lt;br&gt;
Without authentication restrictions, the panel exposed the application to potential arbitrary file uploads:&lt;/p&gt;

&lt;p&gt;Unrestricted Upload: An attacker could attempt to upload a custom ASPX web shell (e.g., shell.aspx).&lt;/p&gt;

&lt;p&gt;Execution Path: If file extension validation or MIME-type filtering was missing, the file would be stored in a web-accessible directory such as /uploads/ or /app/.&lt;/p&gt;

&lt;p&gt;Remote Code Execution: Accessing the uploaded file path ([&lt;a href="https://hrms.sunnetwork.in/uploads/shell.aspx" rel="noopener noreferrer"&gt;https://hrms.sunnetwork.in/uploads/shell.aspx&lt;/a&gt;] could execute server-side code under the context of the web application user.&lt;/p&gt;

&lt;p&gt;Note on Responsible Disclosure: No arbitrary code execution files or malicious payloads were uploaded during this research. Upon confirming the exposure of the functional endpoint, testing was halted immediately to adhere to ethical testing guidelines.&lt;/p&gt;

&lt;p&gt;Impact Assessment&lt;br&gt;
Severity: Critical (CVSS v3.1: 9.8)&lt;/p&gt;

&lt;p&gt;Access Vector: Network (Unauthenticated)&lt;/p&gt;

&lt;p&gt;Impact Areas: Confidentiality, Integrity, and Availability&lt;/p&gt;

&lt;p&gt;Risk Context: Threat actors could compromise internal HR data or deface external web resources.&lt;/p&gt;

&lt;p&gt;Remediation &amp;amp; Defensive Recommendations&lt;br&gt;
Enforce Authentication Middleware: Verify active administrative session state prior to processing routes for /Admin.aspx. If non-authenticated, redirect to the centralized authentication route.&lt;/p&gt;

&lt;p&gt;Strict File Extension Whitelisting: Validate uploaded files against a strict whitelist (e.g., .jpg, .png, .mp4). Explicitly reject executable server-side extensions (.aspx, .asp, .php, .exe).&lt;/p&gt;

&lt;p&gt;Storage Isolation: Store uploaded media outside the web root directory or on an isolated static content bucket (e.g., AWS S3) with execution permissions disabled (No-Exec).&lt;/p&gt;

&lt;p&gt;Implement Role-Based Access Control (RBAC): Restrict access control based on user privileges.&lt;/p&gt;

&lt;p&gt;Code Fix Example (C# ASP.NET)&lt;/p&gt;

&lt;p&gt;protected void Page_Load(object sender, EventArgs e)&lt;br&gt;
{&lt;br&gt;
    if (Session["UserRole"] == null || Session["UserRole"].ToString() != "Administrator")&lt;br&gt;
    {&lt;br&gt;
        Response.Redirect("~/Login.aspx", true);&lt;br&gt;
    }&lt;br&gt;
}&lt;br&gt;
Disclosure Timeline&lt;br&gt;
August 27, 2026: Vulnerability identified during routine research.&lt;/p&gt;

&lt;p&gt;August 27, 2026: Submitted detailed report and PoC to CERT-In.&lt;/p&gt;

&lt;p&gt;August 29, 2026: CERT-In acknowledged the vulnerability and notified the Sun TV Network security team.&lt;/p&gt;

&lt;p&gt;August 30, 2026: Remediation deployed by Sun TV Network team (Access to /Admin.aspx now correctly enforces authentication).&lt;/p&gt;

&lt;p&gt;Key Takeaways for Security Researchers&lt;br&gt;
Always check case-sensitivity variations during endpoint discovery (/Admin.aspx vs /admin.aspx).&lt;/p&gt;

&lt;p&gt;IIS / Windows environments treat URLs as case-insensitive, but underlying authentication filters or custom routing rules occasionally fail to normalize uppercase variants.&lt;/p&gt;

&lt;p&gt;Written by Mughunthen K | Independent Cybersecurity Researcher&lt;/p&gt;

</description>
      <category>security</category>
    </item>
  </channel>
</rss>
