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.
This commit is contained in:
1 parent
e81076f33c
commit
5968b65e95
3 files changed
+8
-1
No files matched your search
@@ -22,7 +22,8 @@
|
||||
<div class="login-card hologram"><div class="edge-line"></div>
|
||||
<div class="card-top"><span class="small-icon">⦿</span><span class="eyebrow">SECURE ADMIN ACCESS</span><span class="status-chip"><i></i> SYSTEM READY</span></div>
|
||||
<h2>Willkommen zurück.</h2><p>Authentifiziere dich mit deinem Avatar-Konto, um das System Command Center zu öffnen.</p>
|
||||
<form id="signin">
|
||||
<form id="signin" method="post" action="/api/session/login" autocomplete="on">
|
||||
<noscript><p role="alert" style="color:#ffac98">JavaScript ist erforderlich. Bitte JavaScript für diese Seite aktivieren; ohne JavaScript ist die Anmeldung aus Sicherheitsgründen gesperrt.</p></noscript>
|
||||
<label for="username">AVATAR-NAME</label><div class="field"><span>◈</span><input id="username" name="username" type="text" maxlength="128" placeholder="Vorname Nachname" autocomplete="username" required></div>
|
||||
<label for="password">PASSWORT</label><div class="field"><span>⌑</span><input id="password" name="password" type="password" placeholder="••••••••••••" autocomplete="current-password" required></div>
|
||||
<button class="big-button" type="submit"><span>ADMINISTRATORKONSOLE ÖFFNEN</span><span class="arrow">↗</span></button>
|
||||
|
||||
@@ -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 '<form id="signin" method="post" action="/api/session/login"' in web, "Insecure GET fallback would leak passwords into browser history and proxy logs"
|
||||
assert "<noscript>" 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"):
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user