mirror of
https://github.com/Telecominfraproject/wlan-ucentral-client.git
synced 2026-03-19 22:41:48 +00:00
main
The url parameter was passed unsanitised into system() via snprintf, allowing arbitrary command execution through crafted URLs. Replace all system() calls with a fork/execvp helper that bypasses the shell entirely, and use unlink() directly for file deletion. Signed-off-by: John Crispin <john@phrozen.org>
uCentral Client
uCentral Client application for OpenWiFi access points, communicating with the uCentral Gateway.
This software is a part of the OpenWiFi AP NOS.
Developer Notes
The uCentral connection uses the WebSocket protocol, and messages are transferred in JSON-RPC format. Full details of this protocol can be found in a separate document here.
- Incoming JSON-RPC messages are handled in
proto.c:proto_handle(). - Complex actions are executed via task queues (
libubox/runqueue.h). - Many actions will fork external programs, notably ucode scripts installed by the ucentral-schema package (see ucentral-schema/command/).
This application registers several ubus methods under the ucentral object, as
defined in ubus.c:ubus_object.
Description
Languages
C
98.8%
CMake
1.2%