mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-28 14:08:45 -04:00
* Fix local DNS leak when fetching feeds through a proxy Follow-up to #9390: `getRetryAfterFile()` passed the full URL to `Minz_Request::serverIsPublic()`, which then resolved the target hostname with the local resolver (`dns_get_record()`), even when a proxy was configured. With a socks5h/socks4a proxy this leaks the target hostname to the local DNS and defeats remote name resolution. - `Minz_Request::serverIsPublic()`: add an `$allowDnsResolve` parameter, and forward it to the recursive call so the guard holds for the whole recursion. - `FreshRSS_http_Util::getRetryAfterFile()`: do not resolve the host name when a proxy is configured (`$proxy === ''`), since the proxy is responsible for DNS. --------- Co-authored-by: Inverle <inverle@proton.me>
Libraries
SimplePie
FreshRSS uses a forked version of SimplePie, with a number of patches.
See the read-me of our fork.
Updating libraries
Some of the libraries in this folder can be updated semi-automatically by invoking:
cd ./FreshRSS/lib/
composer update --no-autoloader
Remember to read the change-logs, proof-read the changes, preserve possible local patches, add irrelevant files to .gitignore (minimal installation), and test before committing.