-
-
Notifications
You must be signed in to change notification settings - Fork 69.3k
[Bug]: Possible security problem with the .svg file #5170
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingsecuritySecurity documentationSecurity documentationstaleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Summary
What went wrong?
https://mintcdn.com/clawhub/4rYvG-uuZrMK_URE/assets/pixel-lobster.svg <-- This is hardcoded in the app. It's well known that .svg files can contain malicious code in them. This file absolutely should not be hardcoded as a web asset to some unknown CDN that could be comprimised.
Steps to reproduce
- Install and build from source
- Fire up the Gateway
- Observe the link to the image being a remote SVG file.
Expected behavior
What did you expect to happen?
It should load a local version of the SVG file. Where it can be replaced with a TRUSTED image file.
Actual behavior
What actually happened?
It loaded an untrusted remote resource.
Environment
- Clawdbot version: main
- OS: Linux
- Install method (pnpm/npx/docker/etc):
pnpm
Logs or screenshots
Paste relevant logs or add screenshots (redact secrets).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsecuritySecurity documentationSecurity documentationstaleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Give feedbackNo fields configured for issues without a type.