Hsnmohd opened a new pull request, #3329:
URL: https://github.com/apache/httpcomponents-client/pull/3329

   **Cache files created world-readable and through symlinks**
   
   `FileResourceFactory.generate` writes each cached body with `new 
FileOutputStream(file, false)`, so the file gets the process default mode: with 
`CachingHttpClients.createFileBound` and the usual umask the file holding a 
response arrives rw-r--r--, readable by every local user even when the cached 
response was authenticated. The same call follows symbolic links, and the file 
name comes from the request URI and the response ETag, so anyone able to write 
into the cache directory can plant a link at that name and have the next cache 
write land on its target with a body the origin chose; verified by overwriting 
a file outside the cache directory.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to