Category

Api Security

Security vulnerabilities and automated fixes for api security issues

7 posts found

critical8 min

How API Key Leakage in Error Messages Gets You Pwned

A critical vulnerability in `gemini-eval.mjs` allowed a live API key to be printed directly into error logs and console output whenever the Gemini API returned an error message containing the key string. The fix introduces runtime redaction of the API key from all error messages before they are logged, preventing accidental exposure in CI/CD pipelines, terminal history, and log aggregation systems. This is a textbook example of how secrets can leak through indirect channels even when developers

#api-security#secret-management#javascript+4 more
O
orbisai0security
May 28, 2026
critical8 min

Unauthenticated Internal Metrics Endpoints: A Silent Recon Gateway

A critical security vulnerability was discovered in `api/extensions/ext_app_metrics.py` where internal operational endpoints exposing thread states and database connection pool statistics were accessible without any authentication. This silent reconnaissance gateway allowed attackers to map application internals, identify database infrastructure, and plan targeted denial-of-service attacks. The fix closes these unauthenticated endpoints, eliminating a significant information disclosure risk.

#security#authentication#information-disclosure+4 more
O
orbisai0security
May 12, 2026
medium8 min

Shell Script JSON Injection: When printf Becomes a Security Risk

A medium-severity vulnerability was discovered and patched in `scripts/openai_compat_report.sh`, where shell-based JSON construction using `printf` and variable interpolation left API payloads open to injection attacks. Without proper escaping of special characters, attacker-controlled input could malform JSON or silently alter API request semantics. This post breaks down how the vulnerability works, how it was fixed, and what every developer should know about safe JSON construction in shell scr

#shell-scripting#json-injection#bash-security+4 more
O
orbisai0security
May 9, 2026
critical11 min

Critical File Upload Vulnerability Fixed: How Unrestricted Uploads Put Flask APIs at Risk

A critical security vulnerability was discovered and patched in a Flask REST API endpoint that accepted image file uploads without any validation, size limits, or sandboxing. An attacker could exploit this flaw to upload malicious files disguised as images, potentially leading to remote code execution or exploitation of image-parsing libraries. The fix enforces strict file type validation, magic byte inspection, and upload size limits to close this dangerous attack vector.

#security#flask#python+4 more
O
orbisai0security
May 3, 2026
medium6 min

JWT Authentication Vulnerability: How Weak Token Validation Exposed Dashboard APIs

A critical authentication bypass vulnerability was discovered in a dashboard application where JWT tokens could be forged due to improper validation. The vulnerability affected multiple routes including backup, live chat, and authentication endpoints, potentially allowing attackers to access sensitive operations without proper authorization. This fix demonstrates why robust JWT validation is essential for API security.

#security#jwt#authentication+4 more
O
orbisai0security
Mar 28, 2026
medium6 min

Plaintext OAuth Tokens: A Critical Security Flaw in Credential Storage

A medium-severity vulnerability was discovered where OAuth tokens and API keys were being stored in plaintext on the local filesystem without any encryption. Despite having PBKDF2 cryptographic capabilities available in the application's dependencies, credentials were written directly to disk, exposing users to potential token theft and unauthorized account access.

#security#oauth#encryption+4 more
O
orbisai0security
Mar 28, 2026
medium8 min

Defending Against Rate Limit Bypass: Securing Express Applications from IP Spoofing

A critical rate limiting vulnerability in an Express.js application allowed attackers to bypass API throttling through IP rotation and header manipulation. This fix demonstrates how improperly configured rate limiters can be circumvented through proxy networks, VPNs, and forged X-Forwarded-For headers, potentially enabling brute force attacks, credential stuffing, and resource exhaustion.

#security#rate-limiting#express+4 more
O
orbisai0security
Mar 19, 2026