Annanim News
Now
Quantum & precision measurementChina's Jiuzhang 4.0 photonic quantum computer wins a World Internet Conference awardDefense techIWI's counter-drone system enters service in Thailand, with four more Asian countries in procurementCybersecurityESET: China-aligned hackers hijacked Sogou keyboard requests to install a backdoorCybersecuritySonicWall: two GMS flaws will not be fixed because the product is no longer supportedRegulation & businessUS midterms: measures to restrict data centers win almost everywhereAutonomous vehiclesKorea: consumer group accuses Tesla of selling FSD to owners who can't use itCybersecurityChrome 157 fixes 213 vulnerabilities, seven of them criticalCybersecurityIsrael's Sentra raises $150 million for data securityChips & hardwareReport: Nvidia will supply only about 1% of China's RTX Pro 5500 ordersCybersecurityCritical Rails flaw: a crafted upload lets attackers write files to the serverChips & hardwareAMD expects quarterly revenue above Intel's for the first time in its historyCybersecurityTwo Xen flaws let a malicious virtual machine read and write other machines' memoryQuantum & precision measurementBreaking one symmetry is enough for full quantum control of an atom chainChips & hardwareWingtech rejects Nexperia restructuring plan, alleging discriminationDefense techCell antennas as radar: NATO, China and Ericsson test drone detection on 5G networksRoboticsMeta built a humanoid robot with China's Fourier in about three months

Originally published:

Critical Rails flaw: a crafted upload lets attackers write files to the server

Ruby on Rails has fixed a 9.8-rated flaw in Active Storage that lets an attacker with no account write files to the server through an upload, in apps that process uploads with ImageMagick. The fix is in versions 8.1.4.1 and 8.0.5.2.

Critical Rails flaw: a crafted upload lets attackers write files to the server
Image: The Hacker News (opens the source site in a new tab)

The Ruby on Rails project published an advisory on a critical (CVSS 9.8) flaw in Active Storage, the component that handles file uploads. According to the advisory, in apps that process uploads with ImageMagick, an unauthenticated attacker can write arbitrary files to the server by uploading a crafted file. In apps that store files on the server's disk (the Disk service), the attacker can also read any file the app can read.

According to Rails, those files typically include the app's secret_key_base and its credentials for other systems, and exposing them can lead to remote code execution or lateral movement. Attaching the uploaded file is enough to reach the flaw. It has no CVE identifier yet (it is tracked as GHSA-f3w6-w445-fwh9), and the advisory does not say whether it has been exploited. It was reported by researcher RyotaK of GMO Flatt Security.

What to do: update to 8.1.4.1 or 8.0.5.2. Every earlier Active Storage version is affected, and series older than 8.0 will get no fixes because they are no longer supported. To check whether an app uses ImageMagick, look at the config.active_storage.variant_processor setting. The same releases also fix a second, high-severity (8.8) Active Storage flaw.

Sources

Topics

Install the app

In Safari: tap the Share button, then “Add to Home Screen”.