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

fix(static): avoid user-provided data in Error messages being interpreted as sprintf codes #1472

Merged
merged 1 commit into from Sep 7, 2017

Conversation

DonutEspresso
Copy link
Member

@DonutEspresso DonutEspresso commented Sep 3, 2017

Same as #1384 but for 5.x. Fixes #1411

I cherry picked @trentm's commits, and migrated tests to the new directory.

…eted as sprintf codes (#1384)

The 'static' plugin had a few cases where the path in a request would be
passed as the first ("message") field to a RestError constructor.
RestError uses verror.WError, which uses extsprintf to render the given
arguments. If the "message" includes "%...s" or similar printf codes,
then it will error output.

Also bump to 4.3.1.

* drop ver bump changes, per review comments

* update test name and drop comment (unnecessary with issue ref) per review comments
Copy link
Member

@retrohacker retrohacker left a comment

Choose a reason for hiding this comment

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

👍 LGTM!

@retrohacker
Copy link
Member

Merging as review was done on #1384

@retrohacker retrohacker merged commit 9906344 into master Sep 7, 2017
@sean3z sean3z deleted the err-sprintf branch September 12, 2017 13:10
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.

None yet

3 participants