activestorage is vulnerable to Insufficient Verification of Data Authenticity
47
CVE Score
Medium
Insufficient Verification of Data Authenticity
When a Google Cloud Storage service in activestorage is configured with cache_control, direct-upload URLs are signed with V4 and the signature covers only Cache-Control and Host. A direct-upload client can send its own Content-Type and skip the declared Content-MD5 without invalidating the URL. Cloud Storage then stores that content type, so the object can be served as inline HTML on the storage origin and can register a service worker for the bucket path. The fix signs every GCS direct upload with V2, which binds an empty Content-Type and the declared Content-MD5.
Upgrade the activestorage library to the patch version or remove the cache_control option from the GCS service configuration.
You are affected if you are using a version that falls within the vulnerable range and the application uses the Google Cloud Storage service with cache_control and accepts direct uploads.
0.1 - 8.0.5.1
Fixed in 8.0.5.28.1.0 - 8.1.4
Fixed in 8.1.4.1activestorage is vulnerable to Insufficient Verification of Data Authenticity in versions 0.1 - 8.0.5.1 and 8.1.0 - 8.1.4.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.