Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
Ghost-CMS-Code-Injection-Audit-CVE-2026-26980 — Outdated Ghost CMS websites that have fallen become compromised from CVE-2026-26980 can suffer from spam code injection to pages. Use this to mass clear and edit code injection fields. | Kitploit
Strumenti/GitHubGitHub/kulik-labs-development/ghost-cms-code-injection-audit-cve-2026-26980
Defensive ToolsVulnerability ScannersCode AnalysisWeb SecurityMisconfigurationIncident Response
GitHubkulik-labs-development/ghost-cms-code-injection-audit-cve-2026-26980

Ghost-CMS-Code-Injection-Audit-CVE-2026-26980

Outdated Ghost CMS websites that have fallen become compromised from CVE-2026-26980 can suffer from spam code injection to pages. Use this to mass clear and edit code injection fields.

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Vedi Repository
118 giorni faNon ancora revisionato
Condividi
Contenuto non disponibile nella lingua richiesta. Visualizzazione della versione inglese.

Ghost CMS Code Injection Cleaner

Removes injected code from every post and page on a Ghost CMS website via the Admin API.

Use this to clean up a compromised Ghost site — for example, one affected by the code injection vulnerability CVE-2026-26980 — by stripping attacker-supplied <script> tags and other injected markup out of the per-post and per-page Header and Footer code injection fields.

It is safe by default (dry-run first, then apply) and strictly scoped: it only clears those two per-post fields. Site-wide code injection (Ghost Admin → Settings → Code injection), post content, and all other settings are never touched.


Requirements

  • Python 3.8+
  • Two pip packages (see requirements.txt):
root@kitploit:~
pip install -r requirements.txt

Setup

1. Get your Admin API key

  1. Log into Ghost Admin
  2. Go to Settings → Integrations
  3. Click Add custom integration, give it a name (e.g. "Cleaner")
  4. Copy the Admin API Key — it looks like:
    root@kitploit:~
    6478abc123def456:8f9e0d1c2b3a4567890abcdef1234567890abcdef1234567890abcdef12345678
    

2. Create the config file

Create a file called ghost_cleaner_config.json in the same directory as the script:

root@kitploit:~
{
  "ghost_url": "https://yourdomain.com",
  "admin_api_key": "YOUR_KEY_ID:YOUR_KEY_SECRET"
}

If you skip this step, the script will create an example config file for you on first run and exit — just fill it in and re-run.


Usage

Dry-run (safe, no changes written)

Always run this first to see exactly what would be cleared before touching anything:

root@kitploit:~
python3 ghost_injection_cleaner.py

Example output:

root@kitploit:~
  Ghost Injection Remover
  Mode  : DRY-RUN (read-only)
  Target: https://yourdomain.com

  NOTE: /ghost/api/admin/settings/ (site-wide injection) is
        never read or written by this script.

============================================================
  POSTS
============================================================
  47 posts fetched.

  ✦  'My First Post'
     HEAD: '<script>(function(){var _x="...obfuscated..."</script>'
      🔍  DRY-RUN - would be cleared.

============================================================
  PAGES
============================================================
  6 pages fetched.

============================================================
  SUMMARY
============================================================
  Would clear  : 1 posts/pages
  Already clean: 52 posts/pages

  Re-run with --apply to commit these changes.

Apply changes

Once you're happy with the dry-run output, run with --apply. You'll be prompted to confirm:

root@kitploit:~
python3 ghost_injection_cleaner.py --apply
root@kitploit:~
  Type YES to confirm changes to posts and pages: YES
  ...
  ✅  Cleared.

Use a custom config file path

root@kitploit:~
python3 ghost_injection_cleaner.py --config /path/to/my_config.json

What it clears

For every post and page, it sets both of these fields to null:

FieldLocation in Ghost editor
codeinjection_headPost/page settings → Code injection → Header
codeinjection_footPost/page settings → Code injection → Footer

Posts and pages that have no injection are silently skipped.


What it does NOT touch

  • Site-wide header/footer injection — Ghost Admin → Settings → Code injection
  • Post/page content (the actual body of your posts)
  • Theme files
  • Any Ghost settings other than the two fields listed above

Troubleshooting

Missing dependencies Run pip install -r requirements.txt and try again.

admin_api_key must be in 'id:secret' format Make sure your key has a colon in the middle. It should look like two hex strings separated by :. Copy it directly from Ghost Admin without adding spaces.

ERROR: Ghost API returned HTTP 401 Your Admin API key may be wrong or the integration may have been deleted. Go back to Ghost Admin → Settings → Integrations and verify.

ConnectionError or timeout Check that ghost_url in your config is correct and the site is reachable from the machine you're running the script on.

The script hangs on a large site Each page of 50 posts generates a fresh JWT and waits for the API. This is normal — give it a minute.

Scarica lo strumento