Skip to content

Arbitrary Code Execution #9

Description

@VFXGamer

https://github.com/Kannampuzha/Paint/blob/c9186f65cdf5e446d58014c054bad87bbb61f857/paint_app.py#L152

If python code is added to the undo.rec file, when undo button is clicked it will run the code.

To fix:

  1. You can use encryption, encrypt the data written in the undo.rec file
  2. Decoding the encrypted text in undo.rec file in order to run the function to achieve the undo feature.

Note: You will have to make a function in which for all installations the encryption key is different.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions