Skip to content

Patchwork Autofix PR #52

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

patched-codes[bot]
Copy link

@patched-codes patched-codes bot commented Aug 3, 2024

This pull request from patched fixes 4 issues.


  • File changed: main.py
    fix command injection vulnerability by removing 'shell=True' Replace 'subprocess.call' using 'shell=True' with 'shell=False' and pass the command as a list to safely execute it without the risk of shell command injection.
  • File changed: html.js
    Fix XSS vulnerability by removing dangerouslySetInnerHTML usage. Replaced dangerouslySetInnerHTML with safe loading of external script using ues of external scripts directly in the DOM.
    Remove dangerouslySetInnerHTML and use safe alternative with JSON.stringify Replaced dangerouslySetInnerHTML with JSON script that safely encodes store state.
    Remove usage of dangerouslySetInnerHTML to prevent XSS Replaced 'dangerouslySetInnerHTML' with safe rendering assuming 'contentMarkup' is sanitized or controlled data.

@patched-codes patched-codes bot force-pushed the patchwork-autofix-master branch 2 times, most recently from 2093038 to fed5ea6 Compare September 25, 2024 20:07
@patched-codes patched-codes bot force-pushed the patchwork-autofix-master branch from fed5ea6 to 659657c Compare October 14, 2024 06:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants