Skip to content

pr-e2e.yml workflow is vulnerable

Low
JorTurFer published GHSA-w92x-gx4w-j5f2 Jul 26, 2023

Package

gomod e2e tests (Go)

Affected versions

v2.11

Patched versions

v2.11.2

Description

Summary

The pr-e2e.yml workflow is vulnerable to command injection attacks because of using an untrusted event.comment.body field.

Details

Line 140: MESSAGE="${{ github.event.comment.body }}"

PoC

Assigning the value of the issue comment body to any-body"; echo hacked can lead to command injection.

Impact

Since the permission is not restricted, the attacker has a write-access to the repository.

Severity

Low
2.4
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
High
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:N/A:N

CVE ID

No known CVE

Weaknesses

Credits