Improper neutralization of formula elements in yii-helpers
The yii-helpers library did not properly neutralise formula elements in CSV files it generated. An attacker could exploit this to cause client-side command injection, code execution, or exfiltration of confidential data when a victim opens the CSV.
luyadev/yii-helpers
Originally disclosed on huntr
Formula Injection/CSV Injection due to Improper Neutralization of Formula Elements in CSV File in GitHub repository luyadev/yii-helpers prior to 1.2.1. Successful exploitation can lead to impacts such as client-sided command injection, code execution, or remote ex-filtration of contained confidential data.
From the GitHub Advisory Database (GHSA-f9p3-h6cg-2cjr, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the library did not escape or prefix formula-triggering characters (such as =, +, -, @) when writing CSV cells.
Impact
Successful exploitation could lead to client-side command injection, code execution, or remote exfiltration of confidential data.
What the attacker needed
Victim opens a crafted CSV file
The fix
The issue was fixed in version 1.2.1.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
CSV files are spreadsheets. If a cell starts with a special character like '=', spreadsheet software may treat it as a formula and run it. This library failed to stop that, so a malicious CSV could run commands on the victim's computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.