-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[plugin-host] Path traversal + XSS fix
The plugin host used to send unescaped responses via HTML, leading to a potential XSS vulnerability. Also, no constraint was applied to the file serving functionality, which means that you can get served any file on the filesystem if you add enough `../` parts in the requested path, walking past the plugin's root being served. This commit prevents clients to request something past the plugin's root, and also encodes the plugin id -requested by the client- in its response. Signed-off-by: Paul Maréchal <paul.marechal@ericsson.com>
- Loading branch information
1 parent
d4a15ad
commit f22963f
Showing
3 changed files
with
19 additions
and
10 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