How to Install Adminer on Ubuntu Server

If you’re looking for a simple-to-use web-based GUI for administering your relational MySQL databases and then some, Adminer may be what you’re looking for. Continue reading How to Install Adminer on Ubuntu Server

SSH to a public account which is forced to run a PHP script. What additional security measures do I need to take?

I have an Ubuntu server with a user "demo". The user has been setup to run a php script on login with usermod demo -s /path/to/php/script.php. The password for the demo account will be public, so anyone can use it.
The PHP script… Continue reading SSH to a public account which is forced to run a PHP script. What additional security measures do I need to take?

PHP exploit attempt using User-Agent header: base64 encoded string containing a serialised PHP object [closed]

I encountered a funny User-Agent header that is a Base64 encoded value of a serialised PHP object. It was only by chance that it didn’t fit in the MySQL field where such agents are logged, resulting in an error logged in Sentry.
This is li… Continue reading PHP exploit attempt using User-Agent header: base64 encoded string containing a serialised PHP object [closed]

Best practices for storing passwords for PHP and MySQL applications [duplicate]

I am creating a simplified lead and call management system for a friend’s small business.
I would like to know the best practices for hardening password storage and verification using PHP 7.4 and MySQL 7.4.30.
I would like something very s… Continue reading Best practices for storing passwords for PHP and MySQL applications [duplicate]

Best way to store user input that has HTML tags and <script> tags and display it on client side as is but still being safe from mainstream attacks

I am new to web security, and I need your help in confirming things. As the title says, I am looking for and researching for a safe way to take in user input that may contain special characters/HTML/bbcode/script tags and safely store it i… Continue reading Best way to store user input that has HTML tags and <script> tags and display it on client side as is but still being safe from mainstream attacks