Giter Club home page Giter Club logo

phpminiadmin's Introduction

other screenshots

How to Install

  • Download phpminiadmin.php file
    • example: wget https://raw.github.com/osalabs/phpminiadmin/master/phpminiadmin.php
  • Copy/Upload it to your webserver public directory (www or public_html or whatever...)
  • Open in your browser http://yoursite.com/phpminiadmin.php

Recommended: For additional security you may edit phpminiadmin.php file and set some password (see $ACCESS_PWD variable)

Dependencies

The only required php extension is mysqli. Therefore if you got a white screen install it:

sudo apt-get install php-mysql on Debian or enable extension=php_mysqli.dll in php.ini on Windows

Config file (optional)

You can also create phpminiconfig.php in the same directory as phpminiadmin.php with database credentials or password. This way you can easily install future releases of phpminiadmin.php

In the directory samples you'll find phpminiconfig.php for known OpenSource packages

  • See phpminiconfig.php for an empty example
  • See phpminiconfig.magento.php to read Magento its app/etc/local.xml ($ACCESS_PWD is required)
  • See phpminiconfig.sugarcrm.php to read SugarCRM its config.php ($ACCESS_PWD is required)
  • See phpminiconfig.wordpress.php to read Wordpress its wp-config.php ($ACCESS_PWD is required)
  • See phpminiconfig.vtiger.php to read Vtiger its config.inc.php ($ACCESS_PWD is required)

Links

Change Log

changes in phpMiniAdmin 1.9.210705 (latest)

  • removed use of function get_magic_quotes_gpc deprecated since PHP 7.4.0
  • utf8mb4 is now default charset
  • tested in PHP 8, cleaned up several PHP Warnings

changes in phpMiniAdmin 1.9.210129

  • limited max packet size during export to aviod PHP memory exhausted errors on huge tables

changes in phpMiniAdmin 1.9.200928

  • added ability to setup SSL connection (define at least "ssl_ca" in $DBDEF)

changes in phpMiniAdmin 1.9.190822

  • added ability to set socket for db connection

changes in phpMiniAdmin 1.9.170730

  • fixed potential XSS in database names and fields #28
  • db NULLs now displayed in italic to distinguish from "NULL" text
  • misc formatting adjustments

see older changes in changelog

phpminiadmin's People

Contributors

borisplotkin avatar dinoel avatar fuksito avatar gp0 avatar hostyle avatar jeroenboersma avatar justinstolle avatar kainjow avatar osalabs avatar sbruemmer avatar slavik0329 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phpminiadmin's Issues

A version-agnostic way to download phpminiadmin fast in command line

I didn't find a way to download the latest pmad release in a version agnostic way.

In PHPmyadmin for example, one can download it in a version agnostic way like this:

wget -P /var/www/html https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.zip

What I desire is to download pmad in a similar way with wget, yet in the site I only found a sourceforge dependent way (seemingly one has to go into sourceforge and download from a dynamically created link).

Warning: set_time_limit() has been disabled for security reasons

At someone hosting the function set_time_limit() is disabled and we see this error:

Warning: set_time_limit() has been disabled for security reasons in /var/www/***/phpminiadmin.php on line 952

May be write all (line 822, 952):

@set_time_limit(600);

This not correct but ignore warning message if it not disabled manually.

Is it dead?

3 years no updates, no fixes for new php versions

Skinning

Maybe move all the css styles to external skin.css file?

Any php extension-package needed?

Hi,

I normally use latest Debian for new server environments on which I normally install Drupal applications.
I remember that on some new server environments, I had to install mbstring and mcrypt to use PHPMyAdmin.

I read phpminiadmin's project page but didn't find a statement if any packages are needed (I assume none are needed).
I would personally love to read a sentence like "no php extension-packages are needed on Linux distributions/Debian".

Ben,

Move to MySQLi?

Hello. Are there any plans on moving to MySQLi? It appears the MySQL extension will be removed in PHP 7, so it would be good to switch. Or, use PDO (which could make it simple to support other database types in the future). I wouldn't mind working on this if you don't have any current plans.

Number of rows in result interface

Feature

The current interface does not indicate the number of lines of a "select" result.
It could be useful to retrieve this number (like mysql_num_rows) without doing new request or counting pages / going to last page.

Csv exporting is not function about charset

First, I'm very impressed the program and using very well, So thank you your contributes.

In my contry I don't use English and when I export my table, and open the csv file, the charter's are broken (not english). So, I suggest adjust code line 792

if ($DB['chset']=='utf8') ex_end($BOM);

to->

if ($DB['chset']=='utf8') ex_w($BOM); ex_end();

Function ex_end() is here,

function ex_end(){
global $ex_isgz,$ex_gz,$ex_tmpf;
if ($ex_isgz){
gzclose($ex_gz);
readfile($ex_tmpf);
}
}

There is no parameter in definition, So I insert the ex_w() function.

Thank you

XSS Vulnerability

There are multiple instances of XSS within PHPMiniAdmin. Some of them are stored, which implies that it will persist for all users and social engineering is not required.

The easiest way to patch this is simply use htmlentities every time you echo something.

Bug with non-default mysql host

If mysql host is not default and "remember me" checkbox on login form is not set, then after successfull login i can not do anything - i'm getting logged out after clicking on any button.

DOM XSS Vulnerability

Posting here at the request of developer. I am no developer myself and as such I'm unsure what causes the actual issue code-wise or how to fix it.

Found a DOM XSS vulnerability in the app, specifically in the database login screen. By serving a victim a malicious URL, an attacker can inject a script into the "onclick" attribute of the Cancel button, which will trigger when clicked. If the user is not already logged in then using the ?showcfg=1 paramater is not necessary as it is essentially the same page. The examples provided are for ease of access on the live demo, but they work on the latest version of the app aswell.

With this vulnerability it has been confirmed possible to also exfiltrate form-data from the page using injected Javascript.

Proof-of-concept payloads can be provided on request if necessary, as well as screenshots and similar.

Licence

Hi Oleg,

You haven't specified anywhere under what licence have you put phpminiadmin. Can you please mention a licence on readme?

CEMI Vulnerability

PHPMiniAdmin is vulnerable to a Microsoft Excel specific attack named CSV Excel Macro Injection. An attacker can add in formulas like =1+1 into the DB and when exported into CSV, these formulas can be executed. This can lead to the take over of a user's PC, assuming they enable macros within Microsoft Excel.

To patch this bug, I would suggest when creating the CSV file, simply add a single quote (') before any field that contains an =, +, - or @ sign at the start of the field.

Hope this helps keep your software more secure!

How to setup phpminiadmin

A mini tutorial on how to setup would be appreciated. Can you include a set up guide in Readme.md

Currently I am unable to get past the security page. I receive a blank page at http://localhost/phpminiadmin.php, I do get the page which asks for $ACCESS_PWD though. But I am unable to go to the main page despite giving correct password.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.