Jump to content

Recommended Posts

Posted

Hello everyone.

Please tell me how to prevent reading system files under hyper_server.

If I run the service without hyper_server, all handlers work:

image.thumb.png.662d0e9ab2d8f1abdaad6b1c158ce0ec.png

Running under hyper_server successfully processes the request in the OnHttpCommand application handler (ServerModule)

However, when I run the service under hyper_server, the request doesn't even reach the service I'm developing:

image.png.cf4142ba272d943ed05d4a2beff3e902.png

--- 

It doesn't matter whether you run the service as root (sudoers) or as a regular user. All users have permission to read /etc/group; /etc/passwd (It linux). 

It is clear that the request does not even reach the application (headers are not returned).

How can I solve this problem?

 

 

 

 

 

  • Administrators
Posted

uniGUI file handler doesn't allow accessing paths on upper levels.

 // UNG-3576
  ADoc := UniStringReplace(ADoc, '../', '');
  ADoc := UniStringReplace(ADoc, '..\', '');
  ADoc := UniStringReplace(ADoc, #0, '');
  // UNG-3576

 

  • 5 months later...
Posted
On 3/5/2026 at 5:31 PM, Farshad Mohajeri said:

uniGUI file handler doesn't allow accessing paths on upper levels.

 // UNG-3576
  ADoc := UniStringReplace(ADoc, '../', '');
  ADoc := UniStringReplace(ADoc, '..\', '');
  ADoc := UniStringReplace(ADoc, #0, '');
  // UNG-3576

 

Thx. 

I'm just updating... And that's problematic.

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...