HexBrain

Enjin · Report #2545994

Cloudflare /cdn-cgi/ path allows resizing images from unauthorised sources on enjinusercontent.com

Validstatus
lowseverity
29upvotes
19 Jun 2024disclosed

Summary

@19whoami19 identified that one of Enjin's websites (enjinusercontent.com) had a misconfiguration within Cloudflare, due to being on a legacy pricing model, which enabled resizing images outside of the domain for which the request was initiated. A toggle was introduced for users of the legacy pricing model which allowed disabling this functionality without direct engagement with Cloudflare. The functionality was disabled, cache was purged, and the issue confirmed as having been resolved.

How it was found

Summary

Hello team, During a review of the website: https://nft.production.enjinusercontent.com/ I discovered that any resource hosted under any external CDN can be rendered on the website without any restrictions. This behavior leads display of images or resources on the website, which may cause confusion for users or expose potentially sensitive assets or otherwise deface the websites or carry our misinformation or malware campaigns.

  • You Achive : 1- HTML INJECTION 2- SSRF and Portal Scanning 3- Unrestricted rendering of resources from external CDNs

Steps to Reproduce :

1- For HTMLi Visit : https://nft.production.enjinusercontent.com/cdn-cgi/image/width=1000,format=auto/https://raw.githubusercontent.com/simple-icons/simple-icons/develop/icons/cloudflare.svg

{F3347763}

Impact

Misuses of the cdn-cgi Misconfig to render external resources Access control Bypass by smuggling in external resources to render at the company url unrestricted Misinformation and platform manipulation for displayed content to any user without interaction Attacker can redirect users to another websites, virtual defacement of your website etc. Webpage modifications HTML Injection

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original