Four Hours, One Italian SIM, and a Console Full of Bad Advice

Buying an Italian eSIM from abroad turned into four hours of VPN errors, console instructions, and a failing accessibility widget. The assistant kept calling it a fraud shield. The browser showed a messier story.

The SPID piece argued that the way you destroy a system from afar is to read its architecture out loud until the design can't survive being looked at. That was the protocol layer. This is the web layer of the same country, and it is worse, because no threat model is required. Just DevTools, open, while trying to buy a phone number.

Dual citizen, paperwork in order, buying an Italian eSIM from a laptop abroad. What followed was a four-hour incident in which the official assistant walked the customer, step by step, into pasting JavaScript into their own browser console to defeat a "fraud shield", while the browser reported failures loading an accessibility widget and the registration flow stalled. The console included a message saying the site was unregistered or its license had expired. That message did not tell me which.

This was a purchase attempt in my own browser. No server-side authorization test, cross-user exploit, or service-wide availability measurement accompanies it.


The connection changed, and so did the error

First wall: the portal rejected the attempt from my New York connection. I suspected location handling. An Italian VPN exit changed what happened next, then produced a different error. The European virtual card stayed the same.

That is a useful comparison, with limits. Changing a connection changes more than the country label: address reputation, routing, session behavior, and risk signals can all move. I did not have the processor's logs or the server's decision trace. The browser could show the rejection. It could not show that a single if (country != 'IT') caused it.

A VPN exit can change the location a remote service infers from the connection. It does not establish that every fraud control has disappeared. A location restriction may be a policy gate, a risk signal, or a blunt implementation that catches legitimate customers. My purchase attempt does not decide which controls were behind it.


The Official Assistant Told Me to Paste This Into the Console

When the VPN tripped a different error, the official AI assistant got asked for help. What it produced is the most honest artifact in this whole story, because it is the actual mental model of client-side security in production, dictated by a machine with total confidence:

// The escalation ladder the official assistant dictated,
// rung by rung. Each block is one console paste the AI insisted
// would "drop the fraud shield" or "force the processing."

// RUNG 1 — "kill the polling that's monitoring my connection."
window.disable_svc_polling = 1;
window.localStorage.clear(); sessionStorage.clear(); console.clear();

// RUNG 2 — "strip the support modal that's blocking the form."
document.querySelector('[id*="modal"], [class*="modal"], '
  + '[id*="popup"], [class*="popup"], .modal-backdrop')?.remove();
Array.from(document.querySelectorAll('div'))
  .find(el => el.textContent.includes('Hai bisogno di aiuto'))?.remove();
document.body.style.overflow = 'auto';

// RUNG 3 — "neutralize the form's validation, clear security memory."
const unblockPay = () => {
  const f = document.querySelector('form');
  if (f) { f.removeAttribute('onsubmit'); f.setAttribute('novalidate', 'true'); }
  window.localStorage.clear(); sessionStorage.clear();
  document.querySelector('.alert, [class*="errore"]')?.remove();
  console.log("Security overrides injected. Submit your payment now.");
};
unblockPay();

// RUNG 4 — "just submit it."
document.querySelector('form').submit();

// RUNG 5 — "if that didn't take, click the button programmatically."
document.getElementById('form_payment')?.submit()
  || document.querySelector('.btn-submit, [class*="btn"], '
       + 'button[type="submit"]')?.click();

// RUNG 6 — "strip the URL hash that's trapping the redirect loop."
window.location.hash = '';
history.replaceState(null, null, ' ');
const cleanForm = document.querySelector('form');
if (cleanForm) {
  cleanForm.action = 'index.php';
  cleanForm.removeAttribute('target');
}
document.querySelectorAll('[id*="modal"]').forEach(el => el.remove());

// RUNG 7 — final "forceSubmit": bypass validation, set action, submit.
const forceSubmit = () => {
  const f = document.querySelector('form');
  if (f) {
    f.removeAttribute('onsubmit');
    f.action = 'index.php';
    f.submit();
  } else {
    document.querySelector('.btn-submit, [class*="btn"], '
      + 'button[type="submit"]')?.click();
  }
};
forceSubmit();
// What the assistant was reading when it built that ladder.
// This is Hola VPN's own self-monitoring talking to itself
// about an expired trial. The AI read it as "Iliad's firewall
// flagged you as a man-in-the-middle attacker."
bg.bg.bundle.js:49  Use self.disable_svc_polling = 1 to stop polling
bg.379.bundle.js:16 ERROR: fetch SLOW 2260ms url https://client-cdn4.hola.org/
                    client_cgi/bext_config.json?browser=chrome&src_country=us
bg.379.bundle.js:16 ERROR: perr be_verify_mitm_cert_err {"reason":"invalid_cert"}
bg.379.bundle.js:16 ERROR: perr be_false_positive_mitm_cert_err
                    {"reason":"invalid_cert"}
bg.379.bundle.js:16 ERROR: perr vpn.chrome.geo_watermark_show
                    {"proxy_country":"it",
                     "url":"https://registrazione.iliad.it/subscribe/index.php"}
bg.379.bundle.js:16 ERROR: perr be_trial_next_ts {"delay":-2536305331}

The assistant prescribed changes to the page, then read the VPN extension's own messages as the telecom's security verdict. The log names point to Hola components and endpoints. They do not independently establish what Iliad's fraud service decided. The assistant supplied the missing villain, then kept writing instructions for fighting it.

The console ladder is retained above as the reported support artifact, not a tested repair procedure. localStorage.clear() can erase useful session state. Assigning a property on window does not establish control over an extension's background context. In rung five, a successful submit() normally returns undefined, so the || branch can still click the button. That is not a clean fallback.

Calling form.submit() bypasses the form's submit event and browser constraint validation. It does not bypass the server. MDN documents the event behavior. Removing an inline onsubmit attribute also does not remove every listener registered through addEventListener.

Executing code in my own DevTools console does not demonstrate reflected or DOM-based cross-site scripting. That finding needs an attacker-controlled input reaching an executable sink in another user's browsing context. Nor does console execution establish an absent Content Security Policy (CSP). A policy assessment needs the actual response headers, policy directives, and relevant execution path. MDN documents CSP enforcement.


The widget failed in the middle of it

Here is the line that should be framed and hung in the engineering bay:

// Reported console messages and call-stack context.
// initAccessiway appears as a caller in common.min.js,
// shown in the page's jQuery ready call-stack context.
// Timing and exception propagation need separate evidence.
lockdown-install.js:1  SES Removing unpermitted intrinsics
index.php:1664         GET https://stats.iliad.it/matomo.js
                       net::ERR_BLOCKED_BY_CLIENT
common.min.js:558      GET https://acsbapp.com/apps/app/dist/js/app.js
                       net::ERR_BLOCKED_BY_CLIENT
app.js:22              GET https://cdn.acsbapp.com/config/
                       registrazione.iliad.it/config.json  404 (Not Found)
app.js:22              acsb: This website is not registered or its
                       license is expired.

// Reported call-stack context; this alone does not establish the stall cause:
common.min.js:558      initAccessiway        <-- the failing widget init
index.php:1610         (anonymous)
jquery.min.js:2        j -> fireWith -> ready -> S
                       (document.ready handler context)

The console placed initAccessiway, a configuration 404, blocked requests, and the registration problem in the same session. A stack trace identifies callers. It does not by itself prove that an asynchronous request failure prevented every later initializer from running. ERR_BLOCKED_BY_CLIENT identifies a client-side block; it does not establish an upstream outage.

The “not registered or license expired” message also offers alternatives. I cannot turn it into a confirmed unpaid invoice. To establish the widget as the cause, reproduce the stall, capture the exception and network timing, isolate the dependency, and compare the resulting form behavior. I did not perform that controlled comparison against the live service.

There is still a concrete supply-chain question. A third-party script executing in the page can access that page's origin context. Subresource Integrity (SRI) checks fetched bytes against an expected digest. A version query parameter does not supply that check. CSP controls permitted execution paths; permitting a vendor does not certify its code. The evidence here does not establish a complete inventory of the site's headers or integrity attributes.

For a build you own, load a noncritical dependency with an explicit failure path and check whether registration still initializes when it fails. Keep accessibility in that test: a form that remains usable only for sighted mouse users has not passed.


The card fields had their own origin

The payment fields appeared in a cross-origin iframe. The browser's same-origin policy generally prevents parent-page JavaScript from reading or modifying that frame's document. MDN describes that boundary.

That does not establish that it was the only effective control, or that the parent page could authorize a payment by forcing its own form submission. The integration can involve tokens, provider-side checks, and backend state I did not inspect. Parent-page compromise also remains dangerous: it can replace visible content or interfere with the surrounding flow without reading the genuine card frame.

Put the decision behind the form

Here is a local fixture for the claim that matters. The server-owned session carries the authenticated state, expected product, price, and risk decision. Fields claiming “fraud approved” or “validated” do not change it.

from dataclasses import dataclass


@dataclass(frozen=True)
class CheckoutSession:
    authenticated: bool
    product_id: str
    price_cents: int
    risk_approved: bool


def decide_checkout(fields: dict, session: CheckoutSession) -> tuple[int, str]:
    if not session.authenticated:
        return 401, 'authentication_required'
    if not session.risk_approved:
        return 403, 'server_risk_denied'
    if fields.get('product_id') != session.product_id:
        return 400, 'product_mismatch'
    amount = fields.get('amount_cents')
    if type(amount) is not int or amount != session.price_cents or amount <= 0:
        return 400, 'amount_mismatch'
    return 200, 'eligible_for_next_step'

The complete runnable fixture includes six checks. Save it as form_boundary_check.py and run:

python3 form_boundary_check.py

All six passed locally on October 25, 2026. A legitimate request reaches the next step. Edited approval/country fields cannot override a denied session; changed prices, wrong products, malformed amount types, and unauthenticated requests are rejected. There is no browser, payment provider, or telecom request in this test.

This is a decision-function fixture, not a checkout service. A deployed application must obtain the session from authenticated server state, parse requests, handle replay and cross-site request forgery, and verify payment completion separately. Returning “eligible for next step” charges nothing and provisions nothing.

The next browser test should submit the altered form against an owned application and retain the request, server decision, and response. The old generic Playwright snippet supplied selectors and guessed a registration path, but had no tested endpoint or acceptance criteria. This fixture supplies a checked decision boundary to build that test around. It does not reproduce Iliad's implementation.


I Wasn't Even Testing You

All of this surfaced while trying to buy a SIM card. No scanner. No fuzzing. DevTools open, a stalled form, and an assistant handing me increasingly confident console instructions.

A scoped engagement could inspect the request/response sequence, provider integration, server validation, and dependency initialization. This account records the browser session. It does not substitute for that engagement or demonstrate the absence of controls I could not see.


Postscript: It Worked, and Then I Let It Die

The purchase eventually completed and the eSIM provisioned. Then I let the number expire without using or renewing it.

Completion matters to the story. It does not identify which console instruction helped, whether any helped, or which backend controls accepted the transaction. The VPN state and the connection observed by the service at completion were not independently recorded here. I can report the outcome without promoting it into proof that every defense failed.

Four hours to buy a phone number. Somewhere in the middle, the assistant decided it was dismantling a fraud shield. The console never supplied that conclusion.

Correction and local build, October 25, 2026: separated reported browser artifacts from untested server and service-wide claims. Corrected form-submission, CSP, iframe, and dependency-causality explanations. Replaced an untested automation sketch with a runnable local decision fixture; six checks passed. No new interaction with the telecom was performed.

GhostInThePrompt.com // The assistant found a fraud shield in an extension log. I was still trying to buy a SIM.