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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use %COMSPEC% not "cmd" to prevent hijacking. Fixes #5254 #5255
Conversation
Warning! No news item is found for this PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5255 +/- ##
==========================================
- Coverage 67.15% 67.12% -0.04%
==========================================
Files 119 119
Lines 23124 23124
Branches 4855 4855
==========================================
- Hits 15530 15522 -8
- Misses 6389 6398 +9
+ Partials 1205 1204 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This LGTM! any thoughts @anki-code @gforsyth ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll cut a release.
…#5255) * Use %COMSPEC% not "cmd" to prevent hijacking. Fixes xonsh#5254 * Update aliases.py * Update aliases.py --------- Co-authored-by: Andy Kipp <anki-code@users.noreply.github.com>
Security:
using a malicious "cmd.bat" file in the current directory.
† cls, copy, del, dir, echo, erase, md, mkdir, mklink, move, rd, ren, rename, rmdir, time, type, & vol
#issuenumber 5254