Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@asylumfunk
Copy link
Collaborator

prevent breach even with relative path for getInitialCwd

prevent breach even with relative path for getInitialCwd

fix #9
addrummond added a commit that referenced this pull request Jan 31, 2014
@addrummond addrummond merged commit 3464b3f into nodeftpd:master Jan 31, 2014
@asylumfunk asylumfunk deleted the issue/9 branch January 31, 2014 02:23
@asylumfunk
Copy link
Collaborator Author

Thanks again!

asylumfunk added a commit to asylumfunk/nodeftpd that referenced this pull request Mar 7, 2014
This commit properly resolves MDTM request filenames to locations within
the CHROOT jail. Previously, requests were made relative to the
filesystem root (/), instead of the server root (/srv/files/from/here).

This allowed users to request MDTM on potentially sensitive files
(/root, /home), while simultaneously denying legitimate requests within
the shared directory.

Note: all filesystem calls *must* be joined with the path to the server
root (pathModule.join(self.root, filename)).

fix #28
ref nodeftpd@57a9e5f
ref nodeftpd#5
ref nodeftpd#9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants