Project

General

Profile

Actions

Bug #16483

open

It's possible to use some disallowed characters in 'Read Community String' field for SNMP

Added by Azamat Khakimyanov 9 days ago. Updated 6 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SNMP
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
Affected Architecture:

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

Actions

Also available in: Atom PDF