What's in a tag name? JavaScript, apparently

2026年8月25日

I was on my laptop, as I often am when there's rubbish on telly, and found myself wondering what characters are allowed in a tag. I knew they had to begin with "a-zA-Z", but what about after that? I t

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 PortSwigger Research

The bug bounty website that tried to hack me

They say there's a first time for everything - I've been hacking websites under bug bounty programs since 2008 and I believe today is the first time one tried to hack me back! While reviewing discover

Achieving the impossible: XSS in innerHTML without equals

Introduction I'm delighted to introduce Masato Kinugawa as a guest web security researcher on the PortSwigger research channel. Masato is a well known web security expert who has found countless high

Blind trust: stealing credentials through CSP

Content Security Policy is supposed to be the safety net that stops an HTML injection from turning into XSS. Usually it works. But sometimes it doesn't, because the policy allows-lists a domain that h

Making HTTP header injection critical with one prompt

You can now escalate HTTP header injection to a CRLF-Powered Desync and exploit it to serve random users a redirect to your collaborator, in a single prompt. We’ve just introduced a new scan check for

Scalable Vector Grief

I tested eight popular SVG sanitizers and bypassed six of them. In this post, I'll show you how a response header can run JavaScript in Firefox even when the response body is completely harmless XML.