note 129917 added to security.database
| From: | gabe.aust@gmail.com | Date: | Sun, 15 Dec 2024 23:05:48 +0000 |
| Subject: | note 129917 added to security.database | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221724@lists.php.net to get a copy of this message | ||
The most significant way to protect databases is to simply use authentication! There are production
systems online with null and default administrator credentials. See the recent "The Real
World" hack...
Rule 1: Simply use authentication instead of not using it... Obviously do not save the credentials
in a public-readable file.
Rule 2: Create a subsidiary account with access only to the live schema being used by your PHP app,
i.e. never use the global DBMS admin account as a service login.
Rule 3: Block access at the DBMS end to only allow the web server to access the API. Most access is
network based so that will involve filtering by IP.
Rule 4: You can obfuscate a bit more by setting a non-standard port but this may require code
changes in the API calls you coded.
The above are some simple steps anyone can perform. More serious securing would likely involve
setting up SSL connectivity.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 1.145.201.131)
----
Manual Page -- https://php.net/manual/en/security.database.php
Edit -- https://main.php.net/note/edit/129917
Del: integrated -- https://main.php.net/note/delete/129917/integrated
Del: useless -- https://main.php.net/note/delete/129917/useless
Del: bad code -- https://main.php.net/note/delete/129917/bad+code
Del: spam -- https://main.php.net/note/delete/129917/spam
Del: non-english -- https://main.php.net/note/delete/129917/non-english
Del: in docs -- https://main.php.net/note/delete/129917/in+docs
Del: other reasons-- https://main.php.net/note/delete/129917
Reject -- https://main.php.net/note/reject/129917
Search -- https://main.php.net/manage/user-notes.php