Open martinjgrunwald opened 1 year ago
This is caused by input sanitization: https://github.com/opnsense/plugins/blob/c8a3470cda9ca7e160af962cf9b0a524cca4e05e/security/acme-client/src/opnsense/scripts/OPNsense/AcmeClient/upload_sftp.php#L423
However I think potential unsafe chars shouldn’t be allowed. Asterisk is valid in folder/filenames but dealing with it can be dangerous as it may expand to multiple paths when referencing the folder, depending on how and where it is used.
Important notices Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug I used the "Upload Certificate via SFTP" automation to upload my wildcard certificate from the OPNsense to an ubuntu machine. The folder on the ubuntu machine was not named correctly. Instead of the folder name starting with
*
it instead started with-
. So the folder name was-.example.org
instead of*.examle.org
To Reproduce Steps to reproduce the behavior:
-.example.org
appearsExpected behavior A folder named
*.example.org
should appear on the Ubuntu machineEnvironment OPNsense 23.1.6-amd64 os-acme-client 3.16