8182870d38
Defensive validation in /api/branding ensures base64-encoded logo content matches its declared MIME type by checking image magic bytes (PNG, JPEG, GIF, WebP). If the content doesn't match, the legacy base64 fields are nulled out before returning to prevent MIME type confusion attacks. Co-Authored-By: Paperclip <noreply@paperclip.ing>