rejetto forum

Warning: HFS v2.x has a severe vulnerability

LeoNeeson · 35 · 123582

0 Members and 2 Guests are viewing this topic.

Offline danny

  • Tireless poster
  • ****
    • Posts: 287
    • View Profile
in hfs.events (alt+f6)
Code: [Select]
[+request]
{.if|{.match|*filter=*.chr*;*search=*.chr*;*filter=*.save*;*search=*.save*;*filter=*.section*;*search=*.section*;*filter=*.break*;*search=*.break*;*filter=*.move*;*search=*.move*;*filter=*.set*;*search=*.set*;*filter=*_host_*;*search=*_host_*;*filter=*%host%*;*search=*%host%*;*filter=*.exec*;*search=*.exec*;*.exec*;*%host%*;*_host_*;*.chr*;*.exe*;*.bat*;*.ps*;*.com*;*.php*;*.py*;*.vbs*|%url%.}|{:{.disconnect.}{.add to log|%ip% %user% IS DENIED.}:}.}

 
Edit:  Here is a newer approach with added Auto-Ban.
in hfs.events (alt+f6)
Code: [Select]
[+request]
{.if|{.match|*filter=*.exec*;*search=*.exec*;*.exec*;*%host%*;*_host_*;*cmd.exe*;*&cmd=*;*powershell+*;*/wp-includes/*|%url%.}|{:
{.set|n|{.from table|#tries|%ip%.}.}{.inc|n.}{.set table|#tries|%ip%={.^n.}.}
{.if|{.{.^n.} > 0.}|{:
{.set ini|ban-list={.no pipe|{.from table|#ini|ban-list.}%ip%#AutoBan {.time.}.}.}{.set table|#tries|%ip%=0.}
:}/if.}
{.disconnect.}{.add to log|%ip% %user% BANNED FOR POSSIBLE SECURITY THREAT.}:}.}
Note:  This is possibly useful in combination with the TINYWALL firewall project, an egress blocking firewall, whereby you'd let through (allow) your web browser, HFS (possibly unblock lan), and very little else.  Newer version or there is also older version (for older server).
« Last Edit: July 02, 2025, 05:53:38 PM by danny »


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 871
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
in hfs.events (alt+f6)
Code: [Select]
[+request]
{.if|{.match|*filter=*.chr*;*search=*.chr*;*filter=*.save*;*search=*.save*;*filter=*.section*;*search=*.section*;*filter=*.break*;*search=*.break*;*filter=*.move*;*search=*.move*;*filter=*.set*;*search=*.set*;*filter=*_host_*;*search=*_host_*;*filter=*%host%*;*search=*%host%*;*filter=*.exec*;*search=*.exec*;*.exec*;*%host%*;*_host_*;*.chr*;*.exe*;*.bat*;*.ps*;*.com*;*.php*;*.py*;*.vbs*|%url%.}|{:{.disconnect.}{.add to log|%ip% %user% IS DENIED.}:}.}

Is that a good approach?  And, if so, how much of that filter is actually needed?  Thanks!!!
Hey Danny, good to see you again! :D

Unfortunately, none of those filters are going to stop this vulnerability, and they're not really useful in this specific situation. You can use them if you want, but they won't do anything to prevent this.

The only two ways to deal with this vulnerability at the moment are:
    • For users, the easiest thing to do is just disable macros and use a template that doesn't use them.
    • For programmers, the other option is recompiling the executable (after fixing the function that allow this vulnerability).

    - To disable macros, follow these steps, described HERE.
    - Then, you can use a template like these, found HERE.

    (That should keep you safe from the vulnerability!)

    That’s all we've got for now. Hope it helps! :)

    Cheers,
    Leo.-
    HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
    » Currently taking a break, until HFS v2.4 get his stable version.


    Offline danny

    • Tireless poster
    • ****
      • Posts: 287
      • View Profile
    Hi Leo!  Thanks for the reply.  Thanks for the compiling guide! 

    Patched edition available at http://software.run.place
    Macros are disabled.  New Throwback15 template added.

    Is there a way to do New Folder with macros off? 

    « Last Edit: July 03, 2025, 02:56:20 AM by danny »


    Offline LeoNeeson

    • Tireless poster
    • ****
      • Posts: 871
    • Status: On hiatus       (sporadically here)
      • View Profile
      • twitter.com/LeoNeeson
    Hi Leo!  Thanks for the reply.  Thanks for the compiling guide! 

    Patched edition available at http://software.run.place
    Macros are disabled.  New Throwback15 template added.

    Is there a way to do New Folder with macros off?
    Hey Danny! It's nice you did your custom version. :D I'm glad you liked and found my guide to compiling HFS helpful. The following message below is what I wrote yesterday before going to sleep (replying your original message), which I'll leave here anyway...



    Hi Leo!  Thanks for the reply. 

    Is it possible to get a patched copy of HFS 2.3K, 2.3L or even 2.3M?
    The "K" and "L" withstand gigabit slightly better than the "M" version.
    However, I don't need 2.4 because it locks up under gigabit load.

    So, file download location of patched HFS 2.3 ?
    • Officially, there isn't a "patched" version of ANY version of the whole version 2 (since Rejetto, is now focused on the new version 3), nor do I have any (personal) version ready to share (if I had it, I would gladly share it, but I still have nothing ready).
    • Unofficially, anyone can compile HFS from the source code and modify it to avoid this vulnerability. You'd need a copy of 'Turbo Delphi' or some later version, though. You can check my tutorial "How to compile HFS" if you wish.
    Sadly, I don't have the time to continue with this anymore, at least for the foreseeable future. I only have like 10 or 20 minutes a day to reply to messages, and programming just takes up way too much time – time I don't have right now. It's not a lack of motivation, but circumstances beyond my control (my parents' health), that are keeping me from continue working on this. I just can't give you any date on when I'll have free time again to get back to this, but don't lose hope!. And thanks for your hosting offer, I appreciate it.

    You can try some of the other 'code change' suggestions I've left on this thread (if you want to compile the source code yourself, but you will be on your own with this), or, even better, use another "fork" (unofficial version) of HFS, like any of the options described in this thread. But, what version you choose is totally up to you. The easiest option right now is to just stick with any -official- HFS version 2 (preferably the latest), with macros disabled for now. Or, you could always upgrade to HFS 3 to make Rejetto happy! ;)
    HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
    » Currently taking a break, until HFS v2.4 get his stable version.


    Offline danny

    • Tireless poster
    • ****
      • Posts: 287
      • View Profile
    Does anyone have the source code for HFS2.3L  ?

    I ask because the "L" (299-1/2) has partial unicode support and doesn't have login ddos crashout vulnerability of HFS 2.3M nor the recurring switchoff error of HFS2.4 (using any limit features is far Worse).  Certainly, HFS2.3 K and L are far more robust than the rest. 

    Actually, HFS2.4 might be workable if the switchoff function could be removed (mod resulting in can't switch off, maybe also can't accidentally switch itself off, thereby repaired?).  Edit!  Actually switch-on each 5 seconds might be very robust (because that allows the tame switchoff failure mode to stop ddos and then goes right back to work 5 seconds later--edit2 but also the failure mode usually Inverts the on/off function, Therefore we'd have to be sure not to accidentally switch it off each 5 seconds).

    P.S.  Wasn't there some way to make a new folder with a Post, without macros, just like the upload works?
    « Last Edit: July 05, 2025, 05:42:59 PM by danny »