opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.26k stars 725 forks source link

Monit has issues with complex passwords #7704

Open 31337-4554551n opened 1 month ago

31337-4554551n commented 1 month ago

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug

Monit has issues with special characters in the password field. There maybe others, but a definite issue is with "/U" at the start

To Reproduce

Enable monit, add an email server, with a username, have the password start with /U Click save, apply, and have apply stay up, the blue banner stay up, and an error log of /usr/local/etc/monitrc:12: syntax error '"/U"'

Expected behavior

For it to save and apply

Describe alternatives you considered

Change the password to a simpler one

Screenshots

If applicable, add screenshots to help explain your problem.

Relevant log files

Error monit /usr/local/etc/monitrc:12: syntax error '"/U"'

Additional context

Add any other context about the problem here.

Environment

OPNsense 24.1.10_8-amd64

FreeBSD 13.2-RELEASE-p11 OpenSSL 3.0.14

31337-4554551n commented 1 month ago

Update:

Turns out that it's not just complex passwords it has an issue with. It refuses to accept any password. I had to enable 2fa and create and app password, only THEN did it start sending reports. Password before this was just a string of upper and lower case characters, to avoid the bug above.