Skip to content

SFTP is changing the absolute path with mod_vroot #23

@willyamcts

Description

@willyamcts

Hello,

in version 1.3.7a of proftpd the same problem reported in issue #20 occurs. I'am using mod_clamav, mod_vroot and mod_sftp. I opened a question in mod_clamav thinking that it was related to mod_clamav, but researching and doing the simple file upload test, it seems that it is mod_sftp changes the environment variable and passes mod_clamav the relative file path. If you want to see the case on mod_clamav: jbenden/mod_clamav#issue12.

occurs when is used VRootEngine only, which replaces the DefatulRoot directive.

in the log when uploading a file using sftp:

Wed Sep 16 07:42:13 2020 0 deb1   9   /eicar_com.zip   b _ i r user sftp 0 * c

in the log when uploading a file using FTP simple:

Wed Sep 16 07:49:38 2020 0 deb1   12   /home/ftp/eicar_com.zip   b _ i r user ftp 0 * c

mod_vroot in version 0.9.5

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions