Skip to content

Authentication bypass via env vars

Critical
LiuWoodsCode published GHSA-f9x3-mj2r-cqmf Dec 27, 2022

Package

core.py (LiuOS Authentication)

Affected versions

0.1.0

Patched versions

0.1.1

Description

Impact

This affects all users of LiuOS as it allows an attacker to set the GITHUB_ACTIONS environment variable to anything other than null or true and skip authentication checks.

Patches

Patched in the latest commit by requiring the var to be set to true, causing a test script to run instead of being able to login.

Workarounds

Check for the GITHUB_ACTIONS environment variable and set it to "" (no quotes) to null the variable and force credential checks.

PoC

https://youtu.be/laVghrsG-A4

Severity

Critical
9.2
/ 10

CVSS base metrics

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

CVE ID

CVE-2022-46179

Weaknesses

No CWEs

Credits