Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.

Saving can overwrite arbitrary files #46

@Roadcrosser

Description

@Roadcrosser

I run a Discord Bot that runs games on instances of DumbFrotz. However, when saving a game, one can specify an arbitrary filepath for the save, potentially overwriting other files in the entire filesystem.

Examples of dangerous filepaths one can specify:

  • /home/pi/Desktop/save
  • ../save

Replacing save with any filename will simply overwrite them.

Suggestions:
A flag when initializing DFrotz to output the raw savedata to STDOUT to be read externally by the program managing it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions