From: Fabian Keil Date: Mon, 25 Jan 2021 13:16:56 +0000 (+0100) Subject: Import changes for 3.0.30 stable X-Git-Tag: v_3_0_30~19 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=0bd549e5e92bb1a079ddcec96d1f73055f9d9ac9 Import changes for 3.0.30 stable --- diff --git a/doc/source/changelog.sgml b/doc/source/changelog.sgml index 6ca1058d..9c4339dd 100644 --- a/doc/source/changelog.sgml +++ b/doc/source/changelog.sgml @@ -24,77 +24,67 @@ --> - Privoxy 3.0.29 fixes a couple of memory - leaks and introduces https inspection which allows to filter encrypted - requests and responses. + Privoxy 3.0.30 fixes a couple of bugs + and introduces a few new features. - Changes in Privoxy 3.0.29 stable: + Changes in Privoxy 3.0.30 stable: + - Security/Reliability: + Bug fixes: - Fixed memory leaks when a response is buffered and the buffer - limit is reached or Privoxy is running out of memory. - Commits bbd53f1010b and 4490d451f9b. OVE-20201118-0001. - Sponsored by: Robert Klemme + Check the actual URL for redirects when https inspecting requests. + Previously Privoxy would only check the path which resulted in + rewrite results being rejected as invalid URLs. + Reported by withoutname in #1736. - Fixed a memory leak in the show-status CGI handler when - no action files are configured. Commit c62254a686. - OVE-20201118-0002. - Sponsored by: Robert Klemme + Let the hide-referrer code tolerate Referer headers with https:// URLs. + Previously they would always be treated like a changed host. - Fixed a memory leak in the show-status CGI handler when - no filter files are configured. Commit 1b1370f7a8a. - OVE-20201118-0003. - Sponsored by: Robert Klemme - - - - - Fixes a memory leak when client tags are active. - Commit 245e1cf32. OVE-20201118-0004. - Sponsored by: Robert Klemme + Use the https headers if the show-request handler is reached through + https://. Previously Privoxy would use the http headers which + may be empty on a reused connection. - Fixed a memory leak if multiple filters are executed - and the last one is skipped due to a pcre error. - Commit 5cfb7bc8fe. OVE-20201118-0005. + Make CGI_PREFIX protocol-relative when building with FEATURE_HTTPS_INSPECTION. + This unbreaks (at least) https://config.privoxy.org/client-tags whose + buttons would previously use a http:// URL resulting in browser warnings. - Prevent an unlikely dereference of a NULL-pointer that - could result in a crash if accept-intercepted-requests - was enabled, Privoxy failed to get the request destination - from the Host header and a memory allocation failed. - Commit 7530132349. CID 267165. OVE-20201118-0006. + Support using https-inspection and client-header-order at the same time. + Previously Privoxy would crash. + Reported by: Kai Raven - Fixed memory leaks in the client-tags CGI handler when - client tags are configured and memory allocations fail. - Commit cf5640eb2a. CID 267168. OVE-20201118-0007. + Properly reject rewrites from http to https as they currently + aren't supported. Previously Privoxy would wait for the client + to establish an encrypted connection which obviously would not happen. - Fixed memory leaks in the show-status CGI handler when memory - allocations fail. Commit 064eac5fd0 and commit fdee85c0bf3. - CID 305233. OVE-20201118-0008. + When https inspection is enabled and Privoxy has been compiled with + FEATURE_GRACEFUL_TERMINATION (not recommended for production builds), + the TLS backend resources are free'd later on and only if no active + connections are left. Prevents crashes when exiting "gracefully" at the + wrong time. @@ -106,214 +96,255 @@ - Added experimental https inspection support which allows to filter - https traffic. To enable it, install MbedTLS and configure with - --with-mbedtls, or install OpenSSL or LibreSSL and configure - with --with-openssl. - Afterwards configure the directives in section 7 of the - config file and enable the +https-inspection action. - Initial MbedTLS-based code contributed by Vaclav Svec, - initial OpenSSL support contributed by Maxim Antonov. - With help from Nedzad Hrnjica and Ho+ Ho+ Ho+. - Integration and improvements sponsored by Robert Klemme. + Allow to rewrite the request destination for https-inspected + requests behind the client's back. The documentation already sort + of claimed that it was supported by not especially mentioning that + it didn't work for https-inspected requests. + Fixes SF bug #923 reported by withoutname. - pcrs: Request JIT compilation if it's supported and - the filter isn't dynamic. This can speed up filtering. + Add support for filtering client request bodies by using + CLIENT-BODY-FILTER filters which can be enabled with the + client-body-filter action. + Patch submitted by Maxim Antonov. + Sponsored by: Robert Klemme - Added support for Brotli decompression. + Add the new action suppress-tag{} which can be used to prevent + a tagger from adding a tag. Patch submitted by Maxim Antonov. Sponsored by: Robert Klemme - Added FEATURE_EXTENDED_STATISTICS to gather statistics for - block reasons and filter executions. To enable it, configure - with --enable-extended-statistics and visit - http://config.privoxy.org/show-status. - Sponsored by: Robert Klemme + Gracefully handle existing website keys without matching certificates. + This can happen if Privoxy was previously running with an invalid + TLS configuration that didn't allow it to create a certificate. - Use the IP_FREEBIND socket option, if defined. This allows - Privoxy to bind to not-yet assigned IP addresses which is - useful in failover environments. - Patch by Sam Varshavchik. + Recycle debug bit 4 for Tagging-related messages. - Allow to use extended host patterns and vanilla host patterns - at the same time by prefixing extended host patterns with - "PCRE-HOST-PATTERN:". To enable this, configure with - --enable-pcre-host-patterns. - Sponsored by: Robert Klemme + Improve the message shown when the client-tags CGI page + is requested with no tags configured. - Added "Cross-origin resource sharing" (CORS) support. - This allows to access Privoxy's CGI interface via JavaScript from - another domain (white-listed with the new cors-allowed-origin directive). - Based on a patch by Nedzad Hrnjica. - Sponsored by: Robert Klemme. + Shorten the 'donate' and 'participate' links used by templates + using redirects. Currently the redirects lead to the FAQ entries + but in the future we may want to relocate the content and using + redirects makes this more convenient. - Add SOCKS5 username/password support. - Based on a patch by Sam, improved by Ivan Romanov. - Closes Patch#141 and solves TODO#105. + Log an error when a PCRE-HOST-PATTERN is used with + FEATURE_PCRE_HOST_PATTERNS disabled. Don't treat this a + fatal error so the regression tests can be used with and + without FEATURE_PCRE_HOST_PATTERNS. - Bump the maximum number of action and filter files - to 100 each. - Sponsored by: Robert Klemme + The code compiles with older C compilers again. - Fixed handling of filters with "split-large-forms 1" - when using the CGI editor. - Reported by withoutname in #921. + The chdir() return code is checked to fix a compiler warning. - Better detect a mismatch of connection details when - figuring out whether or not a connection can be reused. + The packages feed has been removed from the source tarball. + It's usually out of date when the source tarball is generated + for the release. - Don't send a "Connection failure" message instead of the - "DNS failure" message. - Sponsored by: Robert Klemme + Fixed harmless compiler warnings from GCC9 with -D_FORTIFY_SOURCE=2. - Let LOG_LEVEL_REQUEST log all requests. Previously unencrypted - requests were only logged with LOG_LEVEL_REQUEST when they weren't - crunched (in which case they were logged with LOG_LEVEL_CRUNCH). - This was documented behaviour, but logging all requests seems more useful. + windows: Remove obsolete '$(DEST)/doc/images' target. - Fixed locking around localtime() and gmtime(). + windows: Install the images referenced in the user manual. - Removed OS/2 support. We haven't provided OS/2 packages in years, - it complicated the code and it depended on a fallback snprintf() - implementation which is GPLv2 only. + Remove obsolete 'gnu_regex.@OBJEXT@' target. - Remove the fallback snprintf() implementation - Now that OS/2 support is gone we no longer need it. + When installing from the GNUMAkefile, don't create an 'images' + directory which is no longer used. The images were relocated to + the user-manual directory years ago. - Fixed a bunch of format specifiers log messages. + Add new FEATURES to the show-status page and resort list. - Added a missing apostrophe in the 'More Privoxy' menu. + Remove unused variable in the OpenSSL-specific code. - Explicitly prevent use of FEATURE_CONNECTION_SHARING - without FEATURE_CONNECTION_KEEP_ALIVE. It makes no sense - and does not compile anyway. - Sponsored by: Robert Klemme + Update bug tracker URL in cgi_error_unknown(). - Fix build without FEATURE_CONNECTION_KEEP_ALIVE. - Sponsored by: Robert Klemme + Saved a couple of memory allocations when sorting client headers. - Downgrade the 'Graceful termination requested' message - to LOG_LEVEL_INFO as it isn't an error. - Sponsored by: Robert Klemme + Improved a couple of error messages. - decompress_iob(): Downgrade the no-content message to LOG_LEVEL_RE_FILTER - While at it, fix a typo in a comment. - Sponsored by: Robert Klemme + Saved memory allocations when using OpenSSL and checking if a + key already exists. + + + + + The configure script will bail out if OpenSSL and mbedTLS are + enabled at the same time. + + + + + Log a message right before exiting gracefully. + + + + + A couple of structures have been rearranged to require slightly + less memory. + + + + + When https inspection is enabled and the certificate is invalid + the error message is now sent with status code 403 instead of 200. + + + + + The Slackware rc script template has been renamed to + slackware/rc.privoxy.in to silence complaints when building + Debian packages. + + + + + When building with MbedTLS support, mbedtls_md5_ret() is used + instead of mbedtls_md5() which is deprecated and causes a warning + on Debian GNU/Linux. + + + + + + + + Action file improvements: + + + + Block requests to eu-tlp03.kameleoon.com/. + + + + + Unblock metrics.sr.ht/. + + + + + Disable fast-redirects for .fsf.org/. + + + + + Disable fast-redirects for .gravater.com/. + + + + + Disable fast-redirects for .ksta.de/. - Fixed a couple of cppcheck warnings. + Block requests to tag.crsspxl.com/. - Rename LOG_LEVEL_GPC to LOG_LEVEL_REQUEST. - Only the shadow knows what "GPC" is supposed to stand for. + Block requests to analytics.slashdotmedia.com/. - Remove SourceForge references in copyright headers. + Block requests to ml314.com/. - Upgrade a bunch of links to the homepage to https://. + Block requests to .adroll.com/. - Add 'no-brotli-accepted' filter which prevents the - use of Brotli compression. + Block requests to fastlane.rubiconproject.com/. - Changed license for pcrs to GPLv2+ after getting the - permission from Andreas. This allows to redistribute - Privoxy under the GPLv3 which is required when linking - to future mbedTLS versions which are expected to be - licensed under the Apache 2.0 license only. + Block requests to api.theadex.com/. - Updated a bunch of tests that have to expect status code 403 - now after r1.168/070e904afa5. + Block requests to ih.adscale.de/. - Lowercase the host name in the request line. + Block requests to .s400.meetrics.net/. - Only set SOURCE_DATE_EPOCH if it's not already set so - distributions can overwrite it through the environment. + Block requests for pp.lp4.io/. + + + + + Block requests for trc-events.taboola.com/. @@ -321,80 +352,149 @@ - Documentation changes: + Filter file improvements: - Explain that Privoxy has to be distributed under the - GPLv3 (or later) when linked with an MbedTLS version - that is licensed under the Apache 2.0 license. + A allow-autocompletion filter has been added which changes + autocomplete="off" to "on" on input fields to allow autocompletion. + Requested by Jamie Zawinski in #370. + Filter based on a submission by Aaron Linville. - Import the GNU GPLv3 and include it the user manual. + Added an imdb filter. - Clarify FEATURE_FORCE_LOAD's description. It allows to bypass - blocking not filtering and only does it if blocks aren't enforced. - Reported by: Robert Klemme + Added a sourceforge filter that reduces the amount of ads + for proprietary software. - FAQ: Remove Zwiebelfreunde e.V. from the list of fiduciary sponsors - As of 2021 they no longer handle donations for foreign organisations - due to lack of resources. + Added a github filter that removes the annoying "Sign-Up" + banner and the Cookie disclaimer. - FAQ: Remove an obsolete comment with a link to the long-gone PDF manual. + Removed a duplicated pcrs command from the js-annoyances filter. + + + + + The crude-parental filter now provides a short reason when blocking, + inserts a link to Privoxy's webinterface and adds a new line at + the end of the generated page. + + + + + + + + Privoxy-Log-Parser: + + + + Highlight a few more messages. - FAQ: Add a link to the TODO list. + Add a handler for tagging messages. - FAQ: Change the sponsor amounts to USD slightly rounding the - converted amounts up to get simple numbers. - Receiving USD is apparently easier for SPI and SPI is - preferred by sponsors as they can send invoices. + Properly deal with 'Certificate error' crunches + Previously the error description was highlighted as 'host'. - Advertise the client-tags CGI page in the user manual. + Log truncated LOG_LEVEL_CLF messages more gracefully + and note that the statistics will be imprecise. - Stop advertising the show-version CGI page which no longer exists. + Fixed perldoc typo. - Add yet another reason why +prevent-compression may cause problems. + Bump version to 0.9.2. + + + + + + + + Privoxy-Regression-Test: + + + + Use http://127.0.0.1:8118/ as default Privoxy address + unless http_proxy is set through the environment. - Don't claim that contributors need ssh. It's only needed for committers. + Add a --privoxy-cgi-prefix option that specifies the prefix + to use when building URLs that are supposed to reach Privoxy's + CGI interface. If it's not set, http://p.p/ is used, which is + supposed to work with the default Privoxy configuration. + If Privoxy has been built with FEATURE_HTTPS_INSPECTION enabled, + and if https inspection is activated with the +https-inspection + action, this option can be used with "https://p.p/" provided the + system running Privoxy-Regression-Test has been configured to + trust the certificate used by Privoxy. + Note that there are currently two tests in the official + regression-tests.action file that are expected to fail + when using "https://p.p/" as privoxy-cgi-prefix. - Replace obsolete CVS instructions with Git instructions. + Skip the connection-established response in get_status_code() + when looking for the status code with a CGI prefix + that starts with https://. We care about the status code + sent by the impersonated web server. - Remove an obsolete comment + Use --proxy-header when using a CGI prefix with https:// + and a "Host:" header. + + + + + Allow '|' in tokens and values to allow tag patterns like + "TAG:^(application|text)/(x-)?javascript$". + + + + + When get_cgi_page_or_else() fails, include the URL of the + requested page in the log message. + + + + + Added a --check-bad-ssl option that can be used to verify that + Privoxy detects certificate problems when accessing the test + sites from badssl.com. + + + + + Bumped version to 0.7.2 @@ -402,169 +502,271 @@ - Config file changes: + uagen: - Change the suggested default-server-timeout to 5 to match the - suggested keep-alive-timeout. Otherwise using the defaults would - result in Privoxy reducing the default-server-timeout and logging - an error message. - Sponsored by: Robert Klemme + Update example output. - Update the 'debug 1' description. + Recommend the use of the https-inspection action in the documentation. - Add a missing 'client-specific-tag' directive. + Upgrade a couple of URLs to https://. - Comment out trusted-cgi-referer pointing to example.org. + Add ElectroBSD to the list of operating systems. + + + + + Bumped generated Firefox version to 78 (ESR). + + + + + Bumped version to 1.2.2. - - - Action file improvements: - - Block requests to /(.*/)?piwik\.php + User documentation: + + + + Remove reference to 'How to Report Bugs Effectively'. + It was only rendered as text without URL in the README anyway + and there's no indication that users read it ... - Block requests to .connectaserver.de/ + Let the dok-readme target fix the location embedded into the + README file. This used to be done by CVS but since the git migration + it has to be done through other means. - Block requests to pixel.inforsea.com/ + Remove 'experimental' warning for client-specific-tag-related directives. + They seem to work reliably and there is no obvious reason + why we would change the syntax in the near future. - Block requests to t.vi-serve.com/ + Describe how to check if Privoxy has been built with + FEATURE_HTTPS_INSPECTION. - Block requests to .ioam.de/ + Add a link to the trusted-cas-file documentation + that explains how the user can create the file herself. - Block requests to t.9gag.com/img.gif + Don't explicitly mention the license for the code coming from + 'Anonymous Coders' and Junkbusters. It's obviously licensed under + the GNU GPL like the rest of Privoxy or we wouldn't be allowed to + distribute it. - Block requests to .pixel.parsely.com/ as image + Update the +hide-user-agent example with uagen output. - Block requests to pixel.wp.com/ + Slightly improve the wording of the ca-key-file documentation. - Disable fast-redirects for .librarything.com/ + Explicitly mention Windows 10 as supported so search engines and + users looking for it can find it. - Disable fast-redirects for issue.freebsdfoundation.org/ + Import a bunch of contributors from the ChangeLog. - Disable fast-redirects for .twitter.com/.*origin=http + Remove obsolete doc/gpl.html. - Unblock belco24.de/ + Upgrade a couple of links to https://. - Add fast-redirects exception for .wikipedia.org/ + Don't prefer the SourceForge patch tracker over the + privoxy-devel mailing list. While at it, link to the + SourceForge patch tracker. - Add fast-redirects exception for oss-fuzz.com/ + Mention http-inspection in the 'my browser warns me about + unauthenticated content' FAQ entry. - Disable fast-redirects for .consensu.org/delivery/pixel\.php - and block the requests as image instead + Simplify the 'Is there is a license or fee?' FAQ entry. - Unblock .adbinstaller.com/ - Reported by lvm in #942. + Add another +redirect{} example. - Unblock .adbshell.com - Reported by lvm in #942. + Explicitly mention that interested sponsors should include + the link target in their first mail. - Unblock .tagesschau.de/ + Clarify that only Privoxy team members can object to new sponsors + and link to the list of current team members. - Disable fast-redirects for collector.githubapp.com/ - and block requests to it as image instead + Note that sponsor URLs may not contain keyword spam. - Unblock 'ada*.' + Garbage collect doc/webserver/images which isn't referenced anymore. - Add fast-redirects{} exception for sourcepoint.vice.com/ + Update the method to reach the proxy settings in Firefox. - Unblock adaway.org/ - Reported by DRS David Soft in AF#945. + Update proxy_setup.jpg description to refer to Firefox. - Change two block reasons that previously were the same. - Sponsored by: Robert Klemme + Regenerate proxy_setup.jpg with a more recent Firefox (78.0). + + + + + Regenerate files-in-use.jpg without obsolete standard.action + with modern colors and a slightly better quality. + + + + + Update URL to the actionsfile tracker. + + + + + Update a support request URL. + + + + + Rephrase the 'Can Privoxy run as service' FAQ entry and + remove an obsolete paragraph. + + + + + Let the 'Where can I get updated Actions Files?' entry link to + the gitweb version of default.action.master. - Added a +delay-response{} test. + Update a link to the default.action file. - Updated the location of the development version - of default.action.master. + Update URLs for trackers and mailing lists. + + + + + Replace CVS reference with git. + + + + + Mention regression-tests.action in the config file. + + + + + Explicitly mention in the config file that access to the + CA key should be limited to Privoxy. + + + + + List more client-specific-tag examples for inspiration. + + + + + Add additional headers to the client-header-order example. + + + + + Note that actions aren't updated after rewrites. + + + + + Explicitly mention that upgrading from http to https with + a client-header filter is not supported + + + + + Note that protocol and host have to be added when rewriting + the destination host for https-inspected requests. + + + + + Explicitly mention that the CA key is used to sign certificates. + + + + + Put openssl command in 'command' tags. + + + + + The man page has been moved from section 1 to man section 8. @@ -572,92 +774,147 @@ - Privoxy-Log-Parser: + Developer manual: - Added a --keep-date option to keep the date in highlighted messages. + Flesh out the build instructions for Debian. - Highlight new log messages. + Remove the packaging instructions for RPM-based systems. + They don't work and we don't release RPM packages anymore anyway. - Make gather_loglevel_clf_stats() more tolerant. While at it, - count all CLF messages as requests, even if the request is invalid. + Remove the packaging instructions for Solaris. + They don't work and we don't release Solaris packages anymore anyway. - Only show HTTP version distribution if at least one version has been detected. + Update the suggested subject for the announce mails. - Only show crunch statistics if crunches were detected. + Update upload instructions. + ftp://upload.sourceforge.net is no longer functional. - Warn if the request counts differ. + Remove a couple of package-dependent upload instructions + that don't actually work. - Generate statistics if the log only contains LOG_LEVEL_CLF messages - so it can be used with vanilla webserver logs. - Previously Privoxy-specific "Request:" messages were required. + Remove 'cd current' that no longer works. - Align the client-HTTP-version distribution like other distributions + Add regression-tests.action to the list of files that should be installed. - Bump version to 0.9.1 + Stop claiming that there are text versions of the manuals. + We stopped building them in 2008 (9ed36a3c5e6f12). - Include status code distribution in the stats. + Note that the 'webserver' target creates the link needed for the user-manual. - Let the statistics include the size of the content Privoxy - transferred excluding HTTP headers. + Suggest to use the master branch as reference when creating + the ChangeLog so the steps work when the current branch differs + from master which is likely as the developer manual + suggests to use a local branch for development. - Get with the program and expect all requests to be logged with LOG_LEVEL_REQUEST. - It's no longer necessary to count both LOG_LEVEL_REQUEST and - LOG_LEVEL_CRUNCH messages to get the total number of requests. + Add the -s flag to the suggested 'git tag' command. We prefer signed tags. - Leverage the LOG_LEVEL_CLF message to gather statistics that where - previously taken from LOG_LEVEL_HEADER lines. This results in less - confusing results if https inspection is enabled in which case there - are two LOG_LEVEL_HEADER lines with request lines. - Sponsored by: Robert Klemme + Mention that merges into 'master' should be avoided. + + + + + Add git commands that should result in a merge-free history. - Properly highlight the filter results message. Previously a brace got lost. + Mention Privoxy-Regression-Test. - Prefer the number of CLF lines to get the total number of requests - as it works with older Privoxy versions as well. + Add a section id to reduce link churn. + + + + + Recommend the dok-tidy target when building docs for the webserver. + + + + + Add another plug for the privoxy-devel mailing list. + + + + + Let the intro link the copyright section in the user manual instead + of giving an incomplete summary of the license status. + + + + + Clarify that the webserver target uploads to the SourceForge webserver. + + + + + Mark the documentation for the Mac OS X installers as out of date and + change the SCM name back to CVS. + + + + + Fix the location of the installer modules for Mac OS X. + They are not actually available through git (yet). + + + + + Don't speak of Privoxy version 3 in the past tense. + + + + + Update the list of programs required for the release process. + + + + + Update description of the webserver target which uses ssh, not scp. + + + + + Remove obsolete reference to config.new. @@ -665,31 +922,51 @@ - Privoxy-Regression-Test: + Tests: - Turn curl's globbing mode off so we can allow more characters in URLs. + Add another hide-referrer{conditional-block} test. - Allow '[' and ']' in URLs. + Add another hide-referrer{conditional-forge} test. - Include the action file when complaining about missing Sticky Actions. + Fix a hide-referrer{conditional-forge} test + that expected an acceptable header to be forged. - Fix a sentence in the documentation. + Fix a hide-referrer{conditional-block} test + that expected an acceptable Referer to be removed. - Bump version to 0.7.1 + Explain why the "Set Header = Host: whatever.example.org" test is + expected to fail when using a CGI prefix that starts with "https://". + + + + + Explain why a connection-sharing test is known to fail + when using "https://p.p/" as CGI prefix. + + + + + Add a link to Privoxy-Regression-Test to regression-tests.action + in case it isn't packaged. + + + + + Add regression tests for pcre host patterns. @@ -697,35 +974,40 @@ - url-pattern-translator: + Privoxy infrastructure: - Detect a couple of pattern prefixes case-insensitively. - Sponsored by: Robert Klemme + Import a Privoxy logo for the website. - Skip CLIENT-TAG patterns. - Sponsored by: Robert Klemme + Update Tor onion service to HiddenServiceVersion 3. - Skip patterns that have already been converted. - It should now be safe to "convert" a file multiple times. - Sponsored by: Robert Klemme + Display the "model" photos in a single row and remove placeholder images. - Add the new 'PCRE-HOST-PATTERN:' prefix. - Sponsored by: Robert Klemme + Regenerate homepage with updated sponsor list. + + + + + Use the '/sponsor' redirect for the link to the sponsor page. + + + + + Git commit messages are sent to the Privoxy-commits mailing list. - +