Exploit databaseDownload repository ZIP
GH-75086c089b7efd8442f7beaac466bd4d
sudo-wp/sudowp-adminer
Sources for CVE-2021-21311
8 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files34
sudo-wp/sudowp-adminerRevision 8157245486a5
- ↑..Parent directory
- include/
- lang/
- static/
- .htaccess
- adminer.css
- call.inc.php
- create.inc.php
- database.inc.php
- db.inc.php
- download.inc.php
- dump.inc.php
- edit.inc.php
- event.inc.php
- file.inc.php
- foreign.inc.php
- index.php
- indexes.inc.php
- loader.php
- plugin.php
- privileges.inc.php
- procedure.inc.php
- processlist.inc.php
- schema.inc.php
- scheme.inc.php
- script.inc.php
- select.inc.php
- sequence.inc.php
- sql.inc.php
- table.inc.php
- trigger.inc.php
- type.inc.php
- user.inc.php
- variables.inc.php
- view.inc.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
inc/adminer/privileges.inc.php
PHP · 1,354 bytes<?php
page_header(lang('Privileges'));
$result = $connection->query("SELECT User, Host FROM mysql." . (DB == "" ? "user" : "db WHERE " . q(DB) . " LIKE Db") . " ORDER BY Host, User");
$grant = $result;
if (!$result) {
// list logged user, information_schema.USER_PRIVILEGES lists just the current user too
$result = $connection->query("SELECT SUBSTRING_INDEX(CURRENT_USER, '@', 1) AS User, SUBSTRING_INDEX(CURRENT_USER, '@', -1) AS Host");
}
echo "<form action=''><p>\n";
hidden_fields_get();
echo "<input type='hidden' name='db' value='" . h(DB) . "'>\n";
echo ($grant ? "" : "<input type='hidden' name='grant' value=''>\n");
echo "<table cellspacing='0'>\n";
echo "<thead><tr><th>" . lang('Username') . "<th>" . lang('Server') . "<th> </thead>\n";
while ($row = $result->fetch_assoc()) {
echo '<tr' . odd() . '><td>' . h($row["User"]) . "<td>" . h($row["Host"]) . '<td><a href="' . h(ME . 'user=' . urlencode($row["User"]) . '&host=' . urlencode($row["Host"])) . '">' . lang('Edit') . "</a>\n";
}
if (!$grant || DB != "") {
echo "<tr" . odd() . "><td><input name='user' autocapitalize='off'><td><input name='host' value='localhost' autocapitalize='off'><td><input type='submit' value='" . lang('Edit') . "'>\n";
}
echo "</table>\n";
echo "</form>\n";
echo '<p class="links"><a href="' . h(ME) . 'user=">' . lang('Create user') . "</a>";