Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(static): avoid user-provided data in Error messages being interpr…
…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
- Loading branch information
Showing
3 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters