Security concern: --delete option for restic restore? #93
Open
opened 2026-07-22 18:26:21 +00:00 by Apfelwurm
·
0 comments
No Branch/Tag Specified
main
renovate/docker-29.x
feature/makeDeleteDefault
restic-exporter
cmd-setup-restic-s3
prom-mon
feature/dockerfile
bb2-classic
feature/selective_paths
list
enable-label
backupbot_revolution
backup_volumes
multi_path
2.4.0+2.4.0
2.3.0+2.3.0-beta
2.2.0+2.2.1-beta
2.1.0+2.2.0-beta
2.0.1+2.1.1-beta
1.0.0+2.0.0-beta
0.2.0+1.0.0
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
moritz
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/backup-bot-two#93
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hey together,
because of the nice "little" Wordpress problem recently, we are currently sitting together and are restoring snapshots for wp instances. While thinking about in which ways persistence could be preserved even after a restored backup, i thought about the following scenario:
In php applications, there are often autoload mechanisms for plugins and some other parts of modular code (which for sure is going to be the case also in other applications), and so planting executable code for attackers in these spaces is a common practice.
Now to the problem:
Currently it seems, we are calling the restic restore without the delete parameter, which means, when i did not miss anything, that if a file exists in destination but did not exist in the snapshot, it remains untouched.
Which means, any maybe arbitrary additionally placed php file, will stay in the instance in this case, which would be a concerning security risk.
Is this behavior intentional? I think we should change this that --delete is a default behavior
https://restic.readthedocs.io/en/v0.19.1/050_restore.html seems to support what i am thinking.