+V5 File Handling
---+V5.1 File Handling Documentation
------+V5.1.1 Verify that the documentation defines the permitted file types, expected file extensions, and …
---+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.3 File Storage
------+V5.3.1 Verify that files uploaded or generated by untrusted input and stored in a public folder, are not …
------+V5.3.2 Verify that when the application creates file paths for file operations, instead of user-submitted …
------+V5.3.3 Verify that server-side file processing, such as file decompression, ignores user-provided path …
---+V5.4 File Download
------+V5.4.1 Verify that the application validates or ignores user-submitted filenames, including in a JSON …
------+V5.4.2 Verify that file names served (e.g., in HTTP response header fields or email attachments) are …
------+V5.4.3 Verify that files obtained from untrusted sources are scanned by antivirus scanners to prevent …

V5 File Handling

Control Objective

The use of files can present a variety of risks to the application, including denial of service, unauthorized access, and storage exhaustion. This chapter includes requirements to address these risks.

References

For more information, see also:

1. Übersicht

Bezeichnung Standard
V5.1 File Handling Documentation

This section includes a requirement to document the expected characteristics of files accepted by the application, as a necessary precondition for developing and verifying relevant security checks.

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.

V5.3 File Storage

This section includes requirements to prevent files from being inappropriately executed after upload, to detect dangerous content, and to avoid untrusted data being used to control where files are being stored.

V5.4 File Download

This section contains requirements to mitigate risks when serving files to be downloaded, including path traversal and injection attacks. This also includes making sure they don't contain dangerous content.

1.1 Referenzen

1.2 Identifizierte Anforderungen

1.3 Zugehörige Regulierungen

2. Identifizierte Anforderungen

Anforderungen
Quelle Anforderung

3. Zugehörige Regulierungen

Regulierungen
Quelle Regulierung
  • 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.