EN, Change language
Englishالعربية
JO-169

Visitor uploads are restricted to allowed extensions; executables and double extensions are banned.

The requirement (from the 2022 Guidelines)

Visitor uploads are restricted to allowed extensions; executables and double extensions are banned.

Why it matters to users

When users upload documents with an application, they assume nobody else can upload something harmful to the same place. An executable or double-extension file can give an attacker control of the server and of other people's documents.

How to fix it

Limit allowed types with the accept attribute and check them again on the server, block executables and double extensions such as .pdf.exe, and store uploads in separate folders and databases where nothing can run. Then scan again.

How we measure it

input[type=file] accept attribute only; server-side checks are manual (nothing is uploaded). Partly measured: we measure what the public pages show of this rule; the rest needs a review.

Its place in the MODEE guidelines

Related rules

Restricted file uploads · Jordan JO-169 | xfix