The LwM2M client in subsys/net/lib/lwm2m enforces authorization in handle_request() only against the path in the CoAP request URI: the per-server access control list (CONFIG_LWM2M_ACCESS_CONTROL_ENABLE) and the LwM2M rule that a non-bootstrap server must not operate on the Security object (Object 0). The JSON, SenML JSON and SenML CBOR write handlers (do_write_op_json(), do_write_op_senml_json() and do_write_op_item()), however, take each record's target path from the payload (bn/n fields), overwrite msg->path with it, and create or write that path without re-checking access. A registered device-management server can therefore send a write (for example PUT to an object it may access, or a co