
Cloud Vulnerability DB
A community-led vulnerabilities database
Any signed-in user could upload an HTML or SVG file that ran as a web page on the forum's own domain. Anyone who opened a link to it could have their account taken over, including moderators and administrators. Fixed in v0.7.3.
Waterhole ships config/uploads.php with 'allowed_mimetypes' => [], which UploadController passes to File::types(), so attachments of any type are accepted.
Upload::fromFile() stored each file on the public uploads disk as uploads/<hash>.<extension>, where the extension comes from the file's detected content (UploadedFile::hashName()). HTML content was stored as .html, SVG as .svg and XML as .xml, and the web server served them from the forum's origin with an active content type.
Because the file runs on the same origin, a script in it can read the XSRF-TOKEN cookie and send authenticated requests as the victim, such as changing their password. Login counts as a recent password confirmation, so no re-confirmation prompt blocks this.
The fix (v0.7.3) stores uploads detected as HTML, XML (including SVG), JavaScript or PHP as .txt with type text/plain, so they are served as inert text. The files can still be attached and downloaded.
Stored cross-site scripting (CWE-79). It affects every Waterhole forum running a version below 0.7.3 that allows uploads (the default) and serves uploads from the forum's own domain (the default public disk).
Any signed-in user can take over the account of any user who opens a link to the uploaded file, including moderators and administrators.
Files uploaded before upgrading are not changed by the update. After upgrading, delete any .html, .htm, .svg, .xhtml, .xml or .js files in the uploads directory (storage/app/public/uploads by default).
Workaround if you can't upgrade straight away: set allowed_mimetypes in config/waterhole/uploads.php to safe types, for example:
'allowed_mimetypes' => ['jpg', 'jpeg', 'png', 'gif', 'webp', 'pdf', 'txt', 'zip'],
Then delete the existing files listed above.
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."