Skip to content
SSRF Write-up Intermediate

DNN CMS Server-Side Request Forgery (CVE-2021-40186)

The DNN CMS image upload from URL feature allowed any URL to be fetched and saved locally, and because the HTTP client followed redirects without validating the final destination, an attacker could make the server request internal or cloud metadata resources. This could expose sensitive information such as AWS keys or internal admin interfaces.

Appcheck NG Follow

Published on appcheck-ng.com

The AppCheck research team identified a Server-Side Request Forgery (SSRF) vulnerability within the DNN CMS platform, formerly known as DotNetNuke. SSRF vulnerabilities allow the attacker to exploit the target system to make network requests on their behalf, allowing a range of possible attacks.

Jonny Kenyon, on appcheck-ng.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

The URL validation only checked the initial URL's file extension, and the HTTP client followed redirects without re-validating the final destination.

Impact

An attacker could access internal systems behind the firewall or cloud metadata services, potentially disclosing sensitive information such as AWS keys; the text notes impact depends on the target environment.

What the attacker needed

A registered user account; ability to set profile picture by URL

The fix

No official fix was provided at the time of publication; mitigations include disabling image uploads for untrusted users and restricting outbound HTTP access from the DNN server.

How it was found

  1. Log in as a standard user and open the profile image upload page.
  2. Create an image URL that redirects to the target system and submit it via the upload form.
  3. In the browser's network tab, find the UploadFromUrl request and copy the 'path' property from the response.
  4. Access the path URL with view-source to review the response from the target.

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.

Server-Side Request Forgery (SSRF) is when a server is tricked into making a request to a destination the attacker chooses. Here, the profile picture upload by URL feature let users supply a link, and the server fetched it without checking where it really went after redirects. An attacker could point it at internal systems or cloud metadata services to steal secrets.

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.