bigpresh / bigpresh/Catalyst-Plugin-CheckFileUploadTypes
Support wildcard types e.g. `image/*`
- Langage dominant
- Perl
- Étoiles
- 0
- Forks
- 0
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
It would be very useful to be able to say "any kind of image is fine" with e.g. `image/*` as an allowed type, rather than having to list out every specific image format you want to expect.
For responsibility it should be documented as to be considered carefully, as e.g. `image/*` feels harmless as it's just image formats, but that includes `image/svg+xml` which can carry risks via XML external entity attacks, CSS exfiltration using fonts, scripts etc - so not just "an image"!)
To go along with it, it would probably also be useful to be able to negate MIME types, so you could say "all images, except..." e.g. `image/* !image/svg+xml` or similar so that it's possible to skip particular ones you're worried about without having to go back to listing out every other acceptable type.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
No file or test is named in the issue. Start by locating the plugin's existing allowed-MIME-type validation and its tests; done means wildcard and negated MIME types behave as agreed, with security documentation covering SVG and related risks.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- perl
- Domaine
- security
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100