bigpresh / bigpresh/Catalyst-Plugin-CheckFileUploadTypes

Support wildcard types e.g. `image/*`

Abierto
#6 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement good first issue
Lenguaje dominante
Perl
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
perl
Área
security
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.