-尊龙登录

security policy =============== the phpmyadmin developer team is putting lot of effort to make phpmyadmin as secure as possible. but still web application like phpmyadmin can be vulnerable to a number of attacks and new ways to exploit are still being explored. for every reported vulnerability we issue a phpmyadmin security announcement (pmasa) and it get's assigned a cve id as well. we might group similar vulnerabilities to one pmasa (eg. multiple xss vulnerabilities can be announced under one pmasa). if you think you've found a vulnerability, please see :ref:`reporting-security`. typical vulnerabilities ----------------------- in this section, we will describe typical vulnerabilities, which can appear in our code base. this list is by no means complete, it is intended to show typical attack surface. cross-site scripting (xss) when phpmyadmin shows a piece of user data, e.g. something inside a user's database, all html special chars have to be escaped. when this escaping is missing somewhere a malicious user might fill a database with specially crafted content to trick an other user of that database into executing something. this could for example be a piece of javascript code that would do any number of nasty things. phpmyadmin tries to escape all userdata before it is rendered into html for the browser. .. seealso:: `cross-site scripting on wikipedia `_ cross-site request forgery (csrf) an attacker would trick a phpmyadmin user into clicking on a link to provoke some action in phpmyadmin. this link could either be sent via email or some random website. if successful this the attacker would be able to perform some action with the users privileges. to mitigate this phpmyadmin requires a token to be sent on sensitive requests. the idea is that an attacker does not poses the currently valid token to include in the presented link. the token is regenerated for every login, so it's generally valid only for limited time, what makes it harder for attacker to obtain valid one. .. seealso:: `cross-site request forgery on wikipedia `_ sql injection as the whole purpose of phpmyadmin is to preform sql queries, this is not our first concern. sql injection is sensitive to us though when it concerns the mysql control connection. this controlconnection can have additional privileges which the logged in user does not poses. e.g. access the :ref:`linked-tables`. user data that is included in (administrative) queries should always be run through databaseinterface::escapestring(). .. seealso:: `sql injection on wikipedia `_ brute force attack phpmyadmin on its own does not rate limit authentication attempts in any way. this is caused by need to work in stateless environment, where there is no way to protect against such kind of things. to mitigate this, you can use captcha or utilize external tools such as fail2ban, this is more details described in :ref:`securing`. .. seealso:: `brute force attack on wikipedia `_ .. _reporting-security: reporting security issues ------------------------- should you find a security issue in the phpmyadmin programming code, please contact the `phpmyadmin security team `_ in advance before publishing it. this way we can prepare a fix and release the fix together with your announcement. you will be also given credit in our security announcement. you can optionally encrypt your report with pgp key id ``da68ab39218ab947`` with following fingerprint: .. code-block:: console pub 4096r/da68ab39218ab947 2016-08-02 key fingerprint = 5bad 38cf b980 50b9 4bd7 fb5b da68 ab39 218a b947 uid phpmyadmin security team sub 4096r/5e4176fb497a31f7 2016-08-02 the key can be either obtained from the keyserver or is available in `phpmyadmin keyring `_ available on our download server or using `keybase `_. should you have suggestion on improving phpmyadmin to make it more secure, please report that to our `issue tracker `_. existing improvement suggestions can be found by `hardening label `_.
网站地图