CVE-2018-25362

Twitter-Clone 1 SQL Injection via follow.php

Published May 25, 2026 CVSS 4.0 · 8.8 High EPSS < 1% KEV · Not listed
Description
Twitter-Clone 1 contains a SQL injection vulnerability in follow.php that allows attackers to manipulate database queries by injecting SQL code through the userid parameter. Attackers can submit union-based or time-based blind SQL injection payloads to extract sensitive database information including usernames, passwords, and database credentials.

Analysis

AI-generated

Technical impact

Twitter-Clone 1 contains a SQL injection flaw in follow.php that allows attackers to modify database queries through the userid parameter. By submitting union-based or time-based blind payloads, an adversary can retrieve usernames, passwords, and database credentials, resulting in confidential data exposure.

Affected Systems

The flaw is present in the PHP-Twitter-Clone installation from Fyffe. No version range is supplied, so every deployment of this code that exposes follow.php is potentially affected.

Risk and Exploitability

The CVSS score of 8.8 indicates high severity. Although EPSS data is not available, the lack of a KEV listing suggests that the vulnerability is not yet widely exploited, but the attack vector is straightforward through a public HTTP endpoint, requiring no special credentials or privileges. An attacker can execute the injection remotely by forming an HTTP request to the vulnerable script.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a patched version of PHP-Twitter-Clone or remove the vulnerable follow.php from the web root.
  • Rewrite the database access in follow.php to use prepared statements or parameterized queries, preventing arbitrary SQL from being executed.
  • Sanitize and validate the userid input, e.g., by allowing only numeric values and rejecting suspicious characters, and enforce least privilege on the database account used by the application.

Generated by OpenCVE AI on May 25, 2026 at 15:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Fyffe
Fyffe php-twitter-clone
Vendors & Products Fyffe
Fyffe php-twitter-clone
Type Values Removed Values Added
Description Twitter-Clone 1 contains a SQL injection vulnerability in follow.php that allows attackers to manipulate database queries by injecting SQL code through the userid parameter. Attackers can submit union-based or time-based blind SQL injection payloads to extract sensitive database information including usernames, passwords, and database credentials.
Title Twitter-Clone 1 SQL Injection via follow.php
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N'}

cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
May 26, 2026, 3:22 PM
Reserved
May 24, 2026, 1:30 PM
Status
Deferred
Published
May 25, 2026, 3:16 PM
Modified
Jul 23, 2026, 5:10 PM