Skip to content

Update V1 Parser to Check for Duplicates #704

Merged
sarahalsmiller merged 3 commits into
hashicorp:1.0.x-vaultfrom
sarahalsmiller:check-for-duplicates
Oct 30, 2024
Merged

Update V1 Parser to Check for Duplicates #704
sarahalsmiller merged 3 commits into
hashicorp:1.0.x-vaultfrom
sarahalsmiller:check-for-duplicates

Conversation

@sarahalsmiller
Copy link
Copy Markdown
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
Copy Markdown

GreenLantern16 commented Oct 29, 2024 via email

Copy link
Copy Markdown

@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
Copy Markdown

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
Copy Markdown

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