Exploiting The Overlooked From Regex Bypasses To Full Source Code Leaks
The write-up describes five separate vulnerabilities: an IDOR-like issue where tampering with task IDs could hide security tasks tenant-wide, an SVG upload causing a system-wide denial of service via XML external entity processing, a case-manipulation bypass exposing Prometheus metrics, an SSRF in webhook testing that allowed internal port scanning and survived a fix via redirection, and an exposed .git directory leaking the full source code. An attacker could use these to disrupt operations, access internal services, or obtain sensitive code.
Published on infosecwriteups.com
It’s been a while since my last write-up, yet the break brought some valuable insights. Over the past few months, I’ve quietly stacked up few real-world security findings some subtle, some severe, and all of them overlooked in their own way.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a combination of missing input validation, unsafe XML parsing, case-insensitive access control, insufficient SSRF protections, and a deployment misconfiguration exposing .git.
Impact
These vulnerabilities could allow an attacker to hide security tasks tenant-wide, cause a system-wide denial of service, expose internal metrics, scan internal networks, and leak the entire source code, though some were limited by initial fixes or low sensitivity.
What the attacker needed
Admin access for task ID tampering; ability to upload SVG files; access to the webhook feature; none for .git exposure
The fix
The text does not specify fixes for most issues, but implies that proper input validation, safe XML parsing, case-sensitive access controls, robust SSRF protections, and removing exposed .git directories are needed; some issues were initially fixed but bypassed.
How it was found
- Send a POST request to the ignored-tasks endpoint with a crafted long numeric task ID.
- Observe that the system enters a broken modal state and the corrupted state affects all users across the tenant.
- Upload an SVG file containing an xi:include directive to the logo upload feature.
- Observe that the backend attempts to parse the include path, causing a timeout and a 504 Gateway Timeout error for all users accessing the endpoint.
- Access the /metrics endpoint with mixed uppercase and lowercase characters to bypass access controls.
- Use the webhook testing feature to make requests to alternate loopback IPs (e.g., [redacted]) and later via a redirect server to enumerate internal ports.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This post describes several real bugs found in a web application. One bug let an admin hide security tasks for everyone by changing a number in a request, another let an uploaded image file crash part of the system, a third exposed internal system statistics by changing letter case in a URL, a fourth let the server be tricked into scanning internal network ports, and a fifth leaked the entire source code because a hidden folder was left accessible. These are common mistakes that can have serious consequences.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.