Upload Insecure Files: Defaults Extensions

File uploadExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

Here is a list of the default extensions for web shell pages in the selected languages (PHP, ASP, JSP).

  • PHP Server

    powershell
    .php
    .php3
    .php4
    .php5
    .php7
    
    # Less known PHP extensions
    .pht
    .phps
    .phar
    .phpt
    .pgif
    .phtml
    .phtm
    .inc
  • ASP Server

    powershell
    .asp
    .aspx
    .config
    .cer # (IIS <= 7.5)
    .asa # (IIS <= 7.5)
    shell.aspx;1.jpg # (IIS < 7.0)
    shell.soap
  • JSP : .jsp, .jspx, .jsw, .jsv, .jspf, .wss, .do, .actions

  • Perl: .pl, .pm, .cgi, .lib

  • Coldfusion: .cfm, .cfml, .cfc, .dbm

  • Node.js: .js, .json, .node

Other extensions that can be abused to trigger other vulnerabilities.

  • .svg: XXE, XSS, SSRF

  • .gif: XSS

  • .csv: CSV Injection

  • .xml: XXE

  • .avi: LFI, SSRF

  • .js : XSS, Open Redirect

  • .zip: RCE, DOS, LFI Gadget

  • .html : XSS, Open Redirect

Comments

No comments yet.