Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Patchwork Autofix PR#52

New issue

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

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
patched-codes wants to merge2 commits intomaster
base:master
Choose a base branch
Loading
frompatchwork-autofix-master

Conversation

@patched-codes
Copy link

@patched-codespatched-codesbot commentedAug 3, 2024
edited
Loading

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-codespatched-codesbotforce-pushed thepatchwork-autofix-master branch 2 times, most recently from2093038 tofed5ea6CompareSeptember 25, 2024 20:07
@patched-codespatched-codesbotforce-pushed thepatchwork-autofix-master branch fromfed5ea6 to659657cCompareOctober 14, 2024 06:57
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant


[8]ページ先頭

©2009-2025 Movatter.jp