Vulnerabilities > CVE-2014-4349 - Cross-site Scripting vulnerability in PHPmyadmin
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
Multiple cross-site scripting (XSS) vulnerabilities in phpMyAdmin 4.1.x before 4.1.14.1 and 4.2.x before 4.2.4 allow remote authenticated users to inject arbitrary web script or HTML via a crafted table name that is improperly handled after a (1) hide or (2) unhide action.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Cross Site Scripting through Log Files An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
- Embedding Scripts in Non-Script Elements This attack is a form of Cross-Site Scripting (XSS) where malicious scripts are embedded in elements that are not expected to host scripts such as image tags (<img>), comments in XML documents (< !-CDATA->), etc. These tags may not be subject to the same input validation, output validation, and other content filtering and checking routines, so this can create an opportunity for an attacker to tunnel through the application's elements and launch a XSS attack through other elements. As with all remote attacks, it is important to differentiate the ability to launch an attack (such as probing an internal network for unpatched servers) and the ability of the remote attacker to collect and interpret the output of said attack.
- Embedding Scripts within Scripts An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute scripts. The attacker leverages this capability to execute scripts to execute his/her own script by embedding it within other scripts that the target software is likely to execute. The attacker must have the ability to inject script into script that is likely to be executed. If this is done, then the attacker can potentially launch a variety of probes and attacks against the web server's local environment, in many cases the so-called DMZ, back end resources the web server can communicate with, and other hosts. With the proliferation of intermediaries, such as Web App Firewalls, network devices, and even printers having JVMs and Web servers, there are many locales where an attacker can inject malicious scripts. Since this attack pattern defines scripts within scripts, there are likely privileges to execute said attack on the host. Of course, these attacks are not solely limited to the server side, client side scripts like Ajax and client side JavaScript can contain malicious scripts as well. In general all that is required is for there to be sufficient privileges to execute a script, but not protected against writing.
- Cross-Site Scripting in Error Pages An attacker distributes a link (or possibly some other query structure) with a request to a third party web server that is malformed and also contains a block of exploit code in order to have the exploit become live code in the resulting error page. When the third party web server receives the crafted request and notes the error it then creates an error message that echoes the malformed message, including the exploit. Doing this converts the exploit portion of the message into to valid language elements that are executed by the viewing browser. When a victim executes the query provided by the attacker the infected error message error message is returned including the exploit code which then runs in the victim's browser. XSS can result in execution of code as well as data leakage (e.g. session cookies can be sent to the attacker). This type of attack is especially dangerous since the exploit appears to come from the third party web server, who the victim may trust and hence be more vulnerable to deception.
- Cross-Site Scripting Using Alternate Syntax The attacker uses alternate forms of keywords or commands that result in the same action as the primary form but which may not be caught by filters. For example, many keywords are processed in a case insensitive manner. If the site's web filtering algorithm does not convert all tags into a consistent case before the comparison with forbidden keywords it is possible to bypass filters (e.g., incomplete black lists) by using an alternate case structure. For example, the "script" tag using the alternate forms of "Script" or "ScRiPt" may bypass filters where "script" is the only form tested. Other variants using different syntax representations are also possible as well as using pollution meta-characters or entities that are eventually ignored by the rendering engine. The attack can result in the execution of otherwise prohibited functionality.
Nessus
NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_C4892644F8C611E39F456805CA0B3D42.NASL description The phpMyAdmin development team reports : Self-XSS due to unescaped HTML output in recent/favorite tables navigation. When marking a crafted database or table name as favorite or having it in recent tables, it is possible to trigger an XSS. This vulnerability can be triggered only by someone who logged in to phpMyAdmin, as the usual token protection prevents non-logged-in users from accessing the required form. Self-XSS due to unescaped HTML output in navigation items hiding feature. When hiding or unhiding a crafted table name in the navigation, it is possible to trigger an XSS. This vulnerability can be triggered only by someone who logged in to phpMyAdmin, as the usual token protection prevents non-logged-in users from accessing the required form. last seen 2020-06-01 modified 2020-06-02 plugin id 76177 published 2014-06-23 reporter This script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/76177 title FreeBSD : phpMyAdmin -- two XSS vulnerabilities due to unescaped db/table names (c4892644-f8c6-11e3-9f45-6805ca0b3d42) code # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from the FreeBSD VuXML database : # # Copyright 2003-2018 Jacques Vidrine and contributors # # Redistribution and use in source (VuXML) and 'compiled' forms (SGML, # HTML, PDF, PostScript, RTF and so forth) with or without modification, # are permitted provided that the following conditions are met: # 1. Redistributions of source code (VuXML) must retain the above # copyright notice, this list of conditions and the following # disclaimer as the first lines of this file unmodified. # 2. Redistributions in compiled form (transformed to other DTDs, # published online in any format, converted to PDF, PostScript, # RTF and other formats) must reproduce the above copyright # notice, this list of conditions and the following disclaimer # in the documentation and/or other materials provided with the # distribution. # # THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # include("compat.inc"); if (description) { script_id(76177); script_version("1.5"); script_cvs_date("Date: 2018/12/19 13:21:18"); script_cve_id("CVE-2014-4348", "CVE-2014-4349"); script_name(english:"FreeBSD : phpMyAdmin -- two XSS vulnerabilities due to unescaped db/table names (c4892644-f8c6-11e3-9f45-6805ca0b3d42)"); script_summary(english:"Checks for updated package in pkg_info output"); script_set_attribute( attribute:"synopsis", value:"The remote FreeBSD host is missing a security-related update." ); script_set_attribute( attribute:"description", value: "The phpMyAdmin development team reports : Self-XSS due to unescaped HTML output in recent/favorite tables navigation. When marking a crafted database or table name as favorite or having it in recent tables, it is possible to trigger an XSS. This vulnerability can be triggered only by someone who logged in to phpMyAdmin, as the usual token protection prevents non-logged-in users from accessing the required form. Self-XSS due to unescaped HTML output in navigation items hiding feature. When hiding or unhiding a crafted table name in the navigation, it is possible to trigger an XSS. This vulnerability can be triggered only by someone who logged in to phpMyAdmin, as the usual token protection prevents non-logged-in users from accessing the required form." ); # http://www.phpmyadmin.net/home_page/security/PMASA-2014-2.php script_set_attribute( attribute:"see_also", value:"https://www.phpmyadmin.net/security/PMASA-2014-2/" ); # http://www.phpmyadmin.net/home_page/security/PMASA-2014-3.php script_set_attribute( attribute:"see_also", value:"https://www.phpmyadmin.net/security/PMASA-2014-3/" ); # https://vuxml.freebsd.org/freebsd/c4892644-f8c6-11e3-9f45-6805ca0b3d42.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?f7fba081" ); script_set_attribute(attribute:"solution", value:"Update the affected package."); script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:S/C:N/I:P/A:N"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:phpMyAdmin"); script_set_attribute(attribute:"cpe", value:"cpe:/o:freebsd:freebsd"); script_set_attribute(attribute:"vuln_publication_date", value:"2014/06/20"); script_set_attribute(attribute:"patch_publication_date", value:"2014/06/20"); script_set_attribute(attribute:"plugin_publication_date", value:"2014/06/23"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof."); script_family(english:"FreeBSD Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/FreeBSD/release", "Host/FreeBSD/pkg_info"); exit(0); } include("audit.inc"); include("freebsd_package.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); if (!get_kb_item("Host/FreeBSD/release")) audit(AUDIT_OS_NOT, "FreeBSD"); if (!get_kb_item("Host/FreeBSD/pkg_info")) audit(AUDIT_PACKAGE_LIST_MISSING); flag = 0; if (pkg_test(save_report:TRUE, pkg:"phpMyAdmin>=4.1.0<4.2.4")) flag++; if (flag) { if (report_verbosity > 0) security_note(port:0, extra:pkg_report_get()); else security_note(0); exit(0); } else audit(AUDIT_HOST_NOT, "affected");
NASL family Fedora Local Security Checks NASL id FEDORA_2014-8577.NASL description phpMyAdmin 4.2.6.0 (2014-07-17) =============================== - Undefined index warning with referenced column. - $cfg[ last seen 2020-03-17 modified 2014-07-31 plugin id 76917 published 2014-07-31 reporter This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/76917 title Fedora 19 : phpMyAdmin-4.2.6-1.fc19 (2014-8577) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Fedora Security Advisory 2014-8577. # include("compat.inc"); if (description) { script_id(76917); script_version("1.5"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12"); script_cve_id("CVE-2013-4998", "CVE-2013-4999", "CVE-2013-5000", "CVE-2013-5003", "CVE-2013-5029", "CVE-2014-1879", "CVE-2014-4348", "CVE-2014-4349"); script_bugtraq_id(61512, 61513, 61515, 61804, 61923, 65717, 68201, 68205); script_xref(name:"FEDORA", value:"2014-8577"); script_name(english:"Fedora 19 : phpMyAdmin-4.2.6-1.fc19 (2014-8577)"); script_summary(english:"Checks rpm output for the updated package."); script_set_attribute( attribute:"synopsis", value:"The remote Fedora host is missing a security update." ); script_set_attribute( attribute:"description", value: "phpMyAdmin 4.2.6.0 (2014-07-17) =============================== - Undefined index warning with referenced column. - $cfg['MaxExactCount'] is ignored when BROWSING is back - Multi Column sorting (improved user experience) - Server validation does not work while in setup/mysqli - Undefined variable when grid editing a foreign key column - mult_submits.inc.php Undefined variable Error - Sorting breaks the copy column feature - JavaScript error when renaming table - 'New window' link (selflink) disappears, causing JavaScript error - Incorrect detection of privileges for routine creation - First few characters of database name aren't clickable when expanded - [security] XSS injection due to unescaped table comment - [security] XSS injection due to unescaped table name (triggers) - [security] XSS in AJAX confirmation messages - [security] Missing validation for accessing User groups feature phpMyAdmin 4.2.5.0 (2014-06-26) =============================== - shell_exec() has been disabled for security reasons - Error while submitting empty query - Fatal error: Class 'PMA_DatabaseInterface' not found - Fixed cookie based login for installations without mcrypt - incorrect result count when having clause is used - mcrypt: remove the requirement (64-bit) and the related warning phpMyAdmin 4.2.4.0 (2014-06-20) =============================== - MediaWiki export does not produce table header row; also fix related PHP warnings - New lines are added to query every time - Fatal error on SQL Export of join query - Dump binary columns in hexadecimal notation not working - Regenerate cookie encryption IV for every session - Cannot import (open_basedir): fix another case - SQL tab - Insert queries not showing affected row count - Missing warning about existing account, on multi-server config - WHERE clause can be undefined - SQL export views as tables option getting ignored - [security] XSS injection due to unescaped db/table name in navigation hiding - [security] XSS injection due to unescaped db/table name in recent/favorite tables phpMyAdmin 4.2.3.0 (2014-06-08) =============================== - Moving fields not working - Table indexes disappear after altering field - Error while displaying chart at server level - Cannot import (open_basedir) - Problem copying constraints (such as Sakila) - Missing privileges submenu - Drop db confirmation message when dropping a user - Insert form numeric field with function drop-down list - Problems due to missing enforcement of the minimum supported MySQL version - Add enforcement of the minimum supported PHP version (5.3.0) - Query error on submitting a column change form containing a disabled input field - Incorrect menu tab generation from usergroups - Missing space in index creation/edit generated query - Unchecking 'Show SQL queries' results NaN phpMyAdmin 4.2.2.0 (2014-05-20) =============================== - Disable database expansion when enabled throws Error 500 when database name is clicked in navigation tree - table display of performance_schema DB structure - Protect Binary Columns: many problems - BLOB link transformation is broken - Respect ['ShowCreateDb'] in the navi panel - Cannot see databases in nav panel on databases grouping when disabled database expansion - No more calendar into search tab - Monitor should fit into screen width - When copying databases, primary key attributes get lost - empty maxInputVars on js/messages.php phpMyAdmin 4.2.1.0 (2014-05-13) =============================== - Cannot display table structure with enums containing special characters - Cannot remove the last remembered sorted column - Correctly fetch length of user and host fields in MySQL tables - examples/signon.php does not support the SessionSavePath directive - Missing source for OpenLayers library - Incorrect attributes for number fields - Cannot update values in Zoom search - GIS Visualization Extension does not work with PointFromText() function - Incorrect 'Rows' total shown when truncating or dropping a table on DB Structure page - Grid edit on sorted columns fails - Null checkbox covering data input when editing - Data type changing by itself (no size but attribute present) phpMyAdmin 4.2.0.0 (2014-05-08) =============================== - Export only triggers - Export Server/Database/Table without triggers - Add table comment tool tip in database structure page - Single table for display Character Sets and Collations - Display icons/text/both for the table row actions - Transformation to convert Boolean value to text - Changing users password will delete it - Text transformation combines Append and Prepend - Added warning about the mysql extension being deprecated and removed the extension directive - Added support for scatter charts - Make Column Headings Sticky - Enhance privileges initials table - [interface] Break 'Edit privileges' with sub-menus - Minor refactoring required - Create indexes at the end in SQL export - Relations edit form for larger monitors - Inline query box vertical resize - [interface] Add bottom border to top menu container - Add datepicker for 'TIME' type - HTTP Referer disclosure in SQL links - Show full names on navigation hover - Behaviour on click on a routine in nav panel - Support more than one separating character on CSV import - Load/Save Query By Example - Grid edit ENUM field, dialog disappears when trying to select - DB export using zip compression generates an empty archive - confirmation message at the top - breadcrubs wrong on table create - better validate database name for copying - Database tab 'Drop' button should be a link - Highlight required form fields after failed submission - Redirect to login page after session has expired - Grid edit: can't change month on date fields - add maxlength by field with length-spec - Import happily doesn't do anything with no file name provided - Add function to all the insert boxes automatically - Option to skip tables larger than n - Possibility of disabling database expansion - Favourite tables select box - $cfg['CharEditing']='textarea' for structure edit - Avoid editing of fields which are part of relation - [interface] Highlight active left menu item in setup - Filter on-screen rows during Browse - Removed support for SQL Validator (SOAP service no longer offered) - Settings > Manage: incorrect messages - 'More' in Actions area doesn't collapse to fit available space - Group two DB, one's name is the prefix of the other one - Confusing database/table grouping - Creating Index doesn't update index-list Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues." ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=1067713" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=1117600" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=1117601" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=989660" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=989668" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=993613" ); # https://lists.fedoraproject.org/pipermail/package-announce/2014-July/136156.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?d2f50218" ); script_set_attribute( attribute:"solution", value:"Update the affected phpMyAdmin package." ); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"exploit_available", value:"false"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:phpMyAdmin"); script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:19"); script_set_attribute(attribute:"vuln_publication_date", value:"2013/07/31"); script_set_attribute(attribute:"patch_publication_date", value:"2014/07/21"); script_set_attribute(attribute:"plugin_publication_date", value:"2014/07/31"); script_set_attribute(attribute:"generated_plugin", value:"current"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof."); script_family(english:"Fedora Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("rpm.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); release = get_kb_item("Host/RedHat/release"); if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora"); os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release); if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora"); os_ver = os_ver[1]; if (! ereg(pattern:"^19([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 19.x", "Fedora " + os_ver); if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING); cpu = get_kb_item("Host/cpu"); if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH); if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu); flag = 0; if (rpm_check(release:"FC19", reference:"phpMyAdmin-4.2.6-1.fc19")) flag++; if (flag) { if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get()); else security_warning(0); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "phpMyAdmin"); }
NASL family SuSE Local Security Checks NASL id OPENSUSE-2014-518.NASL description This phpMyAdmin update addresses several security and non security issues : - This is a phpMyAdmin version upgrade (bnc#892401): (From 4.1.14.3) : - sf#4501 [security] XSS in table browse page (CVE-2014-5273) - sf#4502 [security] Self-XSS in enum value editor (CVE-2014-5273) - sf#4503 [security] Self-XSSes in monitor (CVE-2014-5273) - sf#4505 [security] XSS in view operations page (CVE-2014-5274) - sf#4504 [security] Self-XSS in query charts	(CVE-2014-5273) - sf#4517 [security] XSS in relation view (CVE-2014-5273) (From 4.1.14.2) : - sf#4488 [security] XSS injection due to unescaped table name (triggers)(CVE-2014-4955) - sf#4492 [security] XSS in AJAX confirmation messages (CVE-2014-4986) - sf#4491 [security] Missing validation for accessing User groups feature (CVE-2014-4987) (From 4.1.14.1) : - sf#4464 [security] XSS injection due to unescaped db/table name in navigation hiding (CVE-2014-4349) (From 4.1.14.0 through 4.1.9.0) : - Numerous non-security bugfixes are listed at https://github.com/phpmyadmin/phpmyadmin/blob/MAINT_4_1_ 14/ChangeLog last seen 2020-06-05 modified 2014-08-29 plugin id 77432 published 2014-08-29 reporter This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/77432 title openSUSE Security Update : phpMyAdmin (openSUSE-SU-2014:1069-1) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from openSUSE Security Update openSUSE-2014-518. # # The text description of this plugin is (C) SUSE LLC. # include("compat.inc"); if (description) { script_id(77432); script_version("1.3"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04"); script_cve_id("CVE-2014-4349", "CVE-2014-4955", "CVE-2014-4986", "CVE-2014-4987", "CVE-2014-5273", "CVE-2014-5274"); script_name(english:"openSUSE Security Update : phpMyAdmin (openSUSE-SU-2014:1069-1)"); script_summary(english:"Check for the openSUSE-2014-518 patch"); script_set_attribute( attribute:"synopsis", value:"The remote openSUSE host is missing a security update." ); script_set_attribute( attribute:"description", value: "This phpMyAdmin update addresses several security and non security issues : - This is a phpMyAdmin version upgrade (bnc#892401): (From 4.1.14.3) : - sf#4501 [security] XSS in table browse page (CVE-2014-5273) - sf#4502 [security] Self-XSS in enum value editor (CVE-2014-5273) - sf#4503 [security] Self-XSSes in monitor (CVE-2014-5273) - sf#4505 [security] XSS in view operations page (CVE-2014-5274) - sf#4504 [security] Self-XSS in query charts	(CVE-2014-5273) - sf#4517 [security] XSS in relation view (CVE-2014-5273) (From 4.1.14.2) : - sf#4488 [security] XSS injection due to unescaped table name (triggers)(CVE-2014-4955) - sf#4492 [security] XSS in AJAX confirmation messages (CVE-2014-4986) - sf#4491 [security] Missing validation for accessing User groups feature (CVE-2014-4987) (From 4.1.14.1) : - sf#4464 [security] XSS injection due to unescaped db/table name in navigation hiding (CVE-2014-4349) (From 4.1.14.0 through 4.1.9.0) : - Numerous non-security bugfixes are listed at https://github.com/phpmyadmin/phpmyadmin/blob/MAINT_4_1_ 14/ChangeLog" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.novell.com/show_bug.cgi?id=892401" ); script_set_attribute( attribute:"see_also", value:"https://github.com/phpmyadmin/phpmyadmin/blob/MAINT_4_1_14/ChangeLog" ); script_set_attribute( attribute:"see_also", value:"https://lists.opensuse.org/opensuse-updates/2014-08/msg00045.html" ); script_set_attribute( attribute:"solution", value:"Update the affected phpMyAdmin package." ); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:N/A:N"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:phpMyAdmin"); script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:12.3"); script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:13.1"); script_set_attribute(attribute:"patch_publication_date", value:"2014/08/20"); script_set_attribute(attribute:"plugin_publication_date", value:"2014/08/29"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof."); script_family(english:"SuSE Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/SuSE/release", "Host/SuSE/rpm-list"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("rpm.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); release = get_kb_item("Host/SuSE/release"); if (isnull(release) || release =~ "^(SLED|SLES)") audit(AUDIT_OS_NOT, "openSUSE"); if (release !~ "^(SUSE12\.3|SUSE13\.1)$") audit(AUDIT_OS_RELEASE_NOT, "openSUSE", "12.3 / 13.1", release); if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING); flag = 0; if ( rpm_check(release:"SUSE12.3", reference:"phpMyAdmin-4.1.14.3-1.16.1") ) flag++; if ( rpm_check(release:"SUSE13.1", reference:"phpMyAdmin-4.1.14.3-8.1") ) flag++; if (flag) { if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get()); else security_warning(0); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "phpMyAdmin"); }
NASL family Fedora Local Security Checks NASL id FEDORA_2014-8581.NASL description phpMyAdmin 4.2.6.0 (2014-07-17) =============================== - Undefined index warning with referenced column. - $cfg[ last seen 2020-03-17 modified 2014-07-31 plugin id 76918 published 2014-07-31 reporter This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/76918 title Fedora 20 : phpMyAdmin-4.2.6-1.fc20 (2014-8581) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Fedora Security Advisory 2014-8581. # include("compat.inc"); if (description) { script_id(76918); script_version("1.5"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12"); script_cve_id("CVE-2013-4998", "CVE-2013-4999", "CVE-2013-5000", "CVE-2013-5003", "CVE-2013-5029", "CVE-2014-1879", "CVE-2014-4348", "CVE-2014-4349"); script_bugtraq_id(61512, 61513, 61515, 61804, 61923, 65717, 68201, 68205); script_xref(name:"FEDORA", value:"2014-8581"); script_name(english:"Fedora 20 : phpMyAdmin-4.2.6-1.fc20 (2014-8581)"); script_summary(english:"Checks rpm output for the updated package."); script_set_attribute( attribute:"synopsis", value:"The remote Fedora host is missing a security update." ); script_set_attribute( attribute:"description", value: "phpMyAdmin 4.2.6.0 (2014-07-17) =============================== - Undefined index warning with referenced column. - $cfg['MaxExactCount'] is ignored when BROWSING is back - Multi Column sorting (improved user experience) - Server validation does not work while in setup/mysqli - Undefined variable when grid editing a foreign key column - mult_submits.inc.php Undefined variable Error - Sorting breaks the copy column feature - JavaScript error when renaming table - 'New window' link (selflink) disappears, causing JavaScript error - Incorrect detection of privileges for routine creation - First few characters of database name aren't clickable when expanded - [security] XSS injection due to unescaped table comment - [security] XSS injection due to unescaped table name (triggers) - [security] XSS in AJAX confirmation messages - [security] Missing validation for accessing User groups feature phpMyAdmin 4.2.5.0 (2014-06-26) =============================== - shell_exec() has been disabled for security reasons - Error while submitting empty query - Fatal error: Class 'PMA_DatabaseInterface' not found - Fixed cookie based login for installations without mcrypt - incorrect result count when having clause is used - mcrypt: remove the requirement (64-bit) and the related warning phpMyAdmin 4.2.4.0 (2014-06-20) =============================== - MediaWiki export does not produce table header row; also fix related PHP warnings - New lines are added to query every time - Fatal error on SQL Export of join query - Dump binary columns in hexadecimal notation not working - Regenerate cookie encryption IV for every session - Cannot import (open_basedir): fix another case - SQL tab - Insert queries not showing affected row count - Missing warning about existing account, on multi-server config - WHERE clause can be undefined - SQL export views as tables option getting ignored - [security] XSS injection due to unescaped db/table name in navigation hiding - [security] XSS injection due to unescaped db/table name in recent/favorite tables phpMyAdmin 4.2.3.0 (2014-06-08) =============================== - Moving fields not working - Table indexes disappear after altering field - Error while displaying chart at server level - Cannot import (open_basedir) - Problem copying constraints (such as Sakila) - Missing privileges submenu - Drop db confirmation message when dropping a user - Insert form numeric field with function drop-down list - Problems due to missing enforcement of the minimum supported MySQL version - Add enforcement of the minimum supported PHP version (5.3.0) - Query error on submitting a column change form containing a disabled input field - Incorrect menu tab generation from usergroups - Missing space in index creation/edit generated query - Unchecking 'Show SQL queries' results NaN phpMyAdmin 4.2.2.0 (2014-05-20) =============================== - Disable database expansion when enabled throws Error 500 when database name is clicked in navigation tree - table display of performance_schema DB structure - Protect Binary Columns: many problems - BLOB link transformation is broken - Respect ['ShowCreateDb'] in the navi panel - Cannot see databases in nav panel on databases grouping when disabled database expansion - No more calendar into search tab - Monitor should fit into screen width - When copying databases, primary key attributes get lost - empty maxInputVars on js/messages.php phpMyAdmin 4.2.1.0 (2014-05-13) =============================== - Cannot display table structure with enums containing special characters - Cannot remove the last remembered sorted column - Correctly fetch length of user and host fields in MySQL tables - examples/signon.php does not support the SessionSavePath directive - Missing source for OpenLayers library - Incorrect attributes for number fields - Cannot update values in Zoom search - GIS Visualization Extension does not work with PointFromText() function - Incorrect 'Rows' total shown when truncating or dropping a table on DB Structure page - Grid edit on sorted columns fails - Null checkbox covering data input when editing - Data type changing by itself (no size but attribute present) phpMyAdmin 4.2.0.0 (2014-05-08) =============================== - Export only triggers - Export Server/Database/Table without triggers - Add table comment tool tip in database structure page - Single table for display Character Sets and Collations - Display icons/text/both for the table row actions - Transformation to convert Boolean value to text - Changing users password will delete it - Text transformation combines Append and Prepend - Added warning about the mysql extension being deprecated and removed the extension directive - Added support for scatter charts - Make Column Headings Sticky - Enhance privileges initials table - [interface] Break 'Edit privileges' with sub-menus - Minor refactoring required - Create indexes at the end in SQL export - Relations edit form for larger monitors - Inline query box vertical resize - [interface] Add bottom border to top menu container - Add datepicker for 'TIME' type - HTTP Referer disclosure in SQL links - Show full names on navigation hover - Behaviour on click on a routine in nav panel - Support more than one separating character on CSV import - Load/Save Query By Example - Grid edit ENUM field, dialog disappears when trying to select - DB export using zip compression generates an empty archive - confirmation message at the top - breadcrubs wrong on table create - better validate database name for copying - Database tab 'Drop' button should be a link - Highlight required form fields after failed submission - Redirect to login page after session has expired - Grid edit: can't change month on date fields - add maxlength by field with length-spec - Import happily doesn't do anything with no file name provided - Add function to all the insert boxes automatically - Option to skip tables larger than n - Possibility of disabling database expansion - Favourite tables select box - $cfg['CharEditing']='textarea' for structure edit - Avoid editing of fields which are part of relation - [interface] Highlight active left menu item in setup - Filter on-screen rows during Browse - Removed support for SQL Validator (SOAP service no longer offered) - Settings > Manage: incorrect messages - 'More' in Actions area doesn't collapse to fit available space - Group two DB, one's name is the prefix of the other one - Confusing database/table grouping - Creating Index doesn't update index-list Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues." ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=1067713" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=1117600" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=1117601" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=989660" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=989668" ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=993613" ); # https://lists.fedoraproject.org/pipermail/package-announce/2014-July/136152.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?0aef8953" ); script_set_attribute( attribute:"solution", value:"Update the affected phpMyAdmin package." ); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"exploit_available", value:"false"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:phpMyAdmin"); script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:20"); script_set_attribute(attribute:"vuln_publication_date", value:"2013/07/31"); script_set_attribute(attribute:"patch_publication_date", value:"2014/07/21"); script_set_attribute(attribute:"plugin_publication_date", value:"2014/07/31"); script_set_attribute(attribute:"generated_plugin", value:"current"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof."); script_family(english:"Fedora Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("rpm.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); release = get_kb_item("Host/RedHat/release"); if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora"); os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release); if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora"); os_ver = os_ver[1]; if (! ereg(pattern:"^20([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 20.x", "Fedora " + os_ver); if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING); cpu = get_kb_item("Host/cpu"); if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH); if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu); flag = 0; if (rpm_check(release:"FC20", reference:"phpMyAdmin-4.2.6-1.fc20")) flag++; if (flag) { if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get()); else security_warning(0); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "phpMyAdmin"); }
NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2014-126.NASL description Multiple vulnerabilities has been discovered and corrected in phpmyadmin : Multiple cross-site scripting (XSS) vulnerabilities in phpMyAdmin 4.2.x before 4.2.4 allow remote authenticated users to inject arbitrary web script or HTML via a crafted (1) database name or (2) table name that is improperly handled after presence in (a) the favorite list or (b) recent tables (CVE-2014-4348). Multiple cross-site scripting (XSS) vulnerabilities in phpMyAdmin 4.1.x before 4.1.14.1 and 4.2.x before 4.2.4 allow remote authenticated users to inject arbitrary web script or HTML via a crafted table name that is improperly handled after a (1) hide or (2) unhide action (CVE-2014-4349). This upgrade provides the latest phpmyadmin version (4.2.5) to address these vulnerabilities. last seen 2020-06-01 modified 2020-06-02 plugin id 76423 published 2014-07-09 reporter This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/76423 title Mandriva Linux Security Advisory : phpmyadmin (MDVSA-2014:126) NASL family CGI abuses : XSS NASL id PHPMYADMIN_PMASA_2014_3.NASL description According to its self-reported version number, the phpMyAdmin install hosted on the remote web server is 4.1.x prior to 4.1.14.1 or 4.2.x prior to 4.2.4. It is, therefore, affected by multiple cross-site scripting vulnerabilities. The flaws exist due to user input not being validated in a crafted table name after a hide or unhide action. This could allow a remote attacker, with a specially crafted request, to execute arbitrary script code within the browser / server trust relationship. Note that Nessus has not tested for these issues but has instead relied only on the application last seen 2020-06-01 modified 2020-06-02 plugin id 76278 published 2014-06-27 reporter This script is Copyright (C) 2014-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/76278 title phpMyAdmin 4.1.x < 4.1.14.1 / 4.2.x < 4.2.4 Navigation Hiding Items Multiple XSS (PMASA-2014-3)
References
- http://lists.opensuse.org/opensuse-updates/2014-08/msg00045.html
- http://lists.opensuse.org/opensuse-updates/2014-08/msg00045.html
- http://phpmyadmin.net/home_page/security/PMASA-2014-3.php
- http://phpmyadmin.net/home_page/security/PMASA-2014-3.php
- http://secunia.com/advisories/60397
- http://secunia.com/advisories/60397
- http://www.securityfocus.com/bid/68205
- http://www.securityfocus.com/bid/68205
- https://github.com/phpmyadmin/phpmyadmin/commit/d4f754c937f9e2c0beadff5b2e38215dde1d6a79
- https://github.com/phpmyadmin/phpmyadmin/commit/d4f754c937f9e2c0beadff5b2e38215dde1d6a79
- https://github.com/phpmyadmin/phpmyadmin/commit/daa98d0c7ed24b529dc5df0d5905873acd0b00be
- https://github.com/phpmyadmin/phpmyadmin/commit/daa98d0c7ed24b529dc5df0d5905873acd0b00be