Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/sadaqaty/cve-2026-1277
Vulnerability AnalysisExploitationWeb Application ExploitationPhishingWeb SecurityPenetration TestingRed Teaming
GitHubsadaqaty/cve-2026-1277

CVE-2026-1277

Python 3 proof-of-concept for CVE-2026-1277, an unauthenticated open redirect in the WordPress URL Shortify plugin (<=1.12.1) via the redirect_to parameter.

View Repository
23 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    936
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    555
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    353
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    348
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    336
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    288

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-1277 — URL Shortify <= 1.12.1 Unauthenticated Open Redirect

CVE CVSS CWE Platform Language License

Proof-of-Concept (PoC) exploit for CVE-2026-1277, an unauthenticated Open Redirect vulnerability in the WordPress plugin URL Shortify (versions <= 1.12.1) via the redirect_to parameter.


📌 Table of Contents

  • Overview
  • Vulnerability Details
  • Affected Versions
  • Root Cause
  • Attack Flow
  • Requirements
  • Installation
  • Usage
    • Vulnerability Check
    • Custom Redirect Test
    • Generate Phishing Link
  • Examples
  • How It Works
  • Detection & Remediation
  • Legal Disclaimer
  • References
  • Author

🧭 Overview

CVE-2026-1277 is a medium-severity Open Redirect vulnerability affecting the WordPress plugin URL Shortify in versions up to and including 1.12.1. The plugin fails to validate the redirect_to parameter in its promotional dismissal handler, allowing unauthenticated attackers to redirect users to arbitrary external URLs via a crafted link .

This repository contains a Python 3 PoC that:

  • Detects whether a target is vulnerable to the open redirect
  • Tests redirects to custom URLs
  • Generates ready-to-use phishing links for demonstration

⚠️ This vulnerability requires user interaction. The victim must click a crafted link. No server compromise occurs.


🔍 Vulnerability Details

FieldValue
CVE IDCVE-2026-1277
Vulnerability TypeOpen Redirect (Unauthenticated)
CWECWE-601: URL Redirection to Untrusted Site
CVSS v3.1 Score4.7 (Medium)
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
Attack VectorNetwork
Privileges RequiredNone (unauthenticated)
User InteractionRequired (victim must click link)
ImpactConfidentiality: None · Integrity: Low · Availability: None
Affected Componentredirect_to parameter in promotional dismissal handler (Promo.php)
VendorKaizenCoders
Patched Version1.12.2

CVSS Breakdown

  • AV:N — Exploitable over the network
  • AC:L — No special conditions required
  • PR:N — No authentication needed
  • UI:R — Victim must click a crafted link
  • S:C — Scope changed (impact crosses trust boundary)
  • C:N/I:L/A:N — No confidentiality impact, limited integrity impact, no availability impact

📦 Affected Versions

PluginVersions AffectedFixed In
URL Shortify – Simple and Easy URL Shortener<= 1.12.11.12.2

⚠️ Update to version 1.12.2 or later immediately.


🧬 Root Cause

The vulnerability exists in the handle_promotions method within the Promo class (url-shortify/lite/includes/Promo.php, lines 62-71). The function extracts the redirect_to parameter from the GET request using esc_url_raw(), but performs no validation on the destination URL before calling wp_redirect() .

esc_url_raw() only sanitizes the URL format—it does not verify that the destination belongs to the same domain or an allow-list. This allows any external URL to pass through.

Vulnerable Code Flow

// Simplified vulnerable logic
$redirect_to = esc_url_raw($_GET['redirect_to']); // Sanitized but NOT validated
wp_redirect($redirect_to); // Redirects to ANY external URL
exit;

The Patch

The fix in version 1.12.2 introduces two new methods: get_valid_redirect_to() and is_valid_redirect_to(). The patch replaces the direct wp_redirect() call with a conditional check that validates the redirect URL against a whitelist of allowed destinations. If the URL is not in the whitelist, the user is redirected to the plugin's pricing page via wp_safe_redirect() .

The whitelist includes only internal plugin-related URLs such as pricing pages, landing pages, and the developer's official domains.


🎯 Attack Flow

This is a client-side / social-engineering attack. No server compromise occurs.

  Attacker                     Victim                    Legitimate WP Site        Attacker's Site
     │                            │                            │                        │
     │ 1. Crafts malicious link   │                            │                        │
     │    (admin-ajax.php with    │                            │                        │
     │    redirect_to=evil.com)   │                            │                        │
     │───────────────────────────>│                            │                        │
     │                            │ 2. Clicks link             │                        │
     │                            │───────────────────────────>│                        │
     │                            │  GET /wp-admin/            │                        │
     │                            │  admin-ajax.php?           │                        │
     │                            │  action=heartbeat&         │                        │
     │                            │  redirect_to=evil.com      │                        │
     │                            │                            │                        │
     │                            │ 3. 302 Redirect            │                        │
     │                            │<───────────────────────────│                        │
     │                            │                            │                        │
     │                            │ 4. Browser follows redirect                         │
     │                            │────────────────────────────────────────────────────>│
     │                            │                                                     │
     │                            │ 5. Victim sees attacker's phishing page             │
     │                            │────────────────────────────────────────────────────>│

Key point: If the victim does not click the link, the attack fails entirely.


⚙️ Requirements

  • Python 3.7+
  • requests library
  • Network access to the target WordPress instance

Install dependencies:

pip install requests

🛠 Installation

git clone https://github.com/sadaqaty/CVE-2026-1277.git
cd CVE-2026-1277

🚀 Usage

python3 CVE-2026-1277.py -t <TARGET_URL> [OPTIONS]

Arguments

FlagLong FormDescription
-t--targetRequired. Target WordPress base URL
--check—Run vulnerability check using https://interact.sh
-r--redirectTest redirect to a specific URL
--generate—Generate a phishing link to a URL
-o--optionNotice option name: welcome_offer (default) or bfcm_2025_offer
-k--insecureDisable SSL certificate verification

1. Vulnerability Check

Quickly check whether a target is vulnerable.

python3 CVE-2026-1277.py -t http://target.com --check

Expected output (vulnerable):

[✓] Open Redirect confirmed!
    Option: welcome_offer
    Redirects to: https://interact.sh
[!] Target http://target.com is VULNERABLE to CVE-2026-1277

2. Custom Redirect Test

Download Tool