From 5968b65e95d043f0f73fc587ea7704e9cc916a6a Mon Sep 17 00:00:00 2001 From: "OpenGenesis (EULA)" <153564363+opengenesislink@users.noreply.github.com> Date: Mon, 23 Nov 2026 10:54:18 +0100 Subject: [PATCH] security(g1): stop SYS.API password leaks via GET login fallback Add explicit POST action and no-JavaScript guidance to admin login, prevent password query logging by hardening the Nginx config template, and enforce secure form behavior in CI. Production runtime form rebuilt/smoke tested; historical query log values redacted and Nginx now logs only $uri, not args. Core builds passed; optional GitHub artifact upload remains blocked by quota. --- addons/SysApi/www/index.html | 3 ++- tools/ci/verify_sys_api_foundation.py | 2 ++ tools/ops/sys-api-nginx-8850.conf.example | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/addons/SysApi/www/index.html b/addons/SysApi/www/index.html index ebb65a4b..8e7b1aca 100644 --- a/addons/SysApi/www/index.html +++ b/addons/SysApi/www/index.html @@ -22,7 +22,8 @@
⦿SECURE ADMIN ACCESS SYSTEM READY

Willkommen zurück.

Authentifiziere dich mit deinem Avatar-Konto, um das System Command Center zu öffnen.

-
+ +
◈
⌑
diff --git a/tools/ci/verify_sys_api_foundation.py b/tools/ci/verify_sys_api_foundation.py index 900aaa31..0c2fec18 100644 --- a/tools/ci/verify_sys_api_foundation.py +++ b/tools/ci/verify_sys_api_foundation.py @@ -27,6 +27,8 @@ for needle in ('FileMode.CreateNew', 'RandomNumberGenerator.GetBytes(64)', assert needle in secret,needle assert "innerHTML" not in js assert "ogl-mascot.webp" in web +assert '" in web, "Missing JavaScript-disabled login warning" assert (root/"addons/SysApi/www/ogl-mascot.webp").stat().st_size > 60000 for p in ("bin/Robust.HG.ini","bin/Robust.HG.ini.example","bin/Robust.ini.example", "bin/Robust.HG.OGLAsset.ini.example"): diff --git a/tools/ops/sys-api-nginx-8850.conf.example b/tools/ops/sys-api-nginx-8850.conf.example index 7953f66d..1f5b9952 100644 --- a/tools/ops/sys-api-nginx-8850.conf.example +++ b/tools/ops/sys-api-nginx-8850.conf.example @@ -2,7 +2,11 @@ # Replace YOUR_DOMAIN with the actual ACME-validated FQDN. # A VALID Let's Encrypt fullchain/key must exist BEFORE enabling this server. # This proxy only terminates TLS; sys.api.dll listens on localhost:8851. +# Never include $request_uri, $args, $request, or $http_referer in this +# admin portal's access logs; invalid browser submissions may contain secrets. +log_format ogl_sysapi_noargs '$remote_addr - [$time_local] "$request_method $uri $server_protocol" $status $body_bytes_sent'; server { + access_log /var/log/nginx/ogl-sysapi-8850-access.log ogl_sysapi_noargs; listen 8850 ssl; listen [::]:8850 ssl; server_name YOUR_DOMAIN;