Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
# the build provenance attestation (signed by GitHub's OIDC token,
# stored with the repository's attestations)
id-token: write
attestations: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
Expand All @@ -42,6 +46,14 @@ jobs:
with:
name: bfstop-${{ needs.ci.outputs.version }}
path: build
# who built the zips, from which commit, with which workflow: checked
# with `gh attestation verify pkg_bfstop-X.Y.Z.zip --repo codeling/bfstop`
- name: Attest the build provenance of the zips
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
with:
subject-path: |
build/*.zip
build/SHA256SUMS-*
- name: Create the draft release
env:
GH_TOKEN: ${{ github.token }}
Expand Down
46 changes: 46 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
2.0.0 (unreleased)
- Requires PHP 8.2 (was 8.1), the oldest version CI runs the tests on
- Hardening (issue #285): the page shown to a blocked address and the
unblock page may not be shown in another site's frame, and the unblock
page's type is not left to the browser to guess; with a proxy
configured, a request which didn't come through it is logged once an
hour for its address, not each time (anybody can send them, and push
the entries that matter out of the log); the proxy settings show where
the administrator's own request came from, its forwarding headers and
the address BFStop makes of them, and say that Client-Ip and
X-Cluster-Client-Ip are only safe if the proxy overwrites them; the
description of the blocking modes says which logins "Login Only" stops;
blocking through .htaccess is refused on nginx (which doesn't read the
file), LiteSpeed gets a warning of its own, and the warnings about the
.htaccess file only show where it is used; the release zips get a build
provenance attestation
- Issue #285: in "Full Site" mode, a blocked address's requests to the
backend and the API are refused before Joomla routes them (none of the
pages a blocked address may reach is there), with the queries of that
check not repeated after routing
- Issue #285: a blocked address may submit the forms of the password
recovery (reset request, code, new password, username reminder) at most
10 times an hour; they send mails, and Joomla limits only the password
reset (per account), not the reminder. The description of the password
reminder setting recommends a captcha for these forms
- Issue #285: what administrators do with BFStop goes into Joomla's User
Actions Log - blocks added, changed and lifted, the allow list, the
.htaccess entries, the settings (the names of those changed), purging
failed logins or user name statistics, pruning and clearing BFStop's
log - as does lifting a block with the link of an unblock mail. BFStop's
own log can be cleared by the people it should hold to account. The
installation adds "Brute Force Stop" to the extensions the User Actions
Log records (its option "Events To Log"), where it can be unticked
- Issue #285: the settings page has a button which checks whether the web
server honours the block section of the .htaccess file: it makes a test
directory next to the file, with a .htaccess of the same form which
refuses one particular query, requests its file once with another query
and once with that one, and removes it again. It tells whether the
section works, is ignored (AllowOverride, or not Apache), breaks the site
(status 500), or why it couldn't be checked
- Issue #285: for sites behind nginx (which doesn't read .htaccess
files), the new setting "nginx Deny File" names a *.conf file in which
BFStop keeps the active blocks as "deny" lines, for the site's nginx
configuration to include, with "Full Site". It is written from the
block list on each block, unblock and change of a block, and by the
daily maintenance; entries overlapping the allow list or a trusted
proxy are left out, and only a file BFStop wrote is ever overwritten.
nginx reads it when it is reloaded, which the server has to arrange
- Issue #294: the administrators' mail about a block lists the failed
logins which led to it, not every failed login of the address still
stored (for a permanent block: of ten years, including those of earlier
Expand Down
6 changes: 6 additions & 0 deletions component/admin/forms/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@
validate="htaccesspath"
label="PLG_SYSTEM_BFSTOP_HTACCESS_PATH_LABEL"
description="PLG_SYSTEM_BFSTOP_HTACCESS_PATH_DESC" />
<!-- with "Full Site": the active blocks as "deny" lines for nginx,
which doesn't read .htaccess files (see NginxDenyFile) -->
<field name="nginxDenyFile" type="text" default="" showon="blockMode:full"
validate="nginxdenyfile"
label="COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_LABEL"
description="COM_BFSTOP_SETTINGS_NGINX_DENY_FILE_DESC" />
</fieldset>
<fieldset name="delay" label="PLG_SYSTEM_BFSTOP_DELAY_FIELDSET_LABEL">
<field name="delayDuration" type="integer" validate="options"
Expand Down
Loading