# VNX-GH-018: Comment-triggered workflow without an author check

An issue_comment workflow runs privileged steps for any commenter.

issue_comment runs with a write token and secrets, and anyone who can comment can trigger it. A ChatOps command (/deploy, /release, /retest) without an author_association or permission check runs for every GitHub user on a public repository.

| | |
|---|---|
| Severity | High |
| Confidence | medium |
| CWE | [CWE-862](https://cwe.mitre.org/data/definitions/862.html), [CWE-863](https://cwe.mitre.org/data/definitions/863.html) |
| Command | `vulnetix gha workflows`, `vulnetix gha audit` |
| Uses, when available | repo, to rate each finding against the repository's own configuration. |

## Remediation

Gate the job on github.event.comment.author_association being OWNER, MEMBER or COLLABORATOR, or check the commenter's permission with the API before acting.

## Run only this rule

```sh
vulnetix gha workflows --rule VNX-GH-018
```

## Scoring

CWSS vector at the rule's default severity: `CWSS:1.0/TI:H/AP:A/AL:A/IC:N/FC:LT/RP:N/RL:A/AV:I/AS:N/IN:A/SC:A/BI:H/DI:M/EX:M/EC:N/P:W`. A finding whose severity the repository's settings moved is scored at its adjusted severity.

All rules: [GitHub rules](/cli/github-rules/overview.md).
