Skip to content

allowed_file uploading bypass by simply changing file extension #112

@nevercodecorrect

Description

@nevercodecorrect

Hi,
When I try the product, I find that it is easy to bypass the file type restriction on the uploading functionality. The issue is CWE-646: Reliance on File Name or Extension of Externally-Supplied File

You could rename any file with the extension types presented in here to bypass the limitation. Only checking extension suffix in the filename is not enough, using magic number to check would be a better approach.

Thanks for your time reading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions