Dynamic attribute access via getattr()
Low
- Category
- Dangerous Code Execution
- Content
dpath = _mac_to_device_path(apath, mac) dobj = bus.get_object(BLUEZ_SERVICE, dpath) diface = dbus.Interface(dobj, DEVICE_IFACE) method = getattr(diface, op) try: method(timeout=int(timeout * 1000)) except dbus.DBusException as e:- Confidence
- 88% confidence
- Finding
- method = getattr(diface, op)
