+V5.2 File Upload and Content
---+V5.2.1 Verify that the application will only accept files of a size which it can process without causing a …
---+V5.2.2 Verify that when the application accepts a file, either on its own or within an archive such as a …
---+V5.2.3 Verify that the application checks compressed files (e.g., zip, gz, docx, odt) against maximum …
---+V5.2.4 Verify that a file size quota and maximum number of files per user are enforced to ensure that a …
---+V5.2.5 Verify that the application does not allow uploading compressed files containing symlinks unless …
---+V5.2.6 Verify that the application rejects uploaded images with a pixel size larger than the maximum …

V5.2 File Upload and Content

File upload functionality is a primary source of untrusted files. This section outlines the requirements for ensuring that the presence, volume, or content of these files cannot harm the application.

1. Pregled

Naslov Standard
V5.2.1 Verify that the application will only accept files of a size which it can process without causing a …

Verify that the application will only accept files of a size which it can process without causing a loss of performance or a denial of service attack.

V5.2.2 Verify that when the application accepts a file, either on its own or within an archive such as a …

Verify that when the application accepts a file, either on its own or within an archive such as a zip file, it checks if the file extension matches an expected file extension and validates that the contents correspond to the type represented by the extension. This includes, but is not limited to, checking the initial 'magic bytes', performing image re-writing, and using specialized libraries for file content validation. For L1, this can focus just on files which are used to make specific business or security decisions. For L2 and up, this must apply to all files being accepted.

V5.2.3 Verify that the application checks compressed files (e.g., zip, gz, docx, odt) against maximum …

Verify that the application checks compressed files (e.g., zip, gz, docx, odt) against maximum allowed uncompressed size and against maximum number of files before uncompressing the file.

V5.2.4 Verify that a file size quota and maximum number of files per user are enforced to ensure that a …

Verify that a file size quota and maximum number of files per user are enforced to ensure that a single user cannot fill up the storage with too many files, or excessively large files.

V5.2.5 Verify that the application does not allow uploading compressed files containing symlinks unless …

Verify that the application does not allow uploading compressed files containing symlinks unless this is specifically required (in which case it will be necessary to enforce an allowlist of the files that can be symlinked to).

V5.2.6 Verify that the application rejects uploaded images with a pixel size larger than the maximum …

Verify that the application rejects uploaded images with a pixel size larger than the maximum allowed, to prevent pixel flood attacks.

1.1 Sklici

1.2 Ugotovljene zahteve

1.3 Povezani predpisi

2. Ugotovljene zahteve

Zahteve
Vir Zahteva

3. Povezani predpisi

Predpisi
Vir Regulativa
  • OWASP -

    EN: Publications of the OWASP Foundation, https://owasp.org/. OWASP® is a registered trademark of the OWASP Foundation, Inc.; GRCA is not affiliated with, nor endorsed by, the OWASP Foundation. Only the versions published by OWASP are authoritative.

    DE: Veröffentlichungen der OWASP Foundation, https://owasp.org/. OWASP® ist eine eingetragene Marke der OWASP Foundation, Inc.; GRCA steht in keiner Verbindung zur OWASP Foundation und wird von ihr nicht unterstützt. Maßgeblich sind allein die von OWASP veröffentlichten Fassungen.