-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2019.2070
                      CSRF in Wampserver 3.1.4-3.1.8
                               11 June 2019

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           WampServer
Publisher:         WampServer
Operating System:  Windows
Impact/Access:     Cross-site Request Forgery -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2018-8817  

Original Bulletin: 
   http://forum.wampserver.com/read.php?2,138295,155552#msg-155552

- --------------------------BEGIN INCLUDED TEXT--------------------

Affected product:
WampServer 3.1.4-3.1.8

Offical description:
"WampServer is a Windows web development environment. It allows you to
create web applications with Apache2, PHP and a MySQL database.
Alongside, PhpMyAdmin allows you to manage easily your databases."

Official website:
http://www.wampserver.com/en/

Vulnerability description:
The add_vhost.php script in the administration panel of Wampserver was
vulnerable to Cross Site Request Forgery (CVE-2018-8817 -
https://www.exploit-db.com/exploits/44385) in WampServer 3.1.2 and
below.
The synchronizer pattern added as remediation was not implemented
properly, so that WampServer 3.1.3 - 3.1.8 were still vulnerable to
CSRF; attackers could abuse this flaw to get new vhosts added or
existing ones deleted in the Apache configuration file.
Technical requirement of successful exploitation is that the admin has
not opened the add_vhost.php file in the current browser serssion yet
(so the random tokens are not initialized).

Proof of concept form to expose drive c:\:

<form name="csrfWamp" method="post"
action="http://localhost/add_vhost.php?lang=english">
 <input type="text" name="vh_name" value="whatever.com">
 <textarea type="text" name="vh_folder">c:///</textarea>
 <input type="hidden" name="checkadd" value="">
 <input type="submit" name="submit" value="Start!">
</form>

Fixed WampServer version:
3.1.9

Official changelog:
http://forum.wampserver.com/read.php?2,138295,155552#msg-155552

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBXP8foGaOgq3Tt24GAQjShg//fsnmMYN+Ye9H05Usm6asGVrmW5P+WUF5
qR2Du7Z9SIZD/Id5goNofhctodhf3ztiWS+hu81KCIPDYVFdYebl8mYUejN1pemA
w0DtxdheNDNIuOH+jVW4gToxb9oVL/3Ra9PuoOkINwrtI/6zIH100y93Or5bJf6M
HbBZsg6r6KJl16D9empUNDC6cMkTQjRScdMC7UzrXQo8413ro+5r4xRWwTtXpTTk
vqyLL8jXhg6eYhB4eaknojtIucrNNITeCT7OCExA7rMEvI6bCT+pvF18Y9sutSDU
B5GoREiEWFc408YnqHe1R3m2PNv8MQcn+fl2XMLPXmdxdpjMxDCcVw7K+4IqCh/V
09vP+h7PvQw7UwktsbsJ+mvj6gHbC3keyxfheEzKuCBC+2WnPhkRh4C0W8cWLx+I
bAyk7RZEPzig9UPctZYH3jwfozqyx94ygghoRUXfDXA1Mi3e7MaJPzAABKMepugx
gVwWLtj/smuL2dQqQkS3sijMlf8rqJ+YN+z50deP2qjQEAIRKEqnNavOHWrAMds2
Y2K/QdmJ3WyyGwu3ydpuZf7IZLNji1jewyQMrJCBnP90RLcg1mCen1WF1LhHMBeH
psCSCOB+bZnJG+bxvGdN92j8VfW4mGbjXzLrkEKW3pClepa9dZFz6R+x/8JWofji
IGoleZKEZ24=
=7nCw
-----END PGP SIGNATURE-----