<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ThisIsOne</author_name>
  <author_url>https://blog.hatena.ne.jp/ThisIsOne/</author_url>
  <blog_title>Shikata Ga Nai</blog_title>
  <blog_url>https://cysec148.hatenablog.com/</blog_url>
  <categories>
    <anon>Web Security Academy</anon>
    <anon>XSS</anon>
  </categories>
  <description>なぜ「window.○○ || {…}」が危険パターンなのか 一言で この書き方は「window上に“それっぽい値”があれば何でも採用する」という意味になります。 すると攻撃者がDOM Clobberingなどで window.○○ を“偽物”で先に埋めれば、アプリはそれを正しい設定オブジェクトと信じて使ってしまいます。 もう少し具体的に（何が起きる？） truthy/falsy だけで判定してしまう JavaScriptの A || B は、AがtruthyならAを返します。 つまり let cfg = window.cfg || {avatar: '...'}; は、window.cfg …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcysec148.hatenablog.com%2Fentry%2F2025%2F08%2F20%2F184641&quot; title=&quot;【有料試作版】PortSwigger LAB解説：続・Exploiting DOM clobbering to enable XSS（DOM ClobberingでXSS発火） - Shikata Ga Nai&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-08-20 18:46:41</published>
  <title>【有料試作版】PortSwigger LAB解説：続・Exploiting DOM clobbering to enable XSS（DOM ClobberingでXSS発火）</title>
  <type>rich</type>
  <url>https://cysec148.hatenablog.com/entry/2025/08/20/184641</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
