Kannampuzha / Kannampuzha/PyDraw

Arbitrary Code Execution

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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

If python code is added to the [undo.rec](https://github.com/Kannampuzha/Paint/blob/master/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](https://github.com/Kannampuzha/Paint/blob/master/undo.rec) file
2. Decoding the encrypted text in [undo.rec](https://github.com/Kannampuzha/Paint/blob/master/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.**_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.