Skip to content

fix: sandbox sed commands, style/clarity improvements#1208

Merged
RoyalOughtness merged 1 commit intosecureblue:livefrom
HastD:sed-fixes
Jul 28, 2025
Merged

fix: sandbox sed commands, style/clarity improvements#1208
RoyalOughtness merged 1 commit intosecureblue:livefrom
HastD:sed-fixes

Conversation

@HastD
Copy link
Copy Markdown
Collaborator

@HastD HastD commented Jul 25, 2025

The GNU sed program is capable of reading and writing files via the r/w commands and executing external programs via the e command. To eliminate the possibility of command injection, any sed usage where the script to be run has variable substitutions should use the --sandbox option to ensure scripts attempting to use the e/w/r commands are rejected.

Also made some conciseness/style/clarity improvements to various sed scripts.

@HastD HastD requested a review from RoyalOughtness as a code owner July 25, 2025 13:03
The GNU sed program is capable of reading and writing files and
executing external programs. To eliminate the possibility of command
injection, any sed usage where the script to be run has variable
substitutions should use the `--sandbox` option to ensure scripts
attempting to use the e/w/r commands are rejected.

Also made some conciseness/style/clarity improvements to various sed
scripts.

Signed-off-by: Daniel Hast <[email protected]>
@RoyalOughtness RoyalOughtness merged commit 606e24e into secureblue:live Jul 28, 2025
25 of 29 checks passed
@HastD HastD deleted the sed-fixes branch July 28, 2025 02:46
RoyalOughtness pushed a commit to RoyalOughtness/secureblue-dev that referenced this pull request Aug 4, 2025
The GNU sed program is capable of reading and writing files and
executing external programs. To eliminate the possibility of command
injection, any sed usage where the script to be run has variable
substitutions should use the `--sandbox` option to ensure scripts
attempting to use the e/w/r commands are rejected.

Also made some conciseness/style/clarity improvements to various sed
scripts.

Signed-off-by: Daniel Hast <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants