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

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality
Low
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
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