Skip to content

Magic byte blacklist for NFO uploads #78

Open
@sagamusix

Description

@sagamusix

It happens frequently that screenshots are uploaded as NFOs instead. With a user mistake happening that often, it is obvious that there is a UI problem, but that's not the point of this issue. As an easy countermeasure, the uploaded NFO could be scanned for a few selected magic bytes of commonly used graphics formats and then reject the upload. Examples: "GIF", "\xFF\xD8\xFF" (JPEG), "\x89PNG".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions