Excel Upload with malicious input

Scenario: - 

Where you can upload only excel file and you have confirmed all type of possibilities to upload a file ( changing the extension, double extensions, terminate extension [;], changing the content type header in the request etc.), finally not able to upload file except excel or csv.


Steps are: -

  1. Try to have a valid excel file.
  2. Disable all security options in the excel. Options >> trust center >> enable all "not recommended things".
  3. Enter payloads in any cell , if cell or data oriented sheet is not permiting you to enter the payloads or not executing the payloads then add a new worksheet and enter below mentioned payloads.
    1. =cmd|'/c calc.exe'!_xlbgnm.A1
    2. =cmd|'/C notepad'!_xlbgnm.B9
    3. you need to change the cells A1, B9 according to the pasted cell.



When any user will open this file it will give some warnings then obviously will run the calculator and notepad.














Comments