Skip to content
This repository has been archived by the owner on Nov 7, 2020. It is now read-only.

Remove use of hard coded secret #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rastating
Copy link

@rastating rastating commented Jun 1, 2018

Description
This pull request fixes a security issue by removing the hard coded cookie secret. This change will instead make the application fetch it from the environment variable GAMERPOLLS_COOKIE_SECRET.

By using a hard coded secret, a would-be attacker could manipulate the cookie data and re-sign it using the same cookie secret - potentially leading to an authentication bypass and privilege escalation.

Vulnerability Classification
CWE-259: Use of Hard-coded Password
CWE-302: Authentication Bypass by Assumed-Immutable Data

CVE-ID
CVE-2018-10966

CVSS v3 Score
6.5 (Medium)

CVSS v3 Vector
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant