Перейти к содержимому
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
noorqureshi/web-csp-bypassВеб и bug bounty

web-csp-bypass

⁨Get script to run despite a Content-Security-Policy — the step after finding an injection that CSP is blocking. Load when you have HTML/JS injection but the payload won't execute, on "CSP is blocking my XSS", or when auditing a CSP for weakness. Signals: a Content-Security-Policy header, a blocked-s⁩

v2026.10.14-ee0e0c54 установки+4 за 7 дней27 ЗвездыMITсинхронизировано 22 часа назад

Установка

Ещё нет NotHoly CLI? Сначала установите её.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install noorqureshi/web-csp-bypass

Пишет в ⁦~/.notholy/skills⁩ после проверки подписи и SHA-256.

ПодписьПодписано, ed25519
/gQxdrQrci…W9nj0sDA==CLI проверяет SHA-256 и подпись, прежде чем записать хоть один файл.
Пакет4e716ba1…ae75888a
4e716ba179fd…d3d5ae75888a1 файл · ⁦1.4 KB⁩
ПроверкаНизкийзамечаний нет
Проверка не нашла в этой версии ничего подозрительного.Вся проверка
Источникgithub.com/NoorQureshi/security-skills/tree/main/skills/web/web-csp-bypass@ee0e0c5

Эта запись еще не переведена на русский, поэтому показан текст на другом языке: English.

When it applies

You have an injection point but CSP is stopping execution. CSP is a mitigation, not a fix — a weak policy still lets script run, and turning a "blocked" XSS into a firing one is what makes the bug real (and higher severity).

Why it works

Most deployed CSPs have a gap: an over-broad allowlist, a leftover unsafe-inline, a reusable nonce, a script-src host that also serves a JSONP/AngularJS gadget, or a missing base-uri/ object-src. Each gap is a path to execution the policy author didn't intend.

Method

  1. Read the policy: paste it into Google's CSP Evaluator; note script-src, object-src, base-uri, default-src, and whether it's report-only (report-only blocks nothing).
  2. unsafe-inline / no nonce → inline script just runs; you're done.
  3. Allowlisted host with a gadget: a script-src host that hosts JSONP (?callback=) or an old AngularJS/library → load it to execute (<script src=//allowed/jsonp?callback=alert>).
  4. 'self' + an upload/echo: host your JS on the same origin (file upload, a reflected .js endpoint) and point <script src> at it.
  5. Missing base-uri: inject <base href=//attacker> to hijack relative script src.
  6. strict-dynamic / nonce reuse: if a nonce is static across responses, reuse it; if a trusted script creates elements, ride it.
  7. Dangling markup / exfil: when execution is truly blocked, steal data with markup that leaks to an allowed img-src/connect-src destination.

Gotchas

  • Report-Only (Content-Security-Policy-Report-Only) does not enforce — don't report it as a bypass.
  • object-src 'none' + base-uri 'none' + nonce'd strict-dynamic is genuinely hard; say so rather than forcing a weak bypass.
  • A bypass is only a finding if you also have the injection to use it.

Verify success

Your script executes (or data exfiltrates) with the CSP active — a real alert(document.domain) / callback, not just a reflected string.

References

Google CSP Evaluator; PortSwigger CSP bypass; the JSONP/AngularJS gadget catalogues.

Файлы этой версии

Права

ПравоЗаявленоНайдено проверкой
Читает файлыНетНет
Пишет файлыНетНет
Выполняет команды shellНетНет
Ходит в сетьНетНет
Использует коннекторыНетНет
Управляет браузеромНетНет

Замечания проверки

Проверено 13 нояб. 2026 г.

Проверка не нашла в этой версии ничего подозрительного.

Чистая проверка снижает риск, но не доказывает, что пакет безопасен. Читайте то, что ставите.

ВерсияОпубликованаКоммитSHA-256ПодписьИзменение прав
v2026.10.14-ee0e0c513 нояб. 2026 г.ee0e0c54e716ba1Подписана–

Спрашивайте обо всём, что позволяет ваш скоуп.

Создайте аккаунт, пополните баланс и задайте первый вопрос в чате или в терминале.

  1. 1/3

    Создайте аккаунт

    Личный или для компании. Позже можно перейти на аккаунт компании без потери баланса и ключей.

    ЛичныйКомпания
  2. 2/3

    Пополните баланс

    Картой. Оплата за токены, без подписки.

    $5.00минимальное пополнение
  3. 3/3

    Спрашивайте

    В чате, или установите CLI и выполните notholy login в терминале.

    $ notholy login