You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there are directory traversal issues in the AssetPipelineLoader and FileSystemLoader. Premailer-rails will attempt to inline CSS from any local file. This will only inline portions that are close enough to CSS to be returned, but these strategies likely don't need to load files outside of predetermined paths.
Ex.
It seems that the AssetPipelineLoader could be restricted to valid asset paths for the application, and the FileSystemLoader could be restricted to paths under /public.
The text was updated successfully, but these errors were encountered:
Currently there are directory traversal issues in the AssetPipelineLoader and FileSystemLoader. Premailer-rails will attempt to inline CSS from any local file. This will only inline portions that are close enough to CSS to be returned, but these strategies likely don't need to load files outside of predetermined paths.
Ex.
<link rel="stylesheet" type="text/css" href="/assets/../../../../../../../../../../etc/passwd">
It seems that the AssetPipelineLoader could be restricted to valid asset paths for the application, and the FileSystemLoader could be restricted to paths under /public.
The text was updated successfully, but these errors were encountered: