hotwired / turbo-android

Android framework for making Turbo native apps
MIT License
408 stars 51 forks source link

Prevent path traversal vulnerability in TurboUriHelper #255

Closed mbarta closed 1 year ago

mbarta commented 1 year ago

This PR adds checks for a path traversal attacks.

A malicious app can inject URIs of files with file names containing characters such as "../" that when resolved cause the file to be written to parent directories and even rewrite content of existing files.

The changes in this PR prevent this.