Skip to content
SSRF Write-up Intermediate

Fixture - WebVerse (Medium)

The PDF export feature used wkhtmltopdf 0.12.6, which is vulnerable to SSRF via the template_url parameter. An attacker could make the server request internal URLs, and by chaining with a SQL injection in an internal debug console, read database contents including player contracts and a flag.

medium.com

Published on medium.com

I thought this was going to be an adventure. And wow, it was.

7s26Simon, on medium.com

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 the PDF generator (wkhtmltopdf 0.12.6) allowed arbitrary URL fetching via the template_url parameter, and an internal debug console had an unparameterised SQL query.

Impact

An attacker could read all player contracts and a flag from the database, and potentially access other internal resources.

What the attacker needed

A free account; ability to create assessments

How it was found

  1. Register and log in to the ScoutLens app.
  2. Create a player assessment and go to the Export tool.
  3. Capture the export request and modify the template_url parameter.
  4. Observe that only *.scoutlens.io subdomains are allowed.
  5. Find an internal subdomain (analytics.scoutlens.io) and use it to reach /v2/console.
  6. Inject SQL via the sql parameter in the console URL to extract data.

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.

The app let users export a PDF report, and the server used a tool called wkhtmltopdf to build it. That tool had a known flaw: it would fetch any web address given in a parameter, even internal ones. The attacker used this to reach an internal debug page that had a SQL injection, letting them read the database.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.