Skip to content

fix(swagger/security): ensure that the requested file is in the UI directory#1065

Merged
kiplingw merged 1 commit intopistacheio:masterfrom
Tachi107:swagger-vuln-fix
Apr 25, 2022
Merged

fix(swagger/security): ensure that the requested file is in the UI directory#1065
kiplingw merged 1 commit intopistacheio:masterfrom
Tachi107:swagger-vuln-fix

Conversation

@Tachi107
Copy link
Copy Markdown
Member

@Tachi107 Tachi107 commented Apr 25, 2022

The Rest::Swagger class didn't check if the file asked from the user was contained in the UI directory, thus allowing users to access arbitrary files in the filesystem.

Thanks to Kirill Efimov (@Kirill89) and the Snyk Security team (@snyk) for finding and reporting the vulnerability to the Pistache team.

Closes #1064

…rectory

The Rest::Swagger class didn't check if the file asked from the user was
contained in the UI directory, thus allowing users to access arbitrary
files in the filesystem.

Thanks to Kirill Efimov (@Kirill89) and the Snyk Security team for
finding and reporting the vulnerability to the Pistache team.
@Tachi107
Copy link
Copy Markdown
Member Author

Tachi107 commented Apr 25, 2022

abidiff reports a potential ABI change, but that's probably related to the inclusion of <filesystem>. It exited with status 4, that according to the manual maps to ABIDIFF_ABI_CHANGE, meaning that the ABI changed but non necessarily in a breaking manner. As all the changes have been applied to internal code, I believe that this failure can be ignored.

Edit: they seem template instantiations

@kiplingw kiplingw merged commit aa24b16 into pistacheio:master Apr 25, 2022
@Tachi107 Tachi107 deleted the swagger-vuln-fix branch April 25, 2022 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] PPA builders choking during dh_auto_test

2 participants