WebHackList

Preliminary research

JavaScript Functions Overload Confusion

Last synced: 5 December 2026.

An array sent as m.data.origin stringifies to https://example.com, so new URL().hostname passes the allowlist, but being an object it picks postMessage's options overload and the secret is delivered to the attacker's targetOrigin. The same array drives window[func](data) into setTimeout's string branch and log.constructor.constructor into Function(data)(). A sweep of 2,228 Blink IDL files found ~112 overloaded operations and ~22 Trusted Types sinks that fork on type.

Preserved copies · Yashar Shahinzadeh · Original publication ↗

GitHub MD fileGitHub PDF file

Record

Researcher
Yashar Shahinzadeh
Published by
Voorivex Team
Date
Topic
Server

In the archive

Tags

This page is the archive's own catalogue record. The research is the work of Yashar Shahinzadeh, first published at the original source. Preserved copies are kept so the citation survives its host.