PHPmotion <= 2.0 (play.php) SQL Injection Vulnerability
The play.php script in PHPmotion 2.0 and earlier fails to sanitise the vid parameter, allowing an attacker to inject SQL commands. A remote attacker could execute arbitrary SQL commands against the database.
karmainsecurity.com
Published on karmainsecurity.com
SQL injection vulnerability in play.php in PHPmotion 2.0 and earlier allows remote attackers to execute arbitrary SQL commands via the vid parameter.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the vid parameter is concatenated into an SQL query without parameterisation or input validation.
Impact
An attacker could execute arbitrary SQL commands, potentially reading or altering database contents.
What the attacker needed
Network access to the play.php endpoint
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A website takes a value from the address bar (the vid parameter) and puts it straight into a database query without checking it. An attacker can add extra database instructions to that value, so the database runs the attacker's commands instead of the intended one. This is called SQL injection.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.