<?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 Gertnsaku on Medium]]></title>
        <description><![CDATA[Stories by Gertnsaku on Medium]]></description>
        <link>https://medium.com/@gertnsaku?source=rss-f02fd6e81b8a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Nw2BcBSgEhOv_huH</url>
            <title>Stories by Gertnsaku on Medium</title>
            <link>https://medium.com/@gertnsaku?source=rss-f02fd6e81b8a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:14:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gertnsaku/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[Comprehensive Security Assessment of vAPI Aligned with the OWASP API Security Top 10]]></title>
            <link>https://medium.com/@gertnsaku/comprehensive-security-assessment-of-vapi-aligned-with-the-owasp-api-security-top-10-15c387a67233?source=rss-f02fd6e81b8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/15c387a67233</guid>
            <category><![CDATA[vulnerable-app]]></category>
            <category><![CDATA[owasp-top-10]]></category>
            <category><![CDATA[api-sec]]></category>
            <category><![CDATA[vapi]]></category>
            <category><![CDATA[api-security]]></category>
            <dc:creator><![CDATA[Gertnsaku]]></dc:creator>
            <pubDate>Mon, 30 Mar 2026 11:17:22 GMT</pubDate>
            <atom:updated>2026-03-30T11:29:11.887Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Su-VP41rh0jtGqenvmo4Ow.png" /></figure><p>APIs are a critical component of modern applications, enabling communication between services, mobile platforms, and cloud environments. However, insecure APIs remain one of the most exploited attack surfaces in contemporary systems.</p><p>As part of the API Penetration Testing curriculum under the<a href="https://cybersafefoundation.org/our-programs/api-security-training-program/"> CyberGirls APISEC Fellowship</a>, I conducted a structured security assessment of the vAPI application, evaluating vulnerabilities across <strong>API1</strong> through <strong>API10</strong> of the OWASP API Security Top 10.</p><p>The objective of this assessment was to simulate real-world attacker behavior while applying a systematic testing methodology to identify weaknesses in authentication, authorization, input validation, configuration management, asset management, and monitoring mechanisms.</p><p><strong>High-Risk Findings:</strong></p><ul><li>Broken Object-Level Authorization (BOLA)</li><li>Broken Authentication</li><li>Excessive Data Exposure</li><li>Lack of Resources &amp; Rate Limiting</li><li>Broken Function Level Authorization</li><li>Mass Assignment</li><li>Security Misconfiguration (CORS)</li><li>SQL Injection</li><li>Improper Asset Management</li><li>Lack of Logging &amp; Monitoring</li></ul><p>These vulnerabilities could lead to data breaches, privilege escalation, database compromise, and prolonged attacker persistence.</p><p>This article documents the <strong>testing methodology, exploitation process, security implications, and remediation recommendations</strong> identified during the assessment.</p><h3>Lab Setup</h3><p><strong>Environment:</strong> Kali Linux with Docker</p><pre>mkdir lab<br>cd lab<br>git clone https://github.com/roottusk/vapi.git<br>cd vapi<br>sudo docker compose up<br>docker compose ps  # Verify containers</pre><p>Access the application at: <a href="http://localhost:8000/vapi">http://localhost:8000/vapi</a></p><p><strong>Postman Setup:</strong><br> Imported the following:</p><ul><li>vAPI.postman_collection.json</li><li>vAPI_ENV.postman_environment.json</li></ul><p>Additional tools: <strong>Burp Suite, FFUF, SQLMap</strong></p><h3>Findings: OWASP API Top 10</h3><p>The following are the key findings from the security assessment of the vAPI application. Each endpoint was systematically tested against common API security risks as defined in the OWASP API Security Top 10. Supporting screenshots were captured to validate each vulnerability.</p><h4>1. API1: Broken Object-Level Authorization (BOLA)</h4><p>Broken Object-Level Authorization (BOLA) happens when an API allows users to access or modify objects they are not supposed to, typically by changing an identifier in a request. This happens due to missing or insufficient authorization checks.</p><p>To test for BOLA, I created a new user via the /vapi/api1/user endpoint as shown in the screenshot below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*blcCKPE0ZgG4uMS4Kpblcw.png" /></figure><p>With this account, I verified that I could successfully retrieve my own user details through the GET /vapi/api1/user/{api1_id} endpoint, which returned information such as username, name, course, and user ID.</p><p>Next, to check for BOLA, I attempted to access data for other users by modifying the api1_id parameter in the request to determine whether the API properly enforced authorization checks on user-specific resources.</p><p>Using burpusite, I intercepted my original request and modified the api1_id parameter to attempt access to other users’ accounts. Using the same account, I was able to retrieve data for users I was not authorized to access, including accounts with IDs 1 and 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WUozDGUSMX8mOddYEM_fdw.png" /><figcaption>Figure 2: Unauthorized access to user Id 1 data</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vL4V6vCvCBdM6NQfktNsgw.png" /><figcaption>Figure 3:Unauthorized access to user id 2 data</figcaption></figure><p><strong>Flag for this task: flag{api1_d0cd9be2324cc237235b}</strong></p><p><strong>Security Implications:</strong><br> The lack of proper object-level authorization allows any authenticated user to access or potentially modify data belonging to other users.</p><h4><strong>2. API2 — Broken Authentication</strong></h4><p>Broken Authentication occurs when an API improperly validates user credentials, allowing attackers to compromise accounts through techniques such as credential stuffing or brute force attacks.</p><p>To test for Broken Authentication, I used a credential list provided within the lab environment. The file was located at: <em>~/lab/vapi/Resources/API2_CredentialStuffing/creds.csv</em>. This file contained a list of comma-separated email and password combinations. I copied the creds.csv file into my working vAPI directory to use it during testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*FfD13tmgShdtxePmbDRx1A.png" /><figcaption>Figure 4: Credential list within lab environment</figcaption></figure><p><strong><em>Step 1: Intercepting the Login Request</em></strong></p><p>To begin testing API2 for broken authentication, I first examined the <strong>User Login</strong> request under the API2 section in the imported Postman collection.</p><p>Since no valid credentials were available, I entered random values in the email and password fields (test@gmail.com and 1234) and sent the request to burp suite where the login endpoint was captured in the intercept tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7sbcuPXEYNsx4Q2NYr9Elg.png" /><figcaption>Figure 5: Payload Positions</figcaption></figure><p>I right-clicked the intercepted request and selected <strong>“Send to Intruder”</strong> to perform automated credential testing. This step allowed me to use Burp’s Intruder module to simulate a credential stuffing attack against the login endpoint.</p><p><strong><em>Step 2: Configuring the Intruder Attack</em></strong></p><p>After sending the login request to Intruder, I configured the attack in the <strong>Positions</strong> tab. Since each email needed to be tested with its corresponding password, the <strong>Pitchfork</strong> attack type was selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EqvZMoJZByJvQGYxY0nOOg.png" /><figcaption>Figure 6: Pitchfork attack selected under intruder in burp suite</figcaption></figure><p>After running the attack, three valid credential pairs returned <strong>HTTP 200 responses </strong>confirming successful authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhJBfgeO4KdGaS8HUrrLnw.png" /><figcaption>Figure 7: Three Valid Credentials Found</figcaption></figure><p>For each successful login attempt, the server returned a valid authentication token. These tokens were then used in the GET /vapi/api2/user/details endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yFxOtyUy5zUYb0EPWWgqDQ.png" /><figcaption><strong>Figure 8: Valid authentication token returned</strong></figcaption></figure><p>The retrieved authentication token was supplied in the Authorization-Token header and used to access the GET /vapi/api2/user/details endpoint. The response returned details of all registered users instead of restricting access to the authenticated user only. This confirms that proper authorization checks were not enforced and that tokens were not scoped to specific user accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WE1vxdTK1Tnk5b_XBscbFw.png" /><figcaption>Figure 9: All useres retrieved after using one token</figcaption></figure><p><strong>Flag Captured: </strong><strong>flag{api2_6bf2beda61e2a1ab2d0a}</strong></p><p><strong>Implications</strong></p><p>· Unlimited login attempts were allowed without throttling or account lockout mechanisms.</p><p>· Successful credential stuffing resulted in valid authentication tokens.</p><p>· Tokens were not properly bound to user-specific authorization controls.</p><p>· A single compromised account enabled access to sensitive data of all users.</p><p><strong>Fix Recommendations</strong></p><p>· Implement rate limiting on authentication endpoints.</p><p>· Enforce account lockout after multiple failed login attempts.</p><p>· Apply strong password policies.</p><p>· Ensure authentication tokens are properly validated and scoped to the authenticated user.</p><p>· Implement role-based access control (RBAC) or equivalent authorization mechanisms.</p><h4>3. API3 — Excessive Data Exposure</h4><p>Excessive Data Exposure occurs when an API returns more information than is necessary for the client’s intended functionality.</p><p>To test for excessive data exposure in the vAPI environment, I first launched <strong>TheCommentApp.apk</strong> inside my Android emulator. I configured the application to use the locally hosted vAPI instance: <a href="http://localhost:8000/vapi">http://localhost:8000/vapi</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*eHKxCT2GvALRiMMd8Et-WA.png" /></figure><p>Next, I configured the emulator to route traffic through <strong>Burp Suite</strong> and enabled intercept to monitor API requests and responses. I then created a new user account within the application and observed the registration request and response in Burp Suite.</p><p>After successfully registering, I logged into the application using the newly created credentials. Upon login, the application displayed a post created by another user along with existing comments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*QAU3lNKVEBpgaMFINpbFTA.png" /><figcaption>Figure 10: Registering a new user in the commenter App</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CERIDDUD7KMTc-8xypLQWQ.png" /><figcaption>Figure 11: User successfully registered as shown in burp suite interception</figcaption></figure><p>After successfully registering, I logged into the application using the newly created credentials. Upon login, the application displayed a post created by another user along with existing comments. While analyzing the API response in Burp Suite, I observed that the response body included sensitive information about users who had commented on the post. Specifically, the API response exposed username and GPS location coordinates.</p><p>This information was not necessary for displaying the post and comments in the application interface. The API returned complete user data objects instead of limiting the response to only required fields as shown in the screenshot below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xsYJy74oZrqgn39mmYU6sQ.png" /></figure><pre><strong>Flag Captured: flag{api3_0bad677bfc504c75ff72}</strong></pre><p><strong>Impact</strong></p><p>The exposure of unnecessary sensitive data increases the attack surface and may allow attackers to collect Personally Identifiable Information (PII), track user locations, perform profiling or targeted attacks.</p><p><strong>Recommendation</strong></p><p>To mitigate excessive data exposure:</p><p>· Implement server-side filtering to return only required fields.</p><p>· Avoid sending full user objects in API responses.</p><p>· Apply proper data minimization principles.</p><p>· Conduct regular API response reviews to ensure sensitive data is not unnecessarily exposed.</p><h4>4. API4 — Lack of Resources &amp; Rate Limiting</h4><p>This vulnerability occurs when an API does not properly limit the number of requests a user can make within a given time frame.</p><p>To test for this vulnerability, I first used Postman to send a <strong>Mobile Login</strong> request from the API4 folder using the supplied body data. This request successfully logged into the user account associated with the provided mobile phone number.</p><p>In the response body, the application indicated that a 4-digit OTP code had been sent to the user’s device. Since I did not have access to the user’s device, I did not have the OTP code and therefore needed to find an alternative method to bypass this verification step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MQrV6qigi9z4WumeUGBKjQ.png" /></figure><p>Next, I sent a <strong>Verify OTP</strong> request and intercepted it using Burp Suite. Here we got a 403 error code because the OTP that was inputted is wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BQ5qF6MAlAjwUYv6TGbnzg.png" /></figure><p>By proxying the request into Burp Suite, I was able to capture and analyze the OTP verification request before it reached the server. Because the API does not implement proper rate limiting, it becomes possible to repeatedly send multiple OTP verification attempts without being blocked, increasing the likelihood of successfully brute-forcing the 4-digit code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aMs60Ct3IWklivJon2uhjA.png" /></figure><p>I used the sniper attack to try to find the correct otp but it took too long, so I opted to use ffuf instead, which is faster. First, I downloaded and extracted charset.lst from the provided GitHub link. I then generated all possible 4-digit numeric combinations (0000–9999) using:</p><p>crunch 4 4 -f charset.lst numeric -o numbers.txt.</p><p>Next, I ran FFUF to fuzz the OTP field in the POST request: In a few minutes FFUF identified a valid OTP: 1872</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bdh8pTgaDxwZV4opQo3kaA.png" /></figure><p>I returned to <strong>Burp Suite</strong> and sent the <em>Verify OTP</em> request from Intruder to Repeater. After replacing the OTP value with the discovered code (<strong>1872</strong>) and sending the request, the server responded successfully and returned a key in the response body.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E6S8p9HPxqf1Ok63g6YnSQ.png" /></figure><p>I then returned to <strong>Postman</strong> and selected the <em>Get Details</em> request under the API4 collection. I pasted the retrieved key into the <strong>Authorization Token</strong> field and sent the request. The response body returned the user’s details along with the flag:</p><p><strong>Flag Captured: flag{api4_ce696239323ea5b2d015}</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*zXFdBACp7-AivGlBmVpKHw.png" /></figure><p>This demonstrates that the API does not enforce adequate resource restrictions or rate limiting controls, making it vulnerable to OTP brute-force attacks.</p><p><strong>Implications</strong></p><p>Without rate limiting or resource restrictions, an attacker can send a large number of requests to brute-force inputs such as OTP codes, leading to unauthorized access.</p><h4>5. Broken Function Level Authorization (API5)</h4><p>The <strong>vAPI</strong> is vulnerable to <strong>Broken Function Level Authorization</strong>. This happens when backend functions that should be restricted like admin operations are accessible to regular authenticated users because proper function-level access control<strong> </strong>is not implemented. In other words, authentication exists, but authorization is missing or weak.</p><p>To test this, I first created a normal user by sending a POST request to the /vapi/api5/user endpoint. This was done to generate a user account without admin privileges. The user was created successfully, as shown in the figure below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fopbPh-LZiRLJMqZNJD_aA.png" /></figure><p>Next, I attempted to access admin-only functions using this normal user by sending a GET request to the /vapi/api5/users endpoint. The purpose was to see if a normal user could access data reserved for admins. The result showed that the normal user was able to retrieve all users’ details, including sensitive information such as flags, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*prDtieDRIeHU6t_Y96IlDg.png" /></figure><p><strong>Implications</strong></p><p>· Unauthorized users can access privileged functions.</p><p>· Sensitive data, including other users’ information and flags, can be leaked.</p><p>· Potential for privilege escalation and security breaches.</p><p><strong>Recommendation:</strong></p><p>· Implement <strong>role-based access control (RBAC)</strong>.</p><p>· Enforce <strong>authorization checks at the controller level</strong> for all admin-level endpoints.</p><p>· Regularly test API endpoints to ensure users cannot access functions beyond their role.</p><p><strong>Flag Captured: </strong>flag{api5_76dd990a97ff1563ae76}</p><h4>6. API6 — Mass Assignment</h4><p>Mass Assignment occurs when an API allows users to modify object properties that were not intended to be modified. This happens when the backend automatically binds user input to internal object fields without properly filtering or validating which parameters are allowed.</p><p>The vAPI is vulnerable to mass assignment because it fails to restrict which parameters could be submitted during user creation.</p><p>To test for Mass Assignment in the vAPI application:</p><p>1. I navigated to the <strong>API6</strong> folder in the Postman collection.</p><p>2. I used the <strong>Create User</strong> request to create a new user named <strong>MassTest</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pWcOVOH1oGpvlFyFK_PR4w.png" /></figure><p>3. After creating the user, I verified using the <strong>Get User Details</strong> request that the credit value was set to <strong>0</strong> by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vf2BBjMU8gXZ7lFJF4Oq3Q.png" /></figure><p>To further test the vulnerability:</p><p>6. I created another user named <strong>MassUserTest2</strong>. This time, I manually added an additional parameter in the request body: “credit”: 100. The request was successfully processed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aS6Br5npTBnHWgqRxLZj3g.png" /></figure><p>7. Using the <strong>Get User Details</strong> request, I confirmed that the user was created with a credit value of <strong>100</strong>, even though this parameter was not intended to be user-controlled</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tk0Hngt7OLl-tLsSBndpgw.png" /></figure><p>Additionally, the application displayed the flag for this task:</p><pre>flag{api6_afb969db8b6e272694b4}</pre><p>This confirms successful exploitation of the Mass Assignment vulnerability.</p><h3>Impact</h3><p>This vulnerability allows attackers to manipulate sensitive object properties that should not be user-controlled, such as account credit or balance, user roles (e.g., privilege escalation to admin), account status flags and internal configuration attributes. This could lead to financial loss, privilege escalation, and unauthorized access to sensitive system functionality.</p><h3>Recommendation</h3><p>· Implement strict whitelisting of allowed fields.</p><p>· Use DTOs (Data Transfer Objects) instead of directly binding request bodies to database models.</p><p>· Enforce strong server-side validation<strong>.</strong></p><p>· Explicitly block sensitive fields such as credit, role, or isAdmin from being modified via user input.</p><h4>7. API7 — Security Misconfiguration (CORS Misconfiguration)</h4><p>An API is vulnerable to Security Misconfiguration when security settings are either not implemented or improperly configured. One common example is an improperly configured Cross-Origin Resource Sharing (CORS) policy. CORS controls which external domains are allowed to interact with the API.</p><p>If CORS is missing or misconfigured (e.g., allowing all origins), attackers can perform unauthorized cross-origin requests, potentially leading to data exposure or account compromise.</p><p>To test for API7 in the vAPI application:</p><p>1. I navigated to the API7<strong> </strong>folder in the Postman collection.</p><p>2. I used the Create User request to create a new user.</p><p>3. The request was successfully processed, and confirmation was received that the new user had been created as shown in the screenshot below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tqCBbIVv1HFWawaRHQ47fQ.png" /></figure><p>4. I then sent the <strong>User Login</strong> request to authenticate the user. The login request was accepted, confirming successful authentication.</p><p>5. I sent the <strong>Get Key</strong> request and intercepted the traffic into <strong>Burp Suite</strong>. Inspecting the response headers, I observed the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1yxYfeXefhoLQn_Lm2vzg.png" /></figure><p><em>Access-Control-Allow-Origin: *</em></p><p><em>Access-Control-Allow-Credentials: true</em></p><p><strong>This configuration is insecure because:</strong></p><p><em>Access-Control-Allow-Origin: * allows requests from any domain.</em></p><p><em>Access-Control-Allow-Credentials: true allows cookies and authentication tokens to be included in cross-origin requests.</em></p><p>This combination is dangerous and indicates improper CORS configuration</p><p>To demonstrate the vulnerability:</p><p>1. I sent the intercepted request to Repeater in Burp Suite. Then, I manually added a custom Origin header to simulate a malicious third-party domain: Origin: <a href="http://evil.com/">http://evil.com</a></p><p>2. I resent the request. The server accepted the request and returned sensitive data in the response body. Additionally, the flag for this task was displayed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0taGi5DxCcShHwSLCOhQQ.png" /></figure><p><strong>Flag Captured: flag{api7_e71b65071645e24ed50a}</strong></p><h4>8. API8 — Injection</h4><p>Injection vulnerabilities occur when untrusted user input is directly incorporated into database queries without proper validation or sanitization. This allows attackers to manipulate queries to bypass authentication, extract sensitive data, or modify database contents. In this case, the login functionality appeared suspicious because it lacked proper credential validation, suggesting that injection might be required to bypass authentication.</p><p>To test for Injection in the vAPI application:</p><p>1. I navigated to the API8 folder in Postman.</p><p>2. I examined the login request and observed that it did not enforce strict credential validation.</p><p>3. To test for SQL Injection, I injected a single quote (&#39;) into the username field.</p><ol><li>The server responded with a SQL syntax error.</li></ol><p>This error indicates that user input was being directly concatenated into a SQL query without proper sanitization, confirming the presence of a SQL Injection vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eY7C-h3AVvkd1wLgE3jzsw.png" /></figure><p>Using SQLMap, I:</p><ol><li>Enumerated the backend MySQL databases and identified a database named vapi.</li><li>Dumped the a_p_i8_users table and retrieved administrative credentials and the secret flag stored in the database.</li></ol><p>The extracted credentials were then used to log in successfully to the application, confirming that the injection vulnerability allowed full database access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*iAO1rwhWqP-DOiwoz7Pubg.png" /></figure><p>After identifying the backend database (vapi) and listing available tables, I observed that the tables followed the same numbering pattern as the vAPI tasks. The table corresponding to Task 8 was identified as: a_p_i8_users.</p><p>To inspect the structure of this table, I enumerated its columns using SQLMap: This revealed three sensitive and relevant columns: username, password and secret.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n3QHrmNkaPC1rqMIwdeNAA.png" /></figure><p>To retrieve sensitive information, I performed a targeted dump of specific columns using the following query:</p><pre>sqlmap -u http://192.168.1.26/vapi/api8/user/login \--data=&quot;username=u&amp;password=p&quot; \<br>-p username \<br>-D vapi \<br>-T a_p_i8_users \<br>-C password,secret,username \<br>--dump</pre><p>This successfully extracted the username, password and the flag. The flag retrieved was: <strong>flag{api8_509f8e201807860d5c91</strong>}. This confirms that the injection vulnerability allowed full access to sensitive database content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*e7LgPvOi2P8bbJdunCDKNw.png" /></figure><h4>Impact</h4><p>This vulnerability allows an attacker to manipulate backend SQL queries to extract sensitive data, including administrative credentials and secret values, effectively bypassing authentication controls. By exploiting the injection flaw, an attacker can enumerate databases, dump critical tables, and gain unauthorized access to the application, potentially leading to full system compromise, data breaches, and loss of confidentiality and integrity of the system.</p><h4>Recommendation</h4><p>· Use parameterized queries (prepared statements)<strong>.</strong></p><p>· Avoid dynamic query concatenation.</p><p>· Implement strict input validation and sanitization<strong>.</strong></p><p>· Suppress detailed database error messages in production.</p><p>· Apply the principle of least privilege to database accounts</p><h4>9. API9 — Improper Asset Management</h4><p>Improper Asset Management occurs when outdated or deprecated API versions remain accessible and are not properly secured.</p><p>Organizations may update to newer API versions but fail to disable older ones, leaving them exposed to vulnerabilities such as missing security controls. In the vAPI, older API versions were still accessible and lacked important protections.</p><p>To test for API9 in the vAPI application:</p><p>1. I first tested the /v2 API endpoint.</p><p>2. The response included rate-limiting headers indicating that only a limited number of requests were allowed. The response showed that <strong>4 requests remained</strong>, confirming that rate limiting was properly configured in /v2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hgZ7V5B2IGF3t3maJmAyCg.png" /></figure><p>Then, I tested the older /v1 API endpoint. The response did <strong>not</strong> include rate-limiting headers. This indicates that the deprecated /v1 version does not implement the same security controls as /v2. This confirms that an older API version is still publicly accessible and lacks critical protections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OqFuvlsO2tllXpbhNL7DqQ.png" /></figure><h4>Exploitation: Brute Forcing the PIN</h4><p>Since /v1 lacked rate limiting, I attempted to brute force the user PIN. Using the four-digit number wordlist (numbers.txt) created earlier, I executed the following FFUF command:</p><p>ffuf -w ~/lab/vapi/numbers.txt -X POST -d ‘{“username”:”richardbranson”,”pin”:”FUZZ”}’ -H “Content-Type: application/json” -u <a href="http://localhost:8000/vapi/api9/v1/user/login">http://localhost:8000/vapi/api9/v1/user/login</a> -fs 0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gCVWbXP6D3LslLo0Gd4ZLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*buDQaXlcWgkLA1ljvnpszQ.png" /><figcaption>Matching Pin found 1655</figcaption></figure><p>After discovering the valid PIN, I returned to <strong>Burp Suite Repeater</strong>. I modified the login request to include the correct PIN and resent the request. This time, the login attempt was successful, and the server returned the flag in the response body: <strong>flag{api9_81e306bdd20a7734e244}</strong></p><p>This confirms successful exploitation of the deprecated /v1 endpoint due to missing security controls.</p><h4>Impact</h4><p>This vulnerability allows attackers to:</p><p>· Brute force authentication credentials</p><p>· Gain unauthorized account access</p><p>· Bypass security controls implemented in newer API versions</p><p>· Exploit forgotten or deprecated endpoints</p><h4>Recommendation</h4><p>· Disable or remove deprecated API versions.</p><p>· Apply consistent security controls across all API versions.</p><p>· Implement rate limiting on authentication endpoints.</p><p>· Monitor and log excessive login attempts.</p><p>· Maintain a comprehensive API inventory and lifecycle management process.</p><h3>1. API10: Lack of logging and monitoring</h3><p>Lack of Logging and Monitoring occurs when an application does not properly log security-relevant events or monitor suspicious activity. Logging and monitoring are critical for detecting attacks, investigating incidents, and responding in a timely manner.</p><p>Without proper visibility into API activity, malicious behavior can go undetected for extended periods.</p><h3>Testing Procedure</h3><p>To test for API10 in the vAPI application:</p><p>1. I navigated to the <strong>API10</strong> folder in Postman.</p><p>2. I sent the <strong>Get Flag</strong> request.</p><p>3. The response confirmed that the API lacked proper logging and monitoring mechanisms as shown in the screenshot below:</p><p>The flag for this task was displayed in the response body: <strong>flag{api10_5db611f7c1ffd747971f}</strong></p><h3>Impact</h3><p>When logging and monitoring are absent attacks remain undetected. Lack of monitoring often allows attackers to maintain persistence within systems for long periods.</p><p><strong>Recommendation</strong></p><p>· Implement centralized logging for all API requests and responses.</p><p>· Log authentication attempts (successful and failed).</p><p>· Monitor unusual patterns such as excessive login attempts or abnormal request volumes.</p><p>· Configure real-time alerts for suspicious activity.</p><p>· Regularly review logs and conduct security audits.</p><h3>1. API10: Lack of logging and monitoring</h3><p>Lack of Logging and Monitoring occurs when an application does not properly log security-relevant events or monitor suspicious activity. Logging and monitoring are critical for detecting attacks, investigating incidents, and responding in a timely manner.</p><p>Without proper visibility into API activity, malicious behavior can go undetected for extended periods.</p><h3>Testing Procedure</h3><p>To test for API10 in the vAPI application:</p><p>1. I navigated to the <strong>API10</strong> folder in Postman.</p><p>2. I sent the <strong>Get Flag</strong> request.</p><p>3. The response confirmed that the API lacked proper logging and monitoring mechanisms as shown in the screenshot below:</p><p>The flag for this task was displayed in the response body: <strong>flag{api10_5db611f7c1ffd747971f}</strong></p><h3>Impact</h3><p>When logging and monitoring are absent attacks remain undetected. Lack of monitoring often allows attackers to maintain persistence within systems for long periods.</p><p><strong>Recommendation</strong></p><p>· Implement centralized logging for all API requests and responses.</p><p>· Log authentication attempts (successful and failed).</p><p>· Monitor unusual patterns such as excessive login attempts or abnormal request volumes.</p><p>· Configure real-time alerts for suspicious activity.</p><p>· Regularly review logs and conduct security audits.</p><h3>1. API10: Lack of logging and monitoring</h3><p>Lack of Logging and Monitoring occurs when an application does not properly log security-relevant events or monitor suspicious activity. Logging and monitoring are critical for detecting attacks, investigating incidents, and responding in a timely manner.</p><p>Without proper visibility into API activity, malicious behavior can go undetected for extended periods.</p><h3>Testing Procedure</h3><p>To test for API10 in the vAPI application:</p><p>1. I navigated to the <strong>API10</strong> folder in Postman.</p><p>2. I sent the <strong>Get Flag</strong> request.</p><p>3. The response confirmed that the API lacked proper logging and monitoring mechanisms as shown in the screenshot below:</p><p>The flag for this task was displayed in the response body: <strong>flag{api10_5db611f7c1ffd747971f}</strong></p><h3>Impact</h3><p>When logging and monitoring are absent attacks remain undetected. Lack of monitoring often allows attackers to maintain persistence within systems for long periods.</p><p><strong>Recommendation</strong></p><p>· Implement centralized logging for all API requests and responses.</p><p>· Log authentication attempts (successful and failed).</p><p>· Monitor unusual patterns such as excessive login attempts or abnormal request volumes.</p><p>· Configure real-time alerts for suspicious activity.</p><p>· Regularly review logs and conduct security audits.</p><h3>1. API10: Lack of logging and monitoring</h3><p>Lack of Logging and Monitoring occurs when an application does not properly log security-relevant events or monitor suspicious activity. Logging and monitoring are critical for detecting attacks, investigating incidents, and responding in a timely manner.</p><p>Without proper visibility into API activity, malicious behavior can go undetected for extended periods.</p><h3>Testing Procedure</h3><p>To test for API10 in the vAPI application:</p><p>1. I navigated to the <strong>API10</strong> folder in Postman.</p><p>2. I sent the <strong>Get Flag</strong> request.</p><p>3. The response confirmed that the API lacked proper logging and monitoring mechanisms as shown in the screenshot below:</p><p>The flag for this task was displayed in the response body: <strong>flag{api10_5db611f7c1ffd747971f}</strong></p><h3>Impact</h3><p>When logging and monitoring are absent attacks remain undetected. Lack of monitoring often allows attackers to maintain persistence within systems for long periods.</p><p><strong>Recommendation</strong></p><p>· Implement centralized logging for all API requests and responses.</p><p>· Log authentication attempts (successful and failed).</p><p>· Monitor unusual patterns such as excessive login attempts or abnormal request volumes.</p><p>· Configure real-time alerts for suspicious activity.</p><p>· Regularly review logs and conduct security audits.</p><h3>1. API10: Lack of logging and monitoring</h3><p>Lack of Logging and Monitoring occurs when an application does not properly log security-relevant events or monitor suspicious activity. Logging and monitoring are critical for detecting attacks, investigating incidents, and responding in a timely manner.</p><p>Without proper visibility into API activity, malicious behavior can go undetected for extended periods.</p><h3>Testing Procedure</h3><p>To test for API10 in the vAPI application:</p><p>1. I navigated to the <strong>API10</strong> folder in Postman.</p><p>2. I sent the <strong>Get Flag</strong> request.</p><p>3. The response confirmed that the API lacked proper logging and monitoring mechanisms as shown in the screenshot below:</p><p>The flag for this task was displayed in the response body: <strong>flag{api10_5db611f7c1ffd747971f}</strong></p><h3>Impact</h3><p>When logging and monitoring are absent attacks remain undetected. Lack of monitoring often allows attackers to maintain persistence within systems for long periods.</p><p><strong>Recommendation</strong></p><p>· Implement centralized logging for all API requests and responses.</p><p>· Log authentication attempts (successful and failed).</p><p>· Monitor unusual patterns such as excessive login attempts or abnormal request volumes.</p><p>· Configure real-time alerts for suspicious activity.</p><p>· Regularly review logs and conduct security audits.</p><h3>1. API10: Lack of logging and monitoring</h3><p>Lack of Logging and Monitoring occurs when an application does not properly log security-relevant events or monitor suspicious activity. Logging and monitoring are critical for detecting attacks, investigating incidents, and responding in a timely manner.</p><p>Without proper visibility into API activity, malicious behavior can go undetected for extended periods.</p><h3>Testing Procedure</h3><p>To test for API10 in the vAPI application:</p><p>1. I navigated to the <strong>API10</strong> folder in Postman.</p><p>2. I sent the <strong>Get Flag</strong> request.</p><p>3. The response confirmed that the API lacked proper logging and monitoring mechanisms as shown in the screenshot below:</p><p>The flag for this task was displayed in the response body: <strong>flag{api10_5db611f7c1ffd747971f}</strong></p><h3>Impact</h3><p>When logging and monitoring are absent attacks remain undetected. Lack of monitoring often allows attackers to maintain persistence within systems for long periods.</p><p><strong>Recommendation</strong></p><p>· Implement centralized logging for all API requests and responses.</p><p>· Log authentication attempts (successful and failed).</p><p>· Monitor unusual patterns such as excessive login attempts or abnormal request volumes.</p><p>· Configure real-time alerts for suspicious activity.</p><p>· Regularly review logs and conduct security audits.</p><h4>10. API10: Lack of logging and monitoring</h4><p>Lack of Logging and Monitoring occurs when an application does not properly log security-relevant events or monitor suspicious activity. Logging and monitoring are critical for detecting attacks, investigating incidents, and responding in a timely manner.</p><p>Without proper visibility into API activity, malicious behavior can go undetected for extended periods.</p><p>To test for API10 in the vAPI application:</p><p>1. I navigated to the <strong>API10</strong> folder in Postman.</p><p>2. I sent the <strong>Get Flag</strong> request.</p><p>3. The response confirmed that the API lacked proper logging and monitoring mechanisms as shown in the screenshot below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eTbfZbjnzpNbiXIpOXe2wg.png" /></figure><p>The flag for this task was displayed in the response body: <strong>flag{api10_5db611f7c1ffd747971f}</strong></p><h4>Impact</h4><p>When logging and monitoring are absent attacks remain undetected. Lack of monitoring often allows attackers to maintain persistence within systems for long periods.</p><p><strong>Recommendation</strong></p><p>· Implement centralized logging for all API requests and responses.</p><p>· Log authentication attempts (successful and failed).</p><p>· Monitor unusual patterns such as excessive login attempts or abnormal request volumes.</p><p>· Configure real-time alerts for suspicious activity.</p><p>· Regularly review logs and conduct security audits.</p><h3>Conclusion</h3><p>The vAPI application exhibits multiple high-risk vulnerabilities across <strong>all ten OWASP API Security categories</strong>. Exploitation of these weaknesses could result in sensitive data exposure, privilege escalation, and full system compromise. Implementing the recommended mitigations is critical for securing the API in production environments.</p><h3>Know More About Me</h3><p>My Name is Gertrude Nsaku. I am a passionate cybersecurity professional specializing in API security, penetration testing, and secure application design. I enjoy exploring real-world attack scenarios, identifying vulnerabilities, and providing actionable recommendations to improve security.</p><p>Beyond cybersecurity, I am committed to continuous learning and mentoring through initiatives like the <strong>CyberGirls APISEC Fellowship</strong>, sharing my knowledge to empower others in the field.</p><p>Feel free to connect with me on <a href="http://www.linkedin.com/in/gnsaku">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15c387a67233" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thinking Like an Attacker: How API Pen-Testers Identify IDOR Vulnerabilities]]></title>
            <link>https://medium.com/@gertnsaku/thinking-like-an-attacker-how-api-pen-testers-identify-idor-vulnerabilities-1b50b03189f8?source=rss-f02fd6e81b8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b50b03189f8</guid>
            <category><![CDATA[api-penetration-testing]]></category>
            <category><![CDATA[api-sec]]></category>
            <category><![CDATA[idor-vulnerability]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[idor]]></category>
            <dc:creator><![CDATA[Gertnsaku]]></dc:creator>
            <pubDate>Mon, 23 Feb 2026 14:36:25 GMT</pubDate>
            <atom:updated>2026-02-23T14:36:25.243Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zUpkwy_n0rYR5QGu40Ylzg.png" /></figure><p>APIs are built to expose data objects — users, orders, invoices, transactions through structured endpoints. That same structure is exactly what makes them vulnerable to <strong>IDOR (Insecure Direct Object Reference)</strong>.</p><p>An <strong>IDOR</strong> vulnerability occurs when an API exposes an internal object identifier (such as user_id, account_id, or order_id) and fails to properly verify whether the authenticated user is authorized to access that object.</p><p>It’s not about breaking authentication. It’s about breaking authorization.</p><h3>The Attacker Mindset Behind IDOR Testing</h3><p>When testing for IDOR, a penetration tester doesn’t immediately reach for complex payloads.</p><p>Instead, they ask simple, dangerous questions:</p><ul><li>What object does this endpoint return?</li><li>Is the object tied to a user?</li><li>What happens if I change the ID?</li><li>Does the server validate ownership — or just login status?</li></ul><p>For example, consider a request like:</p><pre>GET /api/v1/users/1001/profile</pre><p>and the server returns another user’s data, the system has failed to enforce proper authorization.</p><p><em>No injection.<br> No brute force.<br> Just logic.</em></p><p>That’s what makes IDOR powerful.</p><h3>Why APIs Are Especially Vulnerable</h3><p>APIs are particularly exposed to IDOR because:</p><ul><li>They operate directly on object identifiers</li><li>They are commonly used by mobile apps where IDs are visible in traffic</li><li>They often rely on tokens for authentication but forget authorization checks</li><li>They separate frontend and backend logic, increasing trust assumptions</li></ul><p>Many systems check:</p><p><em>“Is this user logged in?”</em></p><p>But forget to check:</p><p><em>“Is this user allowed to access this specific object?”</em></p><p>That gap is where IDOR lives.</p><h3>What a Pen-Tester Looks For During Testing</h3><p>When assessing an API for IDOR, a tester looks for:</p><ul><li>Sequential numeric IDs (e.g., 1001, 1002, 1003)</li><li>UUIDs that may still be reusable</li><li>Object references in request bodies</li><li>Differences in responses when IDs are modified</li><li>Endpoints that return data without strict ownership validation</li></ul><p>IDOR testing is subtle. There’s no error message. No system crash.</p><p>The application behaves normally.</p><p>That’s what makes it dangerous.</p><h3>The Potential Impact</h3><p>If exploited, IDOR can lead to:</p><ul><li>Exposure of personal data</li><li>Unauthorized access to financial records</li><li>Modification or deletion of user accounts</li><li>Regulatory and compliance violations</li><li>Loss of customer trust</li></ul><p>In APIs handling sensitive industries like banking, healthcare, or SaaS platforms, a single IDOR can escalate into a full-scale breach.</p><h3>How Developers Can Prevent It</h3><p>Preventing IDOR requires:</p><ul><li>Enforcing strict server-side authorization checks</li><li>Validating object ownership on every request</li><li>Implementing proper access control models (RBAC or ABAC)</li><li>Avoiding reliance on hidden frontend controls</li></ul><p>Authentication confirms identity.<br> Authorization confirms permission.</p><p>Confusing the two is what creates IDOR vulnerabilities.</p><h3>Final Thoughts</h3><p>IDOR is one of the most common and dangerous API vulnerabilities because it exploits logic — not complexity. Thinking like an attacker means asking:</p><p><em>“What happens if I request something that doesn’t belong to me?”</em></p><p>That single question is often enough to uncover serious flaws. And in API security, small logic gaps can have massive consequence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b50b03189f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How API Pen-Testers Approach Systems: Tools, Mindset, and Methodology]]></title>
            <link>https://medium.com/@gertnsaku/how-api-pen-testers-approach-systems-tools-mindset-and-methodology-120e881e43e5?source=rss-f02fd6e81b8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/120e881e43e5</guid>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Gertnsaku]]></dc:creator>
            <pubDate>Mon, 23 Feb 2026 14:23:05 GMT</pubDate>
            <atom:updated>2026-02-23T14:23:05.685Z</atom:updated>
            <content:encoded><![CDATA[<p>APIs power modern applications. Mobile apps, banking platforms, SaaS dashboards, fintech systems, they all rely on APIs to move data between services.</p><p>But testing APIs isn’t the same as testing traditional web applications. After studying professional API penetration-testing workflows and practicing in lab environments using <strong>Burp Suite</strong>, I realized something important:</p><p>API testing is less about “attacking” and more about understanding systems deeply. Here’s how professional API pen-testers approach their work.</p><h3>The Three Core Stages of an API Pen-Test</h3><p>A structured API penetration test follows a clear methodology:</p><h3>1. Reconnaissance: Understanding Before Touching</h3><p>Before sending payloads, professionals map the system.</p><p>This includes:</p><ol><li>Identifying endpoints (/api/v1/users, /auth/login)</li><li>Reviewing OpenAPI/Swagger documentation (if available)</li><li>Understanding authentication mechanisms (JWT, OAuth, API keys)</li><li>Studying request and response structures</li><li>Observing how objects relate to each other</li></ol><p>Unlike traditional web testing, you’re not exploring pages. You’re studying <em>data models</em>. The goal is to understand how the system thinks.</p><h3>2. Testing: Controlled and Intentional Validation</h3><p>This phase is where reasoning matters most. Common API vulnerabilities include:</p><ul><li>Broken Object Level Authorization (BOLA)</li><li>Mass Assignment</li><li>Excessive Data Exposure</li><li>Injection flaws</li><li>Improper rate limiting</li></ul><p>Using Burp Suite in a lab, I learned how to:</p><ul><li>Intercept API traffic</li><li>Modify JSON parameters</li><li>Replay requests with altered object IDs</li><li>Observe token behavior</li><li>Compare server responses</li></ul><p>The surprising part? Many vulnerabilities don’t require complex payloads. Sometimes changing:</p><pre>&quot;user_id&quot;: 1001</pre><p>to:</p><pre>&quot;user_id&quot;: 1002</pre><p>is enough to expose another user’s data — if authorization is poorly implemented. API testing often reveals logic flaws, not technical misconfigurations.</p><h3>3. Reporting: Where Professionalism Shows</h3><p>A real penetration test ends with communication.</p><p>A strong report includes:</p><ul><li>Clear vulnerability description</li><li>Reproducible steps</li><li>Evidence (sanitized request/response samples)</li><li>Business impact analysis</li><li>Practical remediation guidance</li></ul><h3>Why API Pen-Testing Is Different from Web App Testing</h3><p>Traditional web testing focuses on:</p><ul><li>Forms</li><li>UI input validation</li><li>Visible workflows</li></ul><p>API testing focuses on:</p><ul><li>Direct object access</li><li>Authentication tokens</li><li>Backend logic</li><li>Data exposure</li></ul><p>APIs remove the user interface layer. That means you’re interacting directly with the application’s logic.</p><p>There’s no front-end protecting poor backend design. If authorization checks are weak, the API will reveal it.</p><h3>Tools Help — But They Don’t Think for You</h3><p>Burp Suite is powerful.</p><p>It allows testers to:</p><ul><li>View raw HTTP/S traffic</li><li>Modify parameters</li><li>Automate request replay</li><li>Analyze authentication flows</li></ul><p>But tools don’t detect business logic flaws automatically. A scanner might detect injection. It won’t always detect that user A can access user B’s bank statement.</p><p>That requires:</p><ul><li>Context awareness</li><li>Understanding authorization models</li><li>Logical reasoning</li></ul><p>One major mistake beginners make is relying too heavily on automated scanners.</p><p>They press “Scan,” wait for results, and assume they’ve performed a penetration test. But APIs are often vulnerable in subtle, logical ways.</p><p>Real API testing requires:</p><ul><li>Hypothesis-driven testing</li><li>Manual manipulation</li><li>Understanding how objects relate</li><li>Thinking like an attacker — but also analyzing like an engineer</li></ul><p>Pen-testing is structured investigation, not button-clicking.</p><h3>Final Thoughts</h3><p>API penetration testing requires:</p><ul><li>Structured methodology</li><li>Deep understanding of authentication and authorization</li><li>Precision over noise</li><li>Strong reporting skills</li></ul><p>It’s not about breaking things loudly. It’s about understanding systems so well that weaknesses reveal themselves. And that mindset more than any tool is what separates beginners from professionals.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=120e881e43e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Learning APIs to Protecting Systems: My API Security Journey]]></title>
            <link>https://medium.com/@gertnsaku/from-learning-apis-to-protecting-systems-my-api-security-journey-c598ee0b795d?source=rss-f02fd6e81b8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c598ee0b795d</guid>
            <dc:creator><![CDATA[Gertnsaku]]></dc:creator>
            <pubDate>Sun, 08 Feb 2026 21:14:12 GMT</pubDate>
            <atom:updated>2026-02-08T21:14:12.667Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rltBnzrHZidAgopcbj1MYQ.png" /></figure><p>When I first started learning about APIs, I saw them as simple connectors or tools that allowed applications to talk to each other. My focus was mostly on functionality:<em> requests, responses, endpoints, and documentation</em>. Security felt like something extra that would be added later. But as I moved from fundamentals into API penetration testing and eventually into AI-integrated systems, my entire perspective changed.</p><h4>The Mindset Shift That Changed Everything</h4><p>The biggest shift I experienced was moving from thinking like a user to thinking like an attacker. Early on, I focused on how APIs were <em>supposed</em> to work. During penetration testing, I started asking a different question: <em>What happens if someone uses this in a way the developer never expected?</em></p><p>That change in perspective revealed how small design assumptions — predictable IDs, excessive responses, weak authorization checks — could quietly expose massive risks. APIs stopped being neutral communication tools and became potential attack paths waiting to be explored.</p><p><em>If there’s one principle I believe in now</em>, it’s this: <strong>security must be designed into APIs from the beginning, not added after deployment</strong>.</p><p>I’ve seen how minor issues can combine into serious vulnerabilities when security is treated as a later phase. Authorization logic, data exposure controls, and trust boundaries are architectural decisions. Fixing them after a system is built is far more difficult and risky than designing securely from day one.</p><h4>A Responsibility API Security Professionals Should Never Ignore</h4><p>API security professionals should never ignore <strong>the real-world impact of vulnerabilities</strong>. It’s easy to focus on technical severity ratings or individual flaws in isolation. But what truly matters is how vulnerabilities interact and what damage they can cause to users and organizations.</p><p>Security isn’t just about finding bugs, it’s about protecting people’s data, privacy, and trust. Every endpoint represents a potential entry point into sensitive systems, and overlooking that responsibility can lead to consequences far beyond code.</p><h4>Final Thoughts</h4><p>My journey from learning API basics to testing and analyzing complex systems has reshaped how I view software development. APIs are no longer just functional components; they are critical trust boundaries. Understanding attack paths, thinking beyond individual vulnerabilities, and prioritizing real-world impact have become central to how I approach security today.</p><p>API security isn’t a single skill, it’s a mindset that influences how systems are built, tested, and protected.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c598ee0b795d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Real API Breaches Happen Through Chains, Not Single Bugs]]></title>
            <link>https://medium.com/@gertnsaku/why-real-api-breaches-happen-through-chains-not-single-bugs-6cc7bba48ad1?source=rss-f02fd6e81b8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cc7bba48ad1</guid>
            <category><![CDATA[api-security]]></category>
            <dc:creator><![CDATA[Gertnsaku]]></dc:creator>
            <pubDate>Sun, 08 Feb 2026 20:49:12 GMT</pubDate>
            <atom:updated>2026-02-08T20:49:47.268Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J44u37W8I739-LrPmuHggQ.png" /></figure><p>When most people think of a cybersecurity breach, they imagine a single, catastrophic flaw being exploited. In reality, <strong>API breaches are usually a chain reaction</strong>. One small weakness leads to another, and suddenly attackers have access far beyond what any individual bug would allow.</p><p>I recently explored this concept through a fictional scenario in a lab environment. Let me walk you through it.</p><h4>The Setup: A Fictional Healthcare API</h4><p>Imagine a healthcare platform called <strong>MTrack Health</strong>. Patients can view their lab results via an API endpoint:</p><pre>GET /api/lab-results/{result_id}</pre><p>On its own, this endpoint seems fine. It requires users to log in. But here’s where things get interesting.</p><h4>Step 1: The First Weakness</h4><p>The first issue I observed was <strong>Broken Object Level Authorization (BOLA)</strong>. The API verified that a user was logged in but <strong>didn’t check if they actually owned the lab result they were requesting</strong>. By changing the numeric ID in the request, a patient could see someone else’s results. This is bad, it’s a privacy leak.</p><h4>Step 2: The Second Weakness</h4><p>Next, the endpoint revealed <strong>excessive data</strong>. Along with lab results, it returned internal identifiers, appointment tokens, and email addresses. This extra metadata might seem minor, but combined with the first weakness, it created something much bigger: a <strong>map of the system’s internal relationships</strong>.</p><h4>When Vulnerabilities Chain</h4><p>Individually, these issues are moderate. Together, they become dangerous. Unauthorized access plus exposed identifiers allows an attacker to pivot into other parts of the API, effectively <strong>turning a small privacy flaw into a platform-wide risk</strong>.</p><p>In a real-world scenario, this could mean:</p><ul><li>Sensitive medical data exposed</li><li>Loss of patient trust</li><li>Regulatory penalties</li><li>Internal system compromise</li><li>Reputational damage</li></ul><h4>Why Attackers Love Chains</h4><p>Hackers rarely rely on a single flaw. They start with something small, gather metadata, and use it to escalate access. Each vulnerability builds on the last. That’s why security isn’t just about patching “high severity” bugs — it’s about understanding <strong>how weaknesses interact</strong>.</p><h4>Impact &gt; CVEs</h4><p>A lot of organizations obsess over CVE scores. But the truth is: <strong>impact matters more than labels</strong>. Two medium-level vulnerabilities chained together can create a critical breach. Focusing solely on individual technical severity can blind teams to real-world risk.</p><h4>How Defenders Should Think</h4><p>If you’re on the defensive side, stop thinking about endpoints in isolation. Instead:</p><ol><li><strong>Map user journeys:</strong> Consider how users move through authentication, data retrieval, and updates.</li><li><strong>Analyze data relationships:</strong> Look for endpoints that leak identifiers or tokens.</li><li><strong>Simulate multi-step abuse:</strong> Small weaknesses can combine in ways that are devastating.</li><li>Defenders who think in terms of <strong>attack paths</strong> see the bigger picture.</li></ol><h3>Final Thoughts</h3><p>API breaches don’t happen from one bug — they happen when small weaknesses line up like dominoes. By understanding chains and focusing on real-world impact, we can better protect our systems and prevent breaches before they happen.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cc7bba48ad1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What API Developers Need to Know About PCI DSS and Financial API Security]]></title>
            <link>https://medium.com/@gertnsaku/what-api-developers-need-to-know-about-pci-dss-and-financial-api-security-68c138278346?source=rss-f02fd6e81b8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/68c138278346</guid>
            <category><![CDATA[pci-dss]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Gertnsaku]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 09:50:12 GMT</pubDate>
            <atom:updated>2026-02-02T09:50:12.685Z</atom:updated>
            <content:encoded><![CDATA[<p>APIs power modern financial systems. From mobile wallets to online payments, APIs are responsible for transmitting and processing some of the most sensitive data in the digital world cardholder data.</p><p>This makes APIs a high-value target for attackers.</p><p>To reduce fraud and data breaches, the payment industry relies on the Payment Card Industry Data Security Standard (PCI DSS). For API developers, PCI DSS is not just a compliance requirement, it’s a blueprint for building secure financial APIs.</p><h3>Why PCI DSS Matters for APIs</h3><p>PCI DSS was created to protect cardholder data (CHD) such as:</p><ul><li>Primary Account Numbers (PAN)</li><li>Cardholder names</li><li>Expiration dates</li><li>Security codes</li></ul><h3>APIs commonly:</h3><ul><li>Transmit payment data between clients and servers</li><li>Integrate with third-party payment processors</li><li>Expose internet-facing endpoints</li></ul><p>If APIs are insecure, attackers can exploit weak authentication, unencrypted traffic, or excessive data exposure: leading to data breaches, financial loss, regulatory penalties, and reputational damage.</p><p>PCI DSS helps reduce these risks by enforcing strict security controls around how payment data is handled.</p><h3>Key PCI DSS Requirements Relevant to APIs</h3><h3>1. PCI DSS Requirement 3 – Protect Stored Cardholder Data</h3><p>What the Requirement Says<br>Stored cardholder data must be protected using strong cryptography and data-minimization techniques.</p><h3>API Risk Addressed</h3><ul><li>Exposure of PANs through API responses</li><li>Database breaches via compromised API access</li><li>Logging sensitive payment data in plaintext</li></ul><h3>API Security Controls Used</h3><ul><li>Tokenization instead of storing raw PANs</li><li>Strong encryption (e.g., AES-256) for stored data</li><li>Masking PANs in API responses (**** **** **** 1234)</li><li>Preventing sensitive data from appearing in logs, traces, or error messages</li></ul><h3>Why This Matters for APIs</h3><p>APIs should never return or store more card data than absolutely necessary. Even internal APIs must assume compromise and minimize impact.</p><h3>2. PCI DSS Requirement 4 – Encrypt Transmission of Cardholder Data</h3><p>What the Requirement Says: <br>Cardholder data must be encrypted during transmission over open, public networks.</p><p><strong>API Risk Addressed:</strong></p><ul><li>Man-in-the-Middle (MITM) attacks</li><li>Network eavesdropping</li><li>Session hijacking</li></ul><p><strong>API Security Controls Used</strong></p><ul><li>Enforcing HTTPS with TLS 1.2 or higher</li><li>Disabling weak ciphers and legacy protocols</li><li>Proper TLS certificate validation</li><li>Rejecting all unencrypted API requests</li></ul><p><strong>Why This Matters for APIs</strong><br>APIs are often accessed over public networks. Without strong encryption, attackers can intercept or manipulate payment data in transit.</p><h3>3. PCI DSS Requirements 7 &amp; 8 – Restrict Access and Identify Users</h3><p><strong>What the Requirements Say:</strong><br>Access to cardholder data must be restricted based on business need, and all users must be uniquely identified.</p><p><strong>API Risk Addressed</strong></p><ul><li>Unauthorized access to payment APIs</li><li>Credential stuffing and API abuse</li><li>Broken authentication vulnerabilities</li></ul><p><strong>API Security Controls Used</strong></p><ul><li>Strong authentication mechanisms (OAuth 2.0, JWTs, API keys)</li><li>Role-Based Access Control (RBAC)</li><li>Least-privilege access for services and users</li><li>Token expiration, rotation, and revocation</li></ul><p><strong>Why This Matters for APIs</strong><br>A single compromised API credential can expose massive amounts of payment data if access controls are weak.</p><h3>How PCI DSS Influences Secure API Design</h3><p>PCI DSS forces API developers to think security-first, influencing design decisions such as:</p><ul><li>Returning only necessary data in API responses</li><li>Separating payment APIs from non-payment APIs</li><li>Treating APIs as high-risk attack surfaces</li><li>Designing APIs to fail securely (no sensitive data in errors)</li></ul><h3>Practical API Security Practices Driven by PCI DSS</h3><p>PCI DSS compliance naturally leads to these best practices for API security:</p><ul><li>Never expose PANs unless absolutely required</li><li>Use tokenization instead of raw card data</li><li>Enforce rate limiting to prevent brute-force attacks</li><li>Implement centralized API logging and monitoring (without sensitive data)</li><li>Perform regular vulnerability scanning and penetration testing</li><li>Secure third-party API integrations with strict scopes and permissions</li></ul><p>These practices not only help with compliance but significantly reduce real-world attack risks.</p><h3>Conclusion</h3><p>PCI DSS is more than a regulatory requirement—it is a security framework that shapes how financial APIs should be built and protected.</p><p>For API developers, understanding PCI DSS means:</p><ul><li>Designing resilient APIs</li><li>Protecting cardholder data</li><li>Maintaining trust with users and partners</li></ul><p>In a world where APIs drive digital payments, secure APIs are non-negotiable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68c138278346" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Learning API Security Taught Me About Building Systems for the Real World]]></title>
            <link>https://medium.com/@gertnsaku/what-learning-api-security-taught-me-about-building-systems-for-the-real-world-46daba14c08c?source=rss-f02fd6e81b8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/46daba14c08c</guid>
            <category><![CDATA[api-security]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[api-sec]]></category>
            <dc:creator><![CDATA[Gertnsaku]]></dc:creator>
            <pubDate>Fri, 23 Jan 2026 11:26:22 GMT</pubDate>
            <atom:updated>2026-01-23T11:26:22.419Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*-iD9s6Uk_Te1iWe-lC1KAA.png" /></figure><p>When I first started learning API security, I assumed it was mostly about protecting endpoints and keeping hackers out. I thought that if authentication was strong and data was encrypted, I was safe. But diving into API security training completely shifted my perspective. I realized that securing APIs is not just a technical checkbox, it is also about designing systems that anticipate risk, maintain trust, and work reliably in a connected world.</p><p>I used to believe that APIs were inherently secure if the server was hardened and authentication was in place. What I learned is that vulnerabilities often emerge not from the server itself but from how APIs interact between microservices, third-party integrations, and user applications. Security isn’t only about stopping attacks; it’s about understanding the ecosystem and the data flows that traverse it.</p><p>The concept that reshaped my thinking the most was <strong>API trust boundaries</strong>. Each API is a gateway, and every request can carry an unseen risk. In terms of boundaries, we are talking about what data can safely cross them, who can access it, and how it is validated taught me that security is not just reactive but alsoproactive. Designing APIs without considering these boundaries is like building a house without locks or walls. On the outside it might look safe, but it’s vulnerable at every connection point.</p><p>If there’s one principle I would urge API teams to adopt, it’s simple: <strong>assume nothing is safe and validate everything</strong>. Every input, token, and response should be verified. This may sound basic, but applying it consistently transforms systems from reactive to resilient. This will help them create systems that are more trustworthy, scalable, and robust.</p><p>Before this training, I focused on server security in isolation. Now, I see APIs as the lifeblood of modern applications, connecting diverse systems and services. Security is no longer a single layer, it’s a chain of trust spanning servers, gateways, compliance policies, and connected systems.</p><p>API security is not just a defensive strategy, it’s a mindset. It’s about thinking like both a builder and an attacker, anticipating where systems might fail, and designing for resilience. Every API should be treated as an active participant in the system’s security posture, not just a passive conduit for data.</p><p>For someone outside of security, this may sound complex, but the lesson is simple: building real-world systems means expecting the unexpected. Secure APIs are the backbone of systems that are not only functional but reliable, resilient, and trusted. The goal isn’t to be perfect, it’s to be prepared, aware, and thoughtful about how each piece of your system interacts with the rest.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46daba14c08c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is API Security and Why Should Everyday People Care?]]></title>
            <link>https://medium.com/@gertnsaku/what-is-api-security-and-why-should-everyday-people-care-d3341f22296b?source=rss-f02fd6e81b8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3341f22296b</guid>
            <dc:creator><![CDATA[Gertnsaku]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 15:41:54 GMT</pubDate>
            <atom:updated>2025-12-15T15:41:54.467Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*neS_BLKct8aAtddmiIYAHg.png" /></figure><p>Have you ever used an app on your phone, ordered food online, or checked your bank balance on a website? If so, you’ve used an <strong>API</strong>.</p><p>APIs, or <strong>Application Programming Interfaces</strong>, are the invisible digital waiters and messengers that let different software programs talk to each other. They’re the essential plumbing of the modern internet.</p><h3>The API Analogy: The Restaurant Waiter</h3><p>Imagine you’re at a restaurant:</p><ul><li><strong>You (The User):</strong> The client (the app or website). You want a meal (information or service).</li><li><strong>The Kitchen (The Data/Service Provider):</strong> The server. It holds the ingredients and knows how to make the meal.</li><li><strong>The Waiter (The API):</strong> Takes your order (request), delivers it to the kitchen, brings back your food (response), and handles the transaction.</li></ul><p>The waiter (API) is crucial: you get what you need without knowing the kitchen’s secrets, and the kitchen doesn’t have to talk directly to every customer.</p><h3>What Is API Security?</h3><p><strong>API Security</strong> is protecting these digital waiters from unauthorized access and cyber threats. Essentially, it ensures that:</p><ol><li>Only the right people (or programs) can place an order.</li><li>The waiter doesn’t mess up the order (data integrity).</li><li>The waiter doesn’t reveal too much about the kitchen (privacy).</li></ol><p>Without strong API security, hackers could steal data, change orders, or walk straight into the digital kitchen.</p><h3>Why You Should Care</h3><p>APIs power almost everything you do online, so insecure APIs can directly affect your life.</p><h3>1. Personal Data Is at Risk</h3><p>When you log into an app, the API verifies your credentials and retrieves personal information including your name, email, address, purchase history, and sometimes payment details.</p><p><strong>Threat:</strong> Weak APIs can allow hackers to bypass login screens and steal sensitive data, leading to identity theft or spam.</p><h3>2. Your Money Is Vulnerable</h3><p>APIs handle every financial transaction, from bank transfers to online purchases.<br> <strong>Threat:</strong> Poorly secured payment APIs could let attackers intercept or alter transactions, causing unauthorized charges or stolen funds.</p><h3>3. Privacy Could Be Exposed</h3><p>Apps like weather trackers or social media platforms use APIs to share location, health stats, or private activity with other services.<br> <strong>Threat:</strong> Security flaws could expose exact GPS locations, private messages, or sensitive activity.</p><h3>4. Service Disruptions</h3><p>If a company’s API is attacked (e.g., via DDoS), the system could crash.<br> <strong>Impact:</strong> You may be unable to log in, book flights, or use your favorite service.</p><h3>How Companies Secure APIs</h3><ol><li><strong>Authentication:</strong> Verifying the client before processing requests — like showing your reservation to the waiter.</li><li><strong>Authorization:</strong> Ensuring clients only access allowed data — like preventing a customer from peeking at another table’s order.</li><li><strong>Rate Limiting:</strong> Capping request frequency to prevent overwhelming the system.</li><li><strong>Encryption:</strong> Scrambling data in transit so intercepted information is unreadable.</li></ol><h3>What You Can Do</h3><p>While API security is mainly the company’s responsibility, you can reduce risk:</p><ul><li>Use <strong>strong, unique passwords</strong> and a password manager.</li><li>Enable <strong>multi-factor authentication (MFA)</strong>.</li><li>Keep apps <strong>updated</strong> for security patches.</li></ul><p><strong>Key Takeaway:</strong> APIs are the engine of our digital lives. When secure, everything runs smoothly, and your data stays private. When not, the risk extends directly to your wallet, identity, and peace of mind.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3341f22296b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Postman for API Security Testing]]></title>
            <link>https://medium.com/@gertnsaku/getting-started-with-postman-for-api-security-testing-a3d7e034bf1a?source=rss-f02fd6e81b8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3d7e034bf1a</guid>
            <dc:creator><![CDATA[Gertnsaku]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 16:12:33 GMT</pubDate>
            <atom:updated>2025-12-12T16:12:33.021Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rx4rrRzTpMBknk2jangy3w.png" /></figure><p>API security can feel a little overwhelming at first, but the right tools make help make learning easier. Postman is one of the best tools for beginners entering API security because it provides a simple interface for sending requests, inspecting responses, and experimenting with different attack techniques in a safe environment.</p><h3>What Postman Does</h3><p>Postman is a powerful API platform that lets you:</p><ul><li><strong>Send API requests</strong> (GET, POST, PUT, DELETE, PATCH, etc.)</li><li><strong>Add authentication</strong> (Bearer tokens, API keys, Basic Auth, OAuth)</li><li><strong>Modify request headers and body</strong> to test how an API behaves with different inputs</li><li><strong>View detailed responses</strong> including status codes, headers, and JSON output</li><li><strong>Automate tests</strong> using scripts</li><li><strong>Organize requests into collections</strong> for repeatable testing</li></ul><p>Even though it is widely used by developers, Postman is also a great <strong>entry-</strong>level tool for API security because it gives you full visibility into how an API responds.</p><h3>Security Tests in Postman</h3><p>One of the first tests you can perform with Postman is checking authorization controls.</p><h3>Test: Accessing a Protected Endpoint Without a Token</h3><p>I attempted to request a GitHub user endpoint that requires authentication without including a token.</p><p><strong>What I did:</strong></p><ul><li>Sent a GET request to a protected GitHub API route.</li><li><strong>Removed the Authorization header</strong> to simulate an unauthenticated user.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KwQFbltjzo4pAcmdDwWZFQ.png" /></figure><p><strong>Result:</strong></p><ul><li>The server returned an error indicating the request was unauthorized.</li><li>This confirmed the API correctly blocks access when no valid token is provided.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cojHBpKjuYz4RaIchifSJg.png" /></figure><p>This simple test is the foundation of API security: ensuring that sensitive data is never accessible without proper credentials.</p><h3>Why this is important</h3><p>Many real-world breaches happen because APIs fail to:</p><ul><li>check authentication properly</li><li>validate tokens</li><li>enforce authorization rules</li></ul><p>Tools like Postman make it easy for anyone to test these controls on their own.</p><h3>Conclusion</h3><p>Postman is a begginner friendly tool that helpos you understand how APIs work and how you can test them. There are several tests you can perform with postman including simple beginner tests like checking how APIs behave without valid credentials. This helps you build a strong foundatiin for more advanced API security tests later on. Postman also offers a very safe hands on enviroment where you can explore a lot of API security tests.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3d7e034bf1a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Performed Basic API Security Tests Using Postman (Beginner Edition)]]></title>
            <link>https://medium.com/@gertnsaku/how-i-performed-basic-api-security-tests-using-postman-beginner-edition-06763a048691?source=rss-f02fd6e81b8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/06763a048691</guid>
            <category><![CDATA[postman-testing]]></category>
            <category><![CDATA[api-sec]]></category>
            <category><![CDATA[api-security]]></category>
            <dc:creator><![CDATA[Gertnsaku]]></dc:creator>
            <pubDate>Thu, 11 Dec 2025 19:30:16 GMT</pubDate>
            <atom:updated>2025-12-11T19:30:16.486Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s world, APIs (Application Programming Interfaces) are everywhere. They allow applications to communicate with each other and are integral to almost every digital service. With their increasing use, ensuring the <strong>security of APIs</strong> has become critical.</p><p>As part of my APISEC learning journey, I decided to perform <strong>basic API security tests using Postman</strong>. For this hands-on exercise, I chose the <strong>GitHub API</strong> because it is widely used, has real protected endpoints, and allows me to explore authentication, authorization, and input validation easily.</p><p>In this article, I’ll walk you through my process of testing four security aspects:</p><ol><li>Unauthenticated request</li><li>Authenticated request</li><li>Object ID / authorization test</li></ol><p>4. Rate-limit enforcement</p><p>I’ll also explain why I ran each test the way I did, and what I learned.</p><h3>Security Test 1 — Unauthenticated Request</h3><p><strong>Goal:</strong> To show that protected endpoints reject unauthenticated requests. I started with the /user endpoint, which returns the profile of the authenticated user.</p><p><strong>Steps in Postman:</strong></p><ol><li>Created a <strong>GET request</strong> → URL:</li></ol><pre>https://api.github.com/user</pre><p><strong>2. Removed the Authorization header</strong> to simulate an unauthenticated request.</p><p>3. Clicked <strong>Send</strong> → The response was:</p><pre>{<br>    &quot;message&quot;: &quot;Requires authentication&quot;,<br>    &quot;documentation_url&quot;: &quot;https://docs.github.com/rest&quot;,<br>    &quot;status&quot;: &quot;401&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OzNhMzj-zRStFyPSVoKwAg.png" /></figure><p><strong>Why I ran it this way:</strong></p><p>I wanted to see what happens if someone tries to access a protected endpoint without credentials.</p><p>GitHub returned 401 Unauthorized → this confirmed that <strong>authentication is enforced properly</strong>.</p><h3>Security Test 2 — Authenticated Request</h3><p>Next, I tested the same endpoint with my PAT to confirm that <strong>valid authentication works</strong>.</p><p><strong>Steps in Postman:</strong></p><ol><li>Added the header:</li></ol><pre>Key: Authorization<br>Value: token YOUR_PERSONAL_ACCESS_TOKEN</pre><p>2. Clicked <strong>Send</strong> → The response returned my profile information:</p><pre>{<br>    &quot;login&quot;: &quot;GertrudeNsaku&quot;,<br>    &quot;id&quot;: 54606424,<br>    &quot;node_id&quot;: &quot;MDQ6VXNlcjU0NjA2NDI0&quot;,<br>    &quot;avatar_url&quot;: &quot;https://avatars.githubusercontent.com/u/54606424?v=4&quot;,<br>    &quot;url&quot;: &quot;https://api.github.com/users/GertrudeNsaku&quot;,<br>    ...<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m51j_Gu7TtgS8Yzvp0BxtQ.png" /></figure><p><strong>What I learned:</strong></p><ul><li>The PAT worked perfectly.</li><li>GitHub allows only authenticated requests to /user.</li><li>This step confirms that authentication is enforced correctly.</li></ul><h3>Security Test 3 — Object ID / Authorization Test</h3><p><strong>Goal:</strong> Test how GitHub enforces access to repositories I don’t own.</p><p>I tried to access a public repository not owned by me:</p><pre>https://api.github.com/repos/octocat/Hello-World</pre><p><strong>Steps:</strong></p><ol><li>Created a GET request → URL above</li><li>Added my PAT in Authorization header</li><li>Clicked <strong>Send</strong> → Response:</li></ol><pre>{<br>    &quot;message&quot;: &quot;Not Found&quot;,<br>    &quot;documentation_url&quot;: &quot;https://docs.github.com/rest/repos/repos#get-a-repository&quot;,<br>    &quot;status&quot;: &quot;404&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*19AvxxaSYT6hz1fRwBQ6Cg.png" /></figure><p><strong>Why I ran it this way:</strong></p><ul><li>I wanted to see if GitHub allowed access to a repo I don’t own.</li><li>The 404 Not Found response shows <strong>authorization is enforced</strong> → GitHub hides resources for which the user does not have permission.</li></ul><h3>Security Test 4— Rate-Limit Test</h3><p><strong>Goal:</strong> Test GitHub’s rate limiting.</p><p><strong>Steps in Postman:</strong></p><ol><li>Created a GET request → URL:</li></ol><pre>https://api.github.com/user</pre><p><strong>2. Removed the Authorization header</strong> (simulate unauthenticated requests)</p><p>3. Sent repeated requests (~60 times quickly) using Postman Runne</p><p>Response after exceeding limit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*90tj8gGRfyHsuqgyOGRh4g.png" /></figure><p><strong>What I learned:</strong></p><ul><li>GitHub enforces rate limits for security and stability.</li><li>Even unauthenticated requests are limited → protects the API from abuse.</li></ul><h3>Conclusion</h3><p>This exercise gave me hands-on experience testing API security using Postman. I learned how authentication and authorization are enforced. I also saw how GitHub validates request content and rate limits. These are foundational skills for anyone learning API security or penetration testing.</p><p>GitHub’s API was perfect for this exercise because it is real, widely used, and beginner-friendly. Performing these tests myself gave me confidence to understand how APIs enforce security controls in the real world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06763a048691" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>