Advertisement






ApPHP MicroCMS v1.0.1 Host header attack Vulnerability

CVE Category Price Severity
CVE-2020-27630 CWE-20 $500 High
Author Risk Exploitation Type Date
Unknown High Remote 2017-12-27
CPE
cpe:cpe:/a:apphp:microcms:1.0.1
CVSS EPSS EPSSP
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 0.02192 0.50148

CVSS vector description

Our sensors found this exploit at: https://cxsecurity.com/ascii/WLB-2017120285

Below is a copy:

ApPHP MicroCMS v1.0.1 Host header attack Vulnerability
ApPHP MicroCMS v1.0.1 Host header attack Vulnerability
======================================================
Author :  indoushka
Vondor :  http://www.apphp.com/php-microcms/
Dork   :  ApPHP MicroCMS  ApPHP    Admin Login
======================================

Vulnerability description :


An attacker can manipulate the Host header as seen by the web application and cause the application to behave in unexpected ways.
Developers often resort to the exceedingly untrustworthy HTTP Host header (_SERVER["HTTP_HOST"] in PHP). 
Even otherwise-secure applications trust this value enough to write it to the page without HTML-encoding it with code equivalent to:
 
     <link href="http://_SERVER['HOST']"    (Joomla)
...and append secret keys and tokens to links containing it: 
    <a href="http://_SERVER['HOST']?token=topsecret">  (Django, Gallery, others)
....and even directly import scripts from it: 
      <script src="http://_SERVER['HOST']/misc/jquery.js?v=1.4.4">  (Various)
  
This vulnerability affects /phpmicrocms/index.php. 
Discovered by: Scripting (Host_Header_Attack.script). 

Attack details :

Host header evilhostK8kAwlbV.com was reflected inside a A tag (href attribute).

The impact of this vulnerability :

An attacker can manipulate the Host header as seen by the web application and cause the application to behave in unexpected ways.

How to fix this vulnerability :

The web application should use the SERVER_NAME instead of the Host header. 
It should also create a dummy vhost that catches all requests with unrecognized Host headers.
 This can also be done under Nginx by specifying a non-wildcard SERVER_NAME, 
 and under Apache by using a non-wildcard serverName and turning the UseCanonicalName directive on. Consult references for detailed information.

Copyright ©2024 Exploitalert.

This information is provided for TESTING and LEGAL RESEARCH purposes only.
All trademarks used are properties of their respective owners. By visiting this website you agree to Terms of Use and Privacy Policy and Impressum