Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update V1 Parser to Check for Duplicates #704

Merged

Conversation

sarahalsmiller
Copy link
Member

There was a consul security finding where when parsing in an ACL object using the V1 parser that looked like the following

acl = "read"
acl= "write"

The decoder would only only return the last value in the list, causing a potential for accidental privilege escalation. This is a known issue with V1 and has been resolved in V2, however, because the APIs are incompatible and consul has many structs already using the V1 syntax, it didn't seem practical to do a hard shift to V2 HCL at this time. This PR should fix the issue in V1 and add additional test cases.

@GreenLantern16
Copy link

GreenLantern16 commented Oct 29, 2024 via email

Copy link

@NiniOak NiniOak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and works to remove duplicate acl configuration. Thanks @sarahalsmiller

@finnigja
Copy link

Can you unsubscribe @.*** from this list? He is no longer at HashiCorp.

We can't control your GitHub email notification settings, @GreenLantern16. I think if you hit the unsubscribe link at the bottom of the email you received, that should take care of it.

@GreenLantern16
Copy link

GreenLantern16 commented Oct 30, 2024 via email

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

Successfully merging this pull request may close these issues.

4 participants