VYPR
Unrated severityNVD Advisory· Published May 11, 2005· Updated Apr 16, 2026

CVE-2005-1503

CVE-2005-1503

Description

Multiple SQL injection vulnerabilities in MidiCart PHP Shopping Cart allow remote attackers to execute arbitrary SQL commands via the (1) searchstring parameter to search_list.php, the (2) maingroup or (3) secondgroup parameters to item_list.php, or (4) code_no parameter to item_show.php.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

1

Patches

Vulnerability mechanics

Root cause

"Missing input sanitization in search_list.php, item_list.php, and item_show.php allows SQL injection."

Attack vector

An attacker sends crafted HTTP GET requests to the vulnerable scripts, injecting SQL metacharacters into the `searchstring`, `maingroup`, `secondgroup`, or `code_no` parameters. The advisory demonstrates UNION-based injection to extract credit card numbers from the `card_payment` table. The exploit requires `magic_quotes_gpc` to be Off [ref_id=1].

Affected code

The advisory identifies SQL injection vulnerabilities in `search_list.php`, `item_list.php`, and `item_show.php`. In `search_list.php` the `$searchstring` parameter is interpolated directly into a query without sanitization. In `item_list.php` the `maingroup` and `secondgroup` parameters are unsanitized. In `item_show.php` the `code_no` parameter is unsanitized.

What the fix does

The advisory states the vendor was contacted and would likely publish a new version; no patch diff is provided. The fix would involve properly escaping or parameterizing user-supplied input before including it in SQL queries, preventing injection of arbitrary SQL commands [ref_id=1].

Preconditions

  • configmagic_quotes_gpc must be Off
  • networkAttacker must be able to send HTTP GET requests to the vulnerable scripts

Generated on Jun 16, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

11

News mentions

0

No linked articles in our index yet.