Bug #16483
openIt's possible to use some disallowed characters in 'Read Community String' field for SNMP
0%
Description
Tested on 25.07.1
I was able to use symbol $ in the name of community: $tring2025 (Read Community String field) and successfully saved it ('no error message but SNMP failed to start.png') but then SNMP failed to start and in System log I got
Oct 14 12:10:45 php-fpm 41561 /services_snmp.php: Configuration Change: admin@192.168.100.8 (Local Database): SNMP settings saved Oct 14 12:10:47 snmpd 70920 expecting '(' after '$' Oct 14 12:10:47 snmpd 70920 in macro read pos 3 Oct 14 12:10:47 snmpd 70920 in file /var/etc/snmpd.conf line 9 Oct 14 12:10:47 snmpd 70920 error in config file
I tried some other special characters:!@#%^&*()
- I got error message only for symbol *#*
- all other symbols were ok and I was able to save my config ('special symbols in the community name when SNMP started with no error.png')
I would think we should add symbol $ in the same check function which generates error if symbol # is used as a community name and/or add the comment under Read Community String field that some characters is not allowed.
Files
Updated by Jim Pingle 9 days ago
- Project changed from pfSense Plus to pfSense
- Category changed from SNMP to SNMP
Updated by aleksei prokofiev 6 days ago
Tested on
25.07.1-RELEASE (amd64)
built on Wed Aug 20 16:17:00 +04 2025
FreeBSD 15.0-CURRENT
I can confirm this behavior.