-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Common/Sanitizer: block data-constructor RCE via AST backstop (issue #22173, supersedes #22253) #22273
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
Merged
wawanawna
merged 13 commits into
master
from
users/wawanawna/harden-ps-sanitizer-ast-data-constructors
Jun 23, 2026
Merged
Common/Sanitizer: block data-constructor RCE via AST backstop (issue #22173, supersedes #22253) #22273
Changes from 2 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
099f2c7
Harden PowerShell argument sanitizer against data-constructor RCE
wawanawna1984 897cd28
Block -as conversion operator and bare type references in AST backstop
wawanawna1984 86cbc29
Clarify comments: @(...) array literals stay blocked (parens not allo…
Copilot bf1e411
Polish sanitizer comments: strict vs relaxed modes, two task groups, …
Copilot 25d0cec
Refactor: shared regex base + module-level dangerous AST type list
Copilot 83c531d
Merge branch 'master' into users/wawanawna/harden-ps-sanitizer-ast-da…
wawanawna 30dbd31
Revert to two explicit regex literals for readability
Copilot e64787a
Bump AzurePowerShellV4/V5 above master (resolve common-change downgra…
Copilot 01c30e4
Fix AzurePowerShellV4 task.json version (racy-clean miss in e64787a: …
wawanawna1984 c9d1da1
Restore AZP_75787_ENABLE_NEW_LOGIC after data-constructor L0 tests
wawanawna1984 096c5bc
Restore AZP_75787_ENABLE_NEW_LOGIC in pre-existing Passes/Throws L0 t…
wawanawna1984 a2a6e63
Merge branch 'master' into users/wawanawna/harden-ps-sanitizer-ast-da…
wawanawna d60cf38
Merge branch 'master' into users/wawanawna/harden-ps-sanitizer-ast-da…
wawanawna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
| "version": { | ||
| "Major": 1, | ||
| "Minor": 276, | ||
| "Patch": 0 | ||
| "Patch": 1 | ||
| }, | ||
| "demands": [ | ||
| "azureps" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
| "version": { | ||
| "Major": 1, | ||
| "Minor": 276, | ||
| "Patch": 0 | ||
| "Patch": 1 | ||
| }, | ||
| "demands": [ | ||
| "azureps" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
| "version": { | ||
| "Major": 2, | ||
| "Minor": 276, | ||
| "Patch": 0 | ||
| "Patch": 1 | ||
| }, | ||
| "demands": [ | ||
| "azureps" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
| "version": { | ||
| "Major": 3, | ||
| "Minor": 276, | ||
| "Patch": 0 | ||
| "Patch": 1 | ||
| }, | ||
| "demands": [ | ||
| "azureps" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
| "version": { | ||
| "Major": 4, | ||
| "Minor": 276, | ||
| "Patch": 0 | ||
| "Patch": 2 | ||
| }, | ||
| "demands": [ | ||
| "azureps" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
| "version": { | ||
| "Major": 5, | ||
| "Minor": 276, | ||
| "Patch": 0 | ||
| "Patch": 2 | ||
| }, | ||
| "demands": [ | ||
| "azureps" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
| "version": { | ||
| "Major": 6, | ||
| "Minor": 276, | ||
| "Patch": 0 | ||
| "Patch": 2 | ||
| }, | ||
| "demands": [ | ||
| "azureps" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ | |
| "version": { | ||
| "Major": 2, | ||
| "Minor": 276, | ||
| "Patch": 0 | ||
| "Patch": 1 | ||
| }, | ||
| "demands": [ | ||
| "azureps" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.