https://████████ Impacted by DNN ImageHandler SSRF
The DNN ImageHandler endpoint on a DNN 8.0.0 to 9.1.1 site was vulnerable to server-side request forgery (CVE-2017-0929), allowing an attacker to make the server fetch arbitrary image URLs. This could be used to map and access internal NIPR sites, disclose origin IP addresses, and potentially deface the site by displaying attacker-chosen images.
- Triaged in 3 days
- Fixed in 10 days
- Disclosed after 9 months
Summary: https://███████ runs DNN 8.0.0 to 9.1.1 and is impacted by CVE 2017-0929 allowing for a SSRF through the DNN ImageHandler. Origin servers will request any image file supplied by the attacker. This allows for internal NIPR sites to be mapped and accessed through a vulnerable host. The attack is limited by file extension.
Impact Vulnerable site allows interaction with internal NIPR sites. Pulling default image files from internal NIPR sites verifies the site is online and responsive. Discloses origin IP addresses, and could be manipulated further. This could also be used as a defacement technique making the sight display images of radical ideologies or pornography.
Step-by-step Reproduction Instructions Access the DNN image handler on the vulnerable site. Supply Burp collaborator payload (working on free burp right now and cannot provide a collab payload) or external attacker controlled image for SSRF trigger. Payload Example: https://█████/DnnImageHandler.ashx?mode=file&url=http://1.bp.blogspot.com/-q19YK-T_wAU/UdpDm76jIgI/AAAAAAAAAWo/yjeRx4Vet80/s400/meme11.jpg
https://████████/DnnImageHandler.ashx?mode=file&url=http://www.███/data/uploads/images/DC3_seal.png
Product, Version, and Configuration DNN 8.0.0 to 9.1.1 with ImageHandler exposed.
Suggested Mitigation/Remediation Actions Upgrade to DNN 9.2.0 or later. If upgrading isn't possible, consider blocking requests to ImageHandler if it is unused.
Impact
Recommend High Severity: Vulnerable site allows interaction with internal NIPR-Only sites. Pulling default image files from internal NIPR sites verifies the site is online and responsive. Discloses origin IP addresses, and could be manipulated further to cause harm on internal NIPR sites. This could also be used as a defacement technique making the sight display images of radical ideologies or pornography.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the DNN ImageHandler accepted a user-supplied URL and fetched it without validating that the destination was external and safe, allowing requests to internal resources.
Impact
The vulnerable site could interact with internal NIPR sites, verify their availability, disclose origin IP addresses, and potentially be used for defacement by displaying attacker-chosen images; the attack is limited by file extension.
What the attacker needed
DNN 8.0.0 to 9.1.1 with ImageHandler exposed; ability to supply an external image URL
The fix
Upgrade to DNN 9.2.0 or later; if upgrading isn't possible, consider blocking requests to ImageHandler if it is unused.
How it was found
- Access the DNN image handler on the vulnerable site.
- Supply a Burp Collaborator payload or an external attacker-controlled image URL to trigger the SSRF.
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 report has not been written yet. The Original tab links to the source.
Server-side request forgery (SSRF) is when a website can be tricked into making requests to other servers on the attacker's behalf. Here, the image handler would fetch any image URL supplied by the attacker, so the attacker could use it to reach internal sites that are normally not accessible from the internet. The attack was limited because only image file extensions were allowed.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.