Skip to content

Commit aeeac2d

Browse files
committed
Copy missed alert
1 parent 1d66696 commit aeeac2d

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

reference/7.4/Microsoft.PowerShell.Management/Invoke-Item.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,19 @@ Accept wildcard characters: True
144144

145145
### -LiteralPath
146146

147-
Specifies a path to one or more locations. The value of **LiteralPath** is used exactly as it is
147+
Specifies a path to one or more locations. The value of **LiteralPath** is used exactly as it's
148148
typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose
149149
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
150150
as escape sequences.
151151

152152
For more information, see
153153
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
154154

155+
> [!IMPORTANT]
156+
> Using this parameter with untrusted data is a security risk. Only use trusted data with this
157+
> parameter. For more information, see
158+
> [Validate All Inputs](https://top10proactive.owasp.org/archive/2024/the-top-10/c3-validate-input-and-handle-exceptions/).
159+
155160
```yaml
156161
Type: System.String[]
157162
Parameter Sets: LiteralPath

reference/7.5/Microsoft.PowerShell.Management/Invoke-Item.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,19 @@ Accept wildcard characters: True
144144

145145
### -LiteralPath
146146

147-
Specifies a path to one or more locations. The value of **LiteralPath** is used exactly as it is
147+
Specifies a path to one or more locations. The value of **LiteralPath** is used exactly as it's
148148
typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose
149149
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
150150
as escape sequences.
151151

152152
For more information, see
153153
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
154154

155+
> [!IMPORTANT]
156+
> Using this parameter with untrusted data is a security risk. Only use trusted data with this
157+
> parameter. For more information, see
158+
> [Validate All Inputs](https://top10proactive.owasp.org/archive/2024/the-top-10/c3-validate-input-and-handle-exceptions/).
159+
155160
```yaml
156161
Type: System.String[]
157162
Parameter Sets: LiteralPath

reference/7.6/Microsoft.PowerShell.Management/Invoke-Item.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,19 @@ Accept wildcard characters: True
144144

145145
### -LiteralPath
146146

147-
Specifies a path to one or more locations. The value of **LiteralPath** is used exactly as it is
147+
Specifies a path to one or more locations. The value of **LiteralPath** is used exactly as it's
148148
typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose
149149
it in single quotation marks. Single quotation marks tell PowerShell not to interpret any characters
150150
as escape sequences.
151151

152152
For more information, see
153153
[about_Quoting_Rules](../Microsoft.Powershell.Core/About/about_Quoting_Rules.md).
154154

155+
> [!IMPORTANT]
156+
> Using this parameter with untrusted data is a security risk. Only use trusted data with this
157+
> parameter. For more information, see
158+
> [Validate All Inputs](https://top10proactive.owasp.org/archive/2024/the-top-10/c3-validate-input-and-handle-exceptions/).
159+
155160
```yaml
156161
Type: System.String[]
157162
Parameter Sets: LiteralPath

0 commit comments

Comments
 (0)