net-snmp: update default community string
PATCH 1/1 net-snmp: update default community string
snmpd.conf, by default, lists the string "public" as the community string. As a consequence, any build incorporating net-snmp implicitly enables a vulnerability (CVE-1999-0517) where an attacker could obtain information about (and potential control of) the device and its network. This issue is picked up by common security scan tools, and given the age of the vulnerability, some minimum mitigation steps should be taken. While the conf file itself recommends setting the community string to a value known only within the user's organization, changing this string's default value for Yocto builds is a minimum step to help mitigate this issue. Superior solutions that can be implemented by the end developer/user include replacing the default community string with a complex string unique to the network and/or filtering UDP packets on the appropriate ports.
There's no formal fix for the above CVE, so I've avoided labeling this as if it were a CVE fix. Also note that if you want to test this to check the change, net-snmp-server needs to be included in the build (not just net-snmp).
More info can be found at https://www.tenable.com/plugins/nessus/41028.
--- meta-networking/recipes-protocols/net-snmp/files/snmpd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-protocols/net-snmp/files/snmpd.conf +1 -1
@@ -58,7 +58,7 @@ # from): # sec.name source community -com2sec paranoid default public +com2sec paranoid default yocto-snmp-community #com2sec readonly default public #com2sec readwrite default private
Signature · 1 line
2.23.0
meta-networking/recipes-protocols/net-snmp/files/snmpd.conf line 61
Quoted 13 lines · Trevor Gamblin
snmpd.conf, by default, lists the string "public" as the community string. As a consequence, any build incorporating net-snmp implicitly enables a vulnerability (CVE-1999-0517) where an attacker could obtain information about (and potential control of) the device and its network. This issue is picked up by common security scan tools, and given the age of the vulnerability, some minimum mitigation steps should be taken. While the conf file itself recommends setting the community string to a value known only within the user's organization, changing this string's default value for Yocto builds is a minimum step to help mitigate this issue.
...meta-networking/recipes-protocols/net-snmp/files/snmpd.conf +1
-1-com2sec paranoid default public +com2sec paranoid default yocto-snmp-community
Instead of mitigation this might do more bad than good.
Attackers and security scan tools will just start to also scan for the known alternative "yocto-snmp-community".
The problem is that attackers tend to be faster with that, so the actual change would be that security scan tools might no longer report a vulnerability attackers will still use.
cu
Adrian
Quoted 18 lines · Adrian Bunk
meta-networking/recipes-protocols/net-snmp/files/snmpd.conf line 61
Quoted 13 lines · Trevor Gamblin
snmpd.conf, by default, lists the string "public" as the community string. As a consequence, any build incorporating net-snmp implicitly enables a vulnerability (CVE-1999-0517) where an attacker could obtain information about (and potential control of) the device and its network. This issue is picked up by common security scan tools, and given the age of the vulnerability, some minimum mitigation steps should be taken. While the conf file itself recommends setting the community string to a value known only within the user's organization, changing this string's default value for Yocto builds is a minimum step to help mitigate this issue.
...meta-networking/recipes-protocols/net-snmp/files/snmpd.conf +1
-1-com2sec paranoid default public +com2sec paranoid default yocto-snmp-communityInstead of mitigation this might do more bad than good.
Quoted 7 lines
Attackers and security scan tools will just start to also scan for the known alternative "yocto-snmp-community".
The problem is that attackers tend to be faster with that, so the actual change would be that security scan tools might no longer report a vulnerability attackers will still use.
I tend to agree. Perhaps describe mitigation in wiki and let users chose a string of their choice
and let defaults be as they are.
Quoted 7 lines
cu
Adrian
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 20 lines · Khem Raj
Quoted 19 lines · Adrian Bunk
meta-networking/recipes-protocols/net-snmp/files/snmpd.conf line 61
Quoted 13 lines · Trevor Gamblin
snmpd.conf, by default, lists the string "public" as the community string. As a consequence, any build incorporating net-snmp implicitly enables a vulnerability (CVE-1999-0517) where an attacker could obtain information about (and potential control of) the device and its network. This issue is picked up by common security scan tools, and given the age of the vulnerability, some minimum mitigation steps should be taken. While the conf file itself recommends setting the community string to a value known only within the user's organization, changing this string's default value for Yocto builds is a minimum step to help mitigate this issue.
...meta-networking/recipes-protocols/net-snmp/files/snmpd.conf +1
-1-com2sec paranoid default public +com2sec paranoid default yocto-snmp-communityInstead of mitigation this might do more bad than good.
Attackers and security scan tools will just start to also scan for the known alternative "yocto-snmp-community".
Quoted 7 lines
Quoted 4 lines
The problem is that attackers tend to be faster with that, so the actual change would be that security scan tools might no longer report a vulnerability attackers will still use.
I tend to agree. Perhaps describe mitigation in wiki and let users chose a string of their choice
and let defaults be as they are.
Those are good points. Thanks for reviewing.
Quoted 8 lines
Quoted 8 lines
cu
Adrian
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel