)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"fcabbb103ef1712359f2735c4a56eff73bc18df4","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"b1ac9457_15801491","updated":"2026-11-26 07:22:56.000000000","message":"Changing my vote to +2 because I was reviewing these in order and the next patch does exactly what I requested with the -1. 🙂\n\nAs long as these two go in together, all is well with the world.","commit_id":"b1a80291769a90ec1763a5b2b2120adba051e3ba"},{"author":{"_account_id":1000002,"name":"Gert Doering","display_name":"Gert Doering","email":"gert@greenie.muc.de","username":"cron2"},"change_message_id":"8d6769f79afb2f18ceeb2119820b17ba59fb2d9f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"fffdc41b_873cde20","updated":"2026-11-30 18:25:11.000000000","message":"just for the record - a blank line sneaked into the commit message, and gerrit did not recognize the push anymore.  This is now in master, as commit a3e4eca3f9f3913a6335bcfb7c8b23fb909476c4, it\u0027s just not properly displayed here (yet)","commit_id":"8b8786bbf9cdcb7d8330cf1d4cfc1c627c736d46"}],"src/openvpn/dns.c":[{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"6b2eb8cf20788e17ab9d0b8a42f8c47c126c3bae","unresolved":true,"context_lines":[{"line_number":603,"context_line":" * @return bool to indicate success or failure"},{"line_number":604,"context_line":" */"},{"line_number":605,"context_line":"static bool"},{"line_number":606,"context_line":"dns_vars_setenv(char *vars, size_t size, struct env_set *es)"},{"line_number":607,"context_line":"{"},{"line_number":608,"context_line":"    if (size \u003e 0 \u0026\u0026 vars[size - 1] !\u003d \u0027\\0\u0027)"},{"line_number":609,"context_line":"    {"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"ced024e8_b089eeb8","line":606,"updated":"2026-11-26 07:18:13.000000000","message":"If I understand this correctly, here we take any name from the unprivileged side and pass it on to a script that runs as root.\n\n`LD_PRELOAD`, `PATH` or `BASH_ENV` come to mind as things that we might not want to pass on.\n\nWould it be a good idea to filter this, and only allow `dev`, `script_type`, `dns*` (and whatever else I might be missing but is legal)?","commit_id":"b1a80291769a90ec1763a5b2b2120adba051e3ba"},{"author":{"_account_id":1000006,"name":"Heiko Hund","display_name":"Heiko Hund","email":"heiko@ist.eigentlich.net","username":"d12fk"},"change_message_id":"10398c30418ee26721ede525eee348d68dbc45d1","unresolved":false,"context_lines":[{"line_number":603,"context_line":" * @return bool to indicate success or failure"},{"line_number":604,"context_line":" */"},{"line_number":605,"context_line":"static bool"},{"line_number":606,"context_line":"dns_vars_setenv(char *vars, size_t size, struct env_set *es)"},{"line_number":607,"context_line":"{"},{"line_number":608,"context_line":"    if (size \u003e 0 \u0026\u0026 vars[size - 1] !\u003d \u0027\\0\u0027)"},{"line_number":609,"context_line":"    {"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"009c2634_56834595","line":606,"in_reply_to":"685c52b3_bb9169e1","updated":"2026-11-26 07:28:00.000000000","message":"You would need to be in control of the unprivileged openvpn process to inject these, but yeah. Why not prevent it, it could happen and then we have an additional layer of defense.","commit_id":"b1a80291769a90ec1763a5b2b2120adba051e3ba"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"fcabbb103ef1712359f2735c4a56eff73bc18df4","unresolved":false,"context_lines":[{"line_number":603,"context_line":" * @return bool to indicate success or failure"},{"line_number":604,"context_line":" */"},{"line_number":605,"context_line":"static bool"},{"line_number":606,"context_line":"dns_vars_setenv(char *vars, size_t size, struct env_set *es)"},{"line_number":607,"context_line":"{"},{"line_number":608,"context_line":"    if (size \u003e 0 \u0026\u0026 vars[size - 1] !\u003d \u0027\\0\u0027)"},{"line_number":609,"context_line":"    {"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"685c52b3_bb9169e1","line":606,"in_reply_to":"ced024e8_b089eeb8","updated":"2026-11-26 07:22:56.000000000","message":"Done","commit_id":"b1a80291769a90ec1763a5b2b2120adba051e3ba"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"6b2eb8cf20788e17ab9d0b8a42f8c47c126c3bae","unresolved":true,"context_lines":[{"line_number":623,"context_line":"        }"},{"line_number":624,"context_line":""},{"line_number":625,"context_line":"        *eq \u003d \u0027\\0\u0027;"},{"line_number":626,"context_line":"        setenv_str(es, var, eq + 1);"},{"line_number":627,"context_line":"        var \u003d next;"},{"line_number":628,"context_line":"    }"},{"line_number":629,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"245f26f2_dcf8f0f9","line":626,"updated":"2026-11-26 07:18:13.000000000","message":"`setenv_str_ex()` asserts `strlen(name) \u003e 1`, so `\u003dx` or `a\u003dx` aborts the runner (not just get rejected as the doc comment says).\n\nThe suggested name check would also fix this.","commit_id":"b1a80291769a90ec1763a5b2b2120adba051e3ba"},{"author":{"_account_id":1000006,"name":"Heiko Hund","display_name":"Heiko Hund","email":"heiko@ist.eigentlich.net","username":"d12fk"},"change_message_id":"10398c30418ee26721ede525eee348d68dbc45d1","unresolved":false,"context_lines":[{"line_number":623,"context_line":"        }"},{"line_number":624,"context_line":""},{"line_number":625,"context_line":"        *eq \u003d \u0027\\0\u0027;"},{"line_number":626,"context_line":"        setenv_str(es, var, eq + 1);"},{"line_number":627,"context_line":"        var \u003d next;"},{"line_number":628,"context_line":"    }"},{"line_number":629,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"cbededc9_8042d984","line":626,"in_reply_to":"0af19ac5_9a40f4e3","updated":"2026-11-26 07:28:00.000000000","message":"Same as above, this needs a misconfigured and broken openvpn to happen, but not unthinkable.","commit_id":"b1a80291769a90ec1763a5b2b2120adba051e3ba"},{"author":{"_account_id":1000053,"name":"Răzvan Cojocaru","display_name":"Razvan Cojocaru","email":"razvanc@mailbox.org","username":"razvanc"},"change_message_id":"fcabbb103ef1712359f2735c4a56eff73bc18df4","unresolved":false,"context_lines":[{"line_number":623,"context_line":"        }"},{"line_number":624,"context_line":""},{"line_number":625,"context_line":"        *eq \u003d \u0027\\0\u0027;"},{"line_number":626,"context_line":"        setenv_str(es, var, eq + 1);"},{"line_number":627,"context_line":"        var \u003d next;"},{"line_number":628,"context_line":"    }"},{"line_number":629,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"0af19ac5_9a40f4e3","line":626,"in_reply_to":"245f26f2_dcf8f0f9","updated":"2026-11-26 07:22:56.000000000","message":"Done","commit_id":"b1a80291769a90ec1763a5b2b2120adba051e3ba"}]}
