CVE-2024-25124CWE-346CWE-942

Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials

Critical · published February 21, 2024

CVSS v3.1
9.4
EPSS
1%
Percentile
50.7
In the wild
Unconfirmed
What it is

🚨 A wildcard in your CORS settings can be a recipe for disaster! If you're running Fiber below version 2.52.1, you might be unintentionally waving a 'come on in' sign to attackers. 🔥 Think of CORS as a restaurant's guest list. Allowing * as a guest means anyone can join the party, even when you've set 'yes' for the VIP section (credentials). That's like inviting all your neighbors to a private dinner while letting them bring their friends — absolutely chaotic! This misconfiguration could lead to unauthorized access to sensitive user data, where attackers might stroll right in and grab whatever they please. Imagine sensitive information leaking or your application being exploited in various nefarious ways — that’s the kind of trouble this vulnerability invites!

Put simply

Think of CORS as a restaurant's guest list. Allowing * as a guest means anyone can join the party, even when you've set 'yes' for the VIP section (credentials). That's like inviting all your neighbors to a private dinner while letting them bring their friends — absolutely chaotic! The vulnerability in Fiber's CORS middleware allows the Access-Control-Allow-Origin header to be set to a wildcard (`*`) while Access-Control-Allow-Credentials is true. This configuration goes against best practices and opens the door for security issues.

What to do

This misconfiguration could lead to unauthorized access to sensitive user data, where attackers might stroll right in and grab whatever they please. Imagine sensitive information leaking or your application being exploited in various nefarious ways — that’s the kind of trouble this vulnerability invites! Upgrade to Fiber version 2.52.1 immediately to patch this vulnerability! Alternatively, manually validate your CORS configurations to ensure you aren’t permitting wildcard origins when credentials are enabled. Better safe than sorry! You've got this! Secure your application and become a security hero! 🦸

The record
Technical detail
CVSS v3.1
9.4 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00655 · 50.7th percentile
Weaknesses
CWE-346 · Origin Validation Error; CWE-942 · Permissive Cross-domain Security Policy with Untrusted Domains
Published
2024-02-21T21:01Z
EPSS history
Timeline
  • 21 FEB 21:01Z
    Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials
    cvelistv5