Bug 1126914
Summary: | Ocetets Truncated with Python Bindings | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | kurt.frederiksen |
Component: | net-snmp | Assignee: | Jan Safranek <jsafrane> |
Status: | CLOSED ERRATA | QA Contact: | Dalibor Pospíšil <dapospis> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.7 | CC: | dapospis |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
Net-SNMP Python bindings did not check input string of netsnmp_set call and copied only part of the string to the outgoing SNMP SET request when the string contained character with ASCII value 0.
Consequence:
A Python application could send invalid SNMP SET requests
Fix:
The Python binding copies full string, including any '\0' characters.
Result:
Applications send valid SNMP SET requests.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-07-22 07:22:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
kurt.frederiksen
2014-08-05 15:05:59 UTC
Thanks for the report. Just for reference, this small python snippet sends 'hello' instead of 'hello.world', where '.' should be \0 character. import netsnmp oid = netsnmp.Varbind('sysDescr', val='hello\000world', type='OCTETSTR') netsnmp.snmpset(oid, Version=2, DestHost='localhost', Community='public') Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-1385.html |