Skip to content

Commit dfab8ed

Browse files
Merge pull request #2496 from bunkerity/dev
2 parents a0f0fd2 + 91b9324 commit dfab8ed

30 files changed

+612
-553
lines changed

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
python -m pip install --no-cache-dir --require-hashes -r src/common/db/requirements.txt
3535
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
3636
- name: Initialize CodeQL
37-
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
37+
uses: github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
3838
with:
3939
languages: ${{ matrix.language }}
4040
config-file: ./.github/codeql.yml
4141
setup-python-dependencies: false
4242
- name: Perform CodeQL Analysis
43-
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
43+
uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
4444
with:
4545
category: "/language:${{matrix.language}}"

.github/workflows/container-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
# Check OS vulnerabilities
121121
- name: Check OS vulnerabilities
122122
if: ${{ inputs.CACHE_SUFFIX != 'arm' }}
123-
uses: aquasecurity/trivy-action@76071ef0d7ec797419534a183b498b4d6366cf37 # v0.31.0
123+
uses: aquasecurity/trivy-action@dc5a429b52fcf669ce959baa2c2dd26090d2a6c4 # v0.32.0
124124
with:
125125
vuln-type: os
126126
skip-dirs: /root/.cargo

.github/workflows/scorecards-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
results_format: sarif
2626
publish_results: true
2727
- name: "Upload SARIF results to code scanning"
28-
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
28+
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
2929
with:
3030
sarif_file: results.sarif

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ BunkerWeb UI supports multiple languages. Translations are managed in the `src/u
394394
- Chinese (zh)
395395
- German (de)
396396
- Italian (it)
397+
- Turkish (tr)
397398

398399
See the [locales/README.md](https://github.com/bunkerity/bunkerweb/raw/v1.6.2/src/ui/app/static/locales/README.md) for details on translation provenance and review status.
399400

docs/features.md

Lines changed: 467 additions & 450 deletions
Large diffs are not rendered by default.

docs/integrations.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -527,17 +527,18 @@ For a simplified installation experience, BunkerWeb provides an easy install scr
527527
Download and run the installation script:
528528

529529
```bash
530-
curl -fsSL https://github.com/bunkerity/bunkerweb/raw/v1.6.2/misc/install-bunkerweb.sh | sudo bash
531-
```
532-
533-
Or download first and then execute:
534-
535-
```bash
536-
wget https://github.com/bunkerity/bunkerweb/raw/v1.6.2/misc/install-bunkerweb.sh
530+
wget https://raw.githubusercontent.com/bunkerity/bunkerweb/v1.6.2/misc/install-bunkerweb.sh
537531
chmod +x install-bunkerweb.sh
538532
sudo ./install-bunkerweb.sh
539533
```
540534

535+
!!! warning "Security Notice"
536+
Before running any installation script, especially with elevated privileges, it's recommended to review the script content first.
537+
538+
```bash
539+
cat install-bunkerweb.sh
540+
```
541+
541542
#### Interactive installation
542543

543544
By default, the script runs in interactive mode and will:
@@ -640,7 +641,7 @@ Please ensure that you have **NGINX 1.28.0 installed before installing BunkerWeb
640641

641642
```shell
642643
sudo apt update && \
643-
sudo apt install -y nginx=1.28.0-1~$(lsb_release -cs)
644+
sudo apt install -y --allow-downgrades nginx=1.28.0-1~$(lsb_release -cs)
644645
```
645646

646647
!!! warning "Testing/dev version"
@@ -662,7 +663,7 @@ Please ensure that you have **NGINX 1.28.0 installed before installing BunkerWeb
662663
```shell
663664
curl -s https://repo.bunkerweb.io/install/script.deb.sh | sudo bash && \
664665
sudo apt update && \
665-
sudo -E apt install -y bunkerweb=1.6.2
666+
sudo -E apt install -y --allow-downgrades bunkerweb=1.6.2
666667
```
667668

668669
To prevent upgrading NGINX and/or BunkerWeb packages when executing `apt upgrade`, you can use the following command:
@@ -688,7 +689,7 @@ Please ensure that you have **NGINX 1.28.0 installed before installing BunkerWeb
688689

689690
```shell
690691
sudo apt update && \
691-
sudo apt install -y nginx=1.28.0-1~$(lsb_release -cs)
692+
sudo apt install -y --allow-downgrades nginx=1.28.0-1~$(lsb_release -cs)
692693
```
693694

694695
!!! warning "Testing/dev version"
@@ -710,7 +711,7 @@ Please ensure that you have **NGINX 1.28.0 installed before installing BunkerWeb
710711
```shell
711712
curl -s https://repo.bunkerweb.io/install/script.deb.sh | sudo bash && \
712713
sudo apt update && \
713-
sudo -E apt install -y bunkerweb=1.6.2
714+
sudo -E apt install -y --allow-downgrades bunkerweb=1.6.2
714715
```
715716

716717
To prevent upgrading NGINX and/or BunkerWeb packages when executing `apt upgrade`, you can use the following command:
@@ -736,7 +737,7 @@ Please ensure that you have **NGINX 1.28.0 installed before installing BunkerWeb
736737
Fedora already provides NGINX 1.26.3 that we support (NGINX 1.28.0 is not yet available in Fedora repositories):
737738

738739
```shell
739-
sudo dnf install -y nginx-1.26.3
740+
sudo dnf install -y --allowerasing nginx-1.26.3
740741
```
741742

742743
!!! example "Disable the setup wizard"
@@ -751,7 +752,7 @@ Please ensure that you have **NGINX 1.28.0 installed before installing BunkerWeb
751752
```shell
752753
curl -s https://repo.bunkerweb.io/install/script.rpm.sh | sudo bash && \
753754
sudo dnf makecache && \
754-
sudo -E dnf install -y bunkerweb-1.6.2
755+
sudo -E dnf install -y --allowerasing bunkerweb-1.6.2
755756
```
756757

757758
To prevent upgrading NGINX and/or BunkerWeb packages when executing `dnf upgrade`, you can use the following command:
@@ -786,7 +787,7 @@ Please ensure that you have **NGINX 1.28.0 installed before installing BunkerWeb
786787
You should now be able to install NGINX 1.28.0:
787788

788789
```shell
789-
sudo dnf install nginx-1.28.0
790+
sudo dnf install --allowerasing nginx-1.28.0
790791
```
791792

792793
!!! example "Disable the setup wizard"
@@ -801,7 +802,7 @@ Please ensure that you have **NGINX 1.28.0 installed before installing BunkerWeb
801802
```shell
802803
curl -s https://repo.bunkerweb.io/install/script.rpm.sh | sudo bash && \
803804
sudo dnf check-update && \
804-
sudo -E dnf install -y bunkerweb-1.6.2
805+
sudo -E dnf install -y --allowerasing bunkerweb-1.6.2
805806
```
806807

807808
To prevent upgrading NGINX and/or BunkerWeb packages when executing `dnf upgrade`, you can use the following command:

docs/upgrading.md

Lines changed: 50 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119

120120
```shell
121121
sudo apt update && \
122-
sudo apt install -y bunkerweb=1.6.2
122+
sudo apt install -y --allow-downgrades bunkerweb=1.6.2
123123
```
124124

125125
To prevent the BunkerWeb package from upgrading when executing `apt upgrade`, you can use the following command :
@@ -145,7 +145,7 @@
145145

146146
```shell
147147
sudo dnf makecache && \
148-
sudo dnf install -y bunkerweb-1.6.2
148+
sudo dnf install -y --allowerasing bunkerweb-1.6.2
149149
```
150150

151151
To prevent the BunkerWeb package from upgrading when executing `dnf upgrade`, you can use the following command :
@@ -199,7 +199,15 @@
199199

200200
=== "Docker"
201201

202-
1. **Restore the backup**.
202+
1. **Extract the backup if zipped**.
203+
204+
Extract the backup zip file first:
205+
206+
```bash
207+
unzip /path/to/backup/directory/backup.zip -d /path/to/backup/directory/
208+
```
209+
210+
2. **Restore the backup**.
203211

204212
=== "SQLite"
205213

@@ -268,7 +276,7 @@
268276
docker compose down
269277
```
270278

271-
2. **Downgrade BunkerWeb**.
279+
3. **Downgrade BunkerWeb**.
272280

273281
```yaml
274282
services:
@@ -286,21 +294,29 @@
286294
...
287295
```
288296

289-
3. **Start the containers**.
297+
4. **Start the containers**.
290298

291299
```bash
292300
docker compose up -d
293301
```
294302

295303
=== "Linux"
296304

297-
4. **Stop the services**.
305+
4. **Extract the backup if zipped**.
306+
307+
Extract the backup zip file first:
308+
309+
```bash
310+
unzip /path/to/backup/directory/backup.zip -d /path/to/backup/directory/
311+
```
312+
313+
5. **Stop the services**.
298314

299315
```bash
300316
sudo systemctl stop bunkerweb bunkerweb-ui bunkerweb-scheduler
301317
```
302318

303-
5. **Restore the backup**.
319+
6. **Restore the backup**.
304320

305321
=== "SQLite"
306322

@@ -337,13 +353,13 @@
337353
psql -U <username> -d <database_name> < /path/to/backup/directory/backup.sql
338354
```
339355

340-
6. **Start the services**.
356+
7. **Start the services**.
341357

342358
```bash
343359
sudo systemctl start bunkerweb bunkerweb-ui bunkerweb-scheduler
344360
```
345361

346-
7. **Downgrade BunkerWeb**.
362+
8. **Downgrade BunkerWeb**.
347363
- Downgrade BunkerWeb to the previous version by following the same steps as when upgrading BunkerWeb in the [integration Linux page](integrations.md#linux)
348364

349365
## Upgrade from 1.5.X
@@ -577,7 +593,7 @@ We added a **namespace** feature to the autoconf integrations. Namespaces allow
577593

578594
```shell
579595
sudo apt update && \
580-
sudo apt install -y bunkerweb=1.6.2
596+
sudo apt install -y --allow-downgrades bunkerweb=1.6.2
581597
```
582598

583599
To prevent the BunkerWeb package from upgrading when executing `apt upgrade`, you can use the following command :
@@ -603,7 +619,7 @@ We added a **namespace** feature to the autoconf integrations. Namespaces allow
603619

604620
```shell
605621
sudo dnf makecache && \
606-
sudo dnf install -y bunkerweb-1.6.2
622+
sudo dnf install -y --allowerasing bunkerweb-1.6.2
607623
```
608624

609625
To prevent the BunkerWeb package from upgrading when executing `dnf upgrade`, you can use the following command :
@@ -655,7 +671,15 @@ We added a **namespace** feature to the autoconf integrations. Namespaces allow
655671

656672
=== "Docker"
657673

658-
1. **Restore the backup**.
674+
1. **Extract the backup if zipped**.
675+
676+
Extract the backup zip file first:
677+
678+
```bash
679+
unzip /path/to/backup/directory/backup.zip -d /path/to/backup/directory/
680+
```
681+
682+
2. **Restore the backup**.
659683

660684
=== "SQLite"
661685

@@ -724,7 +748,7 @@ We added a **namespace** feature to the autoconf integrations. Namespaces allow
724748
docker compose down
725749
```
726750

727-
2. **Downgrade BunkerWeb**.
751+
3. **Downgrade BunkerWeb**.
728752

729753
```yaml
730754
services:
@@ -742,21 +766,29 @@ We added a **namespace** feature to the autoconf integrations. Namespaces allow
742766
...
743767
```
744768

745-
3. **Start the containers**.
769+
4. **Start the containers**.
746770

747771
```bash
748772
docker compose up -d
749773
```
750774

751775
=== "Linux"
752776

753-
4. **Stop the services**.
777+
4. **Extract the backup if zipped**.
778+
779+
Extract the backup zip file first:
780+
781+
```bash
782+
unzip /path/to/backup/directory/backup.zip -d /path/to/backup/directory/
783+
```
784+
785+
5. **Stop the services**.
754786

755787
```bash
756788
sudo systemctl stop bunkerweb bunkerweb-ui bunkerweb-scheduler
757789
```
758790

759-
5. **Restore the backup**.
791+
6. **Restore the backup**.
760792

761793
=== "SQLite"
762794

@@ -793,11 +825,11 @@ We added a **namespace** feature to the autoconf integrations. Namespaces allow
793825
psql -U <username> -d <database_name> < /path/to/backup/directory/backup.sql
794826
```
795827

796-
6. **Start the services**.
828+
7. **Start the services**.
797829

798830
```bash
799831
sudo systemctl start bunkerweb bunkerweb-ui bunkerweb-scheduler
800832
```
801833

802-
7. **Downgrade BunkerWeb**.
834+
8. **Downgrade BunkerWeb**.
803835
- Downgrade BunkerWeb to the previous version by following the same steps as when upgrading BunkerWeb in the [integration Linux page](integrations.md#linux)

src/autoconf/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RUN apk add --no-cache bash tzdata && \
4343
adduser -h /usr/share/bunkerweb/autoconf -g autoconf -s /sbin/nologin -G autoconf -D -H -u 101 --disabled-password autoconf
4444

4545
# Fix CVEs
46-
# There are no CVEs for the following packages
46+
RUN apk add --no-cache "libcrypto3>=3.5.1-r0" "libssl3>=3.5.1-r0" # CVE-2025-4575
4747

4848
# Copy dependencies
4949
COPY --from=builder --chown=0:101 --chmod=550 /usr/share/bunkerweb /usr/share/bunkerweb

src/common/core/antibot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Attackers often use automated tools (bots) to try and exploit your website. To p
1111

1212
Follow these steps to enable and configure the Antibot feature:
1313

14-
1. **Choose a challenge type:** Decide which type of antibot challenge to use (e.g., [captcha](#__tabbed_1_3), [hcaptcha](#__tabbed_1_5), [javascript](#__tabbed_1_2)).
14+
1. **Choose a challenge type:** Decide which type of antibot challenge to use (e.g., [captcha](#__tabbed_3_3), [hcaptcha](#__tabbed_3_5), [javascript](#__tabbed_3_2)).
1515
2. **Enable the feature:** Set the `USE_ANTIBOT` setting to your chosen challenge type in your BunkerWeb configuration.
1616
3. **Configure the settings:** Adjust the other `ANTIBOT_*` settings as needed. For reCAPTCHA, hCaptcha, Turnstile, and mCaptcha, you must create an account with the respective service and obtain API keys.
1717
4. **Important:** Ensure the `ANTIBOT_URI` is a unique URL on your site that is not in use.

src/common/core/ui/confs/http/ui.modsec-crs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ SecRule REQUEST_HEADERS:Host "@eq {{ server_name }}" \
4343
"nolog"
4444

4545
SecRule REQUEST_FILENAME "@endsWith /login" \
46-
"id:1007778,ctl:ruleRemoveTargetByTag=attack-sqli;ARGS:password,ctl:ruleRemoveTargetByTag=attack-rce;ARGS:password,ctl:ruleRemoveTargetByTag=attack-rfi;ARGS:password,ctl:ruleRemoveTargetByTag=attack-lfi;ARGS:password,ctl:ruleRemoveTargetByTag=attack-protocol;ARGS:password,ctl:ruleRemoveTargetByTag=attack-ssrf;ARGS:password,ctl:ruleRemoveTargetByTag=attack-xss;ARGS:password,nolog"
46+
"id:1007778,ctl:ruleRemoveTargetByTag=attack-sqli;ARGS:password,ctl:ruleRemoveTargetByTag=attack-rce;ARGS:password,ctl:ruleRemoveTargetByTag=attack-rfi;ARGS:password,ctl:ruleRemoveTargetByTag=attack-lfi;ARGS:password,ctl:ruleRemoveTargetByTag=attack-protocol;ARGS:password,ctl:ruleRemoveTargetByTag=attack-ssrf;ARGS:password,ctl:ruleRemoveTargetByTag=attack-xss;ARGS:password,nolog,chain"
4747
SecRule REQUEST_HEADERS:Host "@eq {{ server_name }}" \
4848
"nolog"
4949

5050
SecRule REQUEST_FILENAME "@endsWith /instances/new" \
51-
"id:1007779,ctl:ruleRemoveTargetById=931100;ARGS:hostname,nolog"
51+
"id:1007779,ctl:ruleRemoveTargetById=931100;ARGS:hostname,nolog,chain"
5252
SecRule REQUEST_HEADERS:Host "@eq {{ server_name }}" \
5353
"nolog"
5454

0 commit comments

Comments
 (0)