Skip to content
Access control Write-up Intermediate

Red Team Finds A Way – (IN)Secure By Design

An internet-facing Squid proxy allowed access to internal networks, where password spraying compromised users. A chain of broken access control, stored XSS via SVG uploads, and HTML uploads without CSP enabled credential theft and administrator account takeover.

Iulian Florea Follow

Published on securitycafe.ro

In our previous post, Red Team Finds A Way – Exploiting The Human Factor, we explored how the human element can often be the weakest link in a security chain, and how with proper authorization, it can be ethically exploited to enhance system security.

Iulian Florea, on securitycafe.ro

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 an internet-exposed proxy without access controls, combined with missing security headers and insufficient file upload restrictions.

What the attacker needed

Internet-facing proxy; weak user passwords; file upload feature

How it was found

  1. Scan for open proxies and identify a Squid proxy on port 8080.
  2. Configure proxychains to use the proxy and scan private network ranges.
  3. Find a Domain Controller and gather usernames from leaks.
  4. Perform password spraying to compromise a few users.
  5. Exploit broken access control to view other users' and organisations' data.
  6. Upload an SVG file to trigger stored XSS, then upload an HTML file to harvest credentials.

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.

A proxy is a server that forwards web traffic. Here, an open proxy let the attackers reach internal machines that should not be reachable from the internet. Once inside, weak passwords and a file upload feature that accepted dangerous file types let them steal login details and take over admin accounts.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.