I think I now understand your question a little better.
if perhaps someone discovers the username and password (basic authorization) of my wampserverWell if someone does gain access to the account you use on your PC i.e your userid and password then, yes they can do anything that your user account is allowed to do.
However, this is in no way a WAMPServer issue. This is to do with your own PC security, a totally different and unrelated issue.
I would also like to take this opertunity to remind you that WAMPServer is intended as a Developer tool and not a LIVE web server environment. It can be used as such, but only if you know enough to harden Apache against attacks of all natures. This should only be undertaken if you truely know what you are doing with Apache and its associated tooling.
Using WAMPServer, or any web server, as a LIVE webserver is also a very bad idea if you are hosting the server on a Desktop/Laptop PC. The limitations applied to a NON-Server Windows OS are such that there is a limit of 30 concurrent remote connection. This makes a non-server Windows OS almost completely useless unless you dont expect more than 4 or 5 users to ever want to access your site at any one time. So it can be used to allow a client to UAT your work for example, but not run as a high use LIVE webserver.
I am also a little worried by the answer you seem to think was a good one that you got from StackOverflow. If you limit the account to read only, then how are you going to amend/upgrade code on your site? How would you write to a file on your server, for example: write a SESSION file, uploaded an image, or create a PDF file or any of the other 1000 things a site may want to write to a disk system for its own use.
As WAMPServer has to run with higher privilages that a normal user in order to function i.e. Register services and Start and Stop services be careful limiting this account in any way.
---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>Read The Manuals Apache --
MySQL --
PHP --
phpMyAdminGet your Apache/MySQL/mariaDB/PHP ADDONs here from the
WAMPServer alternate Repo-X-X-X-
Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-