CVE-2022-42002

SonicJS through 0.6.0 allows file overwrite

published September 30, 2022

CVSS
โ€”
EPSS
1%
Percentile
70.1
In the wild
Unconfirmed
What it is

โš ๏ธ A file overwrite vulnerability in SonicJS could let anyone play puppet master with your files! ๐Ÿšจ Think of it like a mischievous guest at a hotel who can swap out the room service menu with their own โ€” suddenly, your favorite dishes are replaced with questionable options without anyone to stop them! An attacker could overwrite or even delete critical files in your SonicJS application, potentially leading to chaos in your system. With no authentication required, it's alarmingly easy for an unauthorized user to wreak havoc.

Put simply

Think of it like a mischievous guest at a hotel who can swap out the room service menu with their own โ€” suddenly, your favorite dishes are replaced with questionable options without anyone to stop them! This vulnerability allows unauthorized access to the fileCreate and fileUpdate mutations, enabling file overwrite operations without any authentication necessary, leading to arbitrary file writes and deletions.

What to do

An attacker could overwrite or even delete critical files in your SonicJS application, potentially leading to chaos in your system. With no authentication required, it's alarmingly easy for an unauthorized user to wreak havoc. To secure your application, upgrade SonicJS to version 0.7.0 or later, where these mutations have been protected. Additionally, implement proper authentication and authorization checks for all file operations to ensure only legitimate users can make updates. You've got this! Follow these steps, and you'll turn this vulnerability into a thing of the past! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01303 ยท 70.1th percentile
Published
2022-09-30T23:53Z
EPSS history
Timeline
  • 30 SEP 23:53Z
    SonicJS through 0.6.0 allows file overwrite
    cvelistv5