r/linuxadmin • • 28d ago

If you are using Fail2Ban-Report, please update to the latest Patch

Hi, I am the Maintainer of Fail2Ban-Report,

There was a security patch 0.5.3 - if you are using Fail2Ban-Report, please update as soon as possible to this new Version 0.5.3 from any other previous version.
You will find a list of changed files in the changelog

Security Fixes & Hardening

  • Fixed Stored Cross-Site Scripting (XSS) via Client Sync (0.5.1 Hotfix): Resolved a critical vulnerability in backsync.php and blocklist-overlay.js where malicious or compromised sync clients could upload a manipulated JSON file containing arbitrary JavaScript payloads (e.g., inside the ip or jail fields). The UI has been refactored to ban innerHTML usage, shifting entirely to secure textContent and createElement DOM manipulation to neutralize any script execution hazards.
  • Fixed Authentication Bypass on Read Plane (0.5.2): Resolved an architectural flaw where unauthenticated network sessions were automatically assigned a default viewer role, leaving sensitive firewall history, server configurations, and blocking aggregations open to anonymous actors. Access is now strictly guarded at the global gateway level.
  • Fixed Shell Command Injection in Helper Scripts (0.5.2): Patched manage_users.sh and manage-clients.sh where user-supplied inputs containing specific shell characters (like apostrophes) were interpreted as executable PHP program text. Data payloads are now passed securely using isolated environment variables (getenv()).
  • Fixed Credentials Leak in Process Table (0.5.2): Hardened the multi-server sync engine (syncback.sh and fail2ban_log2json.sh) to prevent sync passwords (CLIENT_PASS) from leaking into the host's public process listing (argv). Commands are now packaged dynamically inside localized, temporary configuration files (chmod 600).
  • Secured API Lookup Restrictions & Data Sanitization: Overhauled action_report-ip.php to mandate active administrator verification before reaching outbound services, preventing blind exploitation of paid lookups (AbuseIPDB / IPinfo). Integrated native IP structure enforcement (FILTER_VALIDATE_IP).
  • Web-UI/assets/js/jsonreader.js: Refactored renderTable() to use XSS-safe DOM manipulation and added CSP-safe event listeners for toolbar buttons.
  • Web-UI/assets/js/warnings.js: Refactored multi-jail status rendering to prevent XSS via safe DOM node creation.
  • Web-UI/assets/js/fail2ban-logstats.js: Refactored top-jails list rendering to be XSS-safe and removed duplicate function definitions.
  • Web-UI/index.php: Replaced inline onclick attributes on toolbar buttons with IDs for CSP compatibility.
  • Web-UI/endpoint/index.php: Added strict JSON validation (ip, jail, action, timestamp) and clean re-encoding for uploaded event and blocklist files.
  • Web-UI/endpoint/backsync.php: Hardened upload validation (timestamp, field lengths, safe path handling) and enforced JSON re-encoding before saving.
  • Web-UI/.htaccess: Enabled Content-Security-Policy (script-src 'self') and additional HTTP security headers.
42 Upvotes

19 comments sorted by

3

u/Critical_Purple_1988 28d ago

Respect for posting the full breakdown instead of a vague "update when convenient" note, that auth bypass quietly handing anonymous users a default viewer role is a nasty one to have been sitting there. Appreciate maintainers who patch loudly and own exactly what was wrong, makes the project so much easier to trust.

4

u/su_ble 28d ago

Thy. I sadly get downvoted and trolled by a bunch of internet Rambo's in selfhosted and in here. Makes it difficult to get out important information

1

u/bigredradio 26d ago

That's because you work for "Big Security". /s

6

u/mk_gecko 28d ago

Just clarify if it has anything to do with fail2ban.

Why not also provide a link to your repo if it is not https://github.com/fail2ban/fail2ban ?

fail2ban-client --version Fail2Ban v0.11.2

It looks like fail2ban is at version 1.1.1

So nothing about 0.5.1 or 0.5.2

Your post is VERY confusing:

There was a security patch 0.5.2 - if you are using it, please update as soon as possible.

But then all you do is list all of the things that 0.5.2 fixes. -- so it looks like this is the update that we should be using.

So, is 0.5.2 GOOD OR BAD? If it is BAD (insecure), please state the version that IS patched, updated, fixed.

How about telling us also the update version that people should update to?

5

u/su_ble 28d ago edited 28d ago

Version 0.5.2 is the patched version you should upgrade to. It is NOT Fail2ban or Fail2Ban-Client it is a Standalone Project to show Bans and Unbans from your Fail2ban in a simple WebUI.

https://github.com/SubleXBle/Fail2Ban-Report

3

u/bastian320 28d ago

Is it though? Your repo makes it seem like 0.5.2 is the patched version. Although your changelog.md file has no info for 0.5.2 nor 0.5.1 versions, just looks like incomplete template listing of changed files so far.

Feeling unintentionally misleading now, as though you're totally out of your depth.

4

u/bendem 28d ago

You are being obtuse. I read the post and while the wording was kinda weird, I used my brain and understood that 0.5.2 was the version containing the fix.

Not everyone is a native speaker, you don't have to attack them for it. You could be helpful, kind, gentle. Everybody would be better off for it.

0

u/dsmiles 28d ago

It may appear that way now, but in reality OP went back and edited their post and comments to be clearer after the fact.

2

u/bendem 28d ago

Maybe, but what I'm seeing is you attacking someone that's obviously not a native speaker. There is really no need for this level of aggressivity.

-1

u/dsmiles 28d ago edited 27d ago

Well I did not attack anyone, but the rest of what you said is true, we should all try to be more compassionate and understanding when we communicate with each other.

-11

u/su_ble 28d ago edited 28d ago

Are you using https://github.com/SubleXBle/Fail2Ban-Report or not?

you are questioning if the latest version is the latest version : as an answer from me that it is the latest version.

THIS is confusing ... dude!

5

u/mk_gecko 28d ago

You still make no sense at all.

Your repo tells us to upgrade to 0.5.2, but this post and comments say not it.

REPO

Please Update as soon as possible when you are using 0.5.0 or 0.5.1

POST

There was a security patch 0.5.2 - if you are using it, please update as soon as possible.

Pronoun: "it". It refers to "security patch 0.5.2" If you are using security patch 0.5.2 please update as soon as possible

COMMENT from su_ble

Version 0.5.0 is the patched version you should upgrade to.

-16

u/su_ble 28d ago

There was a security patch 0.5.2 - if you are using Fail2Ban-Report, please update as soon as possible to this new Version 0.5.2 from any other previous version.

you might get it now, if not please dont use my repo becuase you might not be able to set it up

6

u/bastian320 28d ago

You've edited your comment that I'd replied to now, yet are getting more hostile. Good reason to avoid this project. I was only trying to give insight into why perception here is so poor.

1

u/su_ble 14d ago

next security fix was added today for version 0.5.3 => Please upgrade asap
PHP Security is hard to stay ahead of these days

1

u/Idontremember99 28d ago

Sorry to say, but the Readme and changelog is a mess. The changelog does not say what changed in 0.5.1 and 0.5.2. The whole "What's New in v0.5.2" in the readme should be in the changelog and the link in the first part doesn't work

-4

u/mk_gecko 28d ago

Guys!

This is a classic example of why it is important to be able to write clearly,

to know how which version numbers are which and what pronouns refer to.

Someone who knows how to write English sentences clearly could have avoided the ongoing, unending confusion, but it probably is a good learning experience.

5

u/andexs 28d ago

Bro stop being insufferable lol. The guy here is just letting people about some critical fixes. With everyone scrambling to keep up with all the new cve’s this guy thought to add a post on subreddit. Chill. Giving “Arch btw vibes”

-11

u/su_ble 28d ago edited 28d ago

why are you trying to discredit my posts? If you are so confused, just dont use it - and we all are good

and if your expectations are that high, you might bless the community with something better and with more clear instructions where noone can go wrong, I will gladly test it then :)