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

example: add Go fuzz for PathList #302

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marco-m
Copy link
Contributor

@marco-m marco-m commented Jun 8, 2022

Hello,

this PR shows a problem with input validation in go-yaml by adding a Go fuzz target.
If you are not familiar with Go 1.18 fuzzy tests, see https://tip.golang.org/doc/tutorial/fuzz.

The main problem is that the code does input validation with a deny list, while for robustness
it should do the opposite, use an explicit allow list. See for example
https://guides.codepath.org/websecurity/Prefer-whitelisting-over-blacklisting

This PR is not meant to be merged as-is; it is only a suggestion for how you could make
go-yaml more robust.

@goccy goccy added the enhancement New feature or request label Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants