Skip to content

Commit 77ecca9

Browse files
committed
grammar
1 parent cc6bada commit 77ecca9

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

ql/src/Security/CWE-077/EnvPathInjectionCritical.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22

33
## Description
44

5-
GitHub Actions allow to define the system PATH variable by writing to a file pointed to by the `GITHUB_PATH` environment variable. Writing to this file will prepend a directory to the system PATH variable and automatically makes it available to all subsequent actions in the current job. E.g.
5+
GitHub Actions allow to define the system PATH variable by writing to a file pointed by the `GITHUB_PATH` environment variable. Writing to this file appends a directory to the system PATH variable and automatically makes it available to all subsequent actions in the current job.
6+
7+
E.g.:
68

79
```bash
810
echo "$HOME/.local/bin" >> $GITHUB_PATH
911
```
1012

11-
If an attacker can control the contents of the path being assigned to the system PATH, they will be able to influence what commands are run in subsequen steps of the same job.
13+
If an attacker can control the contents of the system PATH, they are able to influence what commands are run in subsequent steps of the same job.
1214

1315
## Recommendations
1416

15-
- Do Not Allow Untrusted Data to Influence The System PATH: Avoid using untrusted data sources (e.g., artifact content) to define the system PATH.
17+
Do not allow untrusted data to influence the system PATH: Avoid using untrusted data sources (e.g., artifact content) to define the system PATH.
1618

1719
## Examples
1820

ql/src/Security/CWE-077/EnvPathInjectionMedium.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22

33
## Description
44

5-
GitHub Actions allow to define the system PATH variable by writing to a file pointed to by the `GITHUB_PATH` environment variable. Writing to this file will prepend a directory to the system PATH variable and automatically makes it available to all subsequent actions in the current job. E.g.
5+
GitHub Actions allow to define the system PATH variable by writing to a file pointed by the `GITHUB_PATH` environment variable. Writing to this file appends a directory to the system PATH variable and automatically makes it available to all subsequent actions in the current job.
6+
7+
E.g.:
68

79
```bash
810
echo "$HOME/.local/bin" >> $GITHUB_PATH
911
```
1012

11-
If an attacker can control the contents of the path being assigned to the system PATH, they will be able to influence what commands are run in subsequen steps of the same job.
13+
If an attacker can control the contents of the system PATH, they are able to influence what commands are run in subsequent steps of the same job.
1214

1315
## Recommendations
1416

15-
- Do Not Allow Untrusted Data to Influence The System PATH: Avoid using untrusted data sources (e.g., artifact content) to define the system PATH.
17+
Do not allow untrusted data to influence the system PATH: Avoid using untrusted data sources (e.g., artifact content) to define the system PATH.
1618

1719
## Examples
1820

0 commit comments

Comments
 (0)