macOS

Critical Ghostcat Vulnerability Allows Attackers to Inject any Files in Tomcat Webapp Directories – Affects All version

Tomcat is the widely used application server designed to execute Java servlets and render web pages using JavaServer Pages script.

The Ghostcat is a serious flaw with the Apache-Tomcat server discovered by security researcher Chaitin Tech. It affects all the versions of Tomcat with the default configuration.

Ghostcat

The flaw resides in the Tomcat AJP connector which is the channel used by Tomcat to receives the request from outside. The connector enabled in Apache/Tomcat server via port 8009.

By exploiting the vulnerability attacker can read or include any files in the webapp directories of Tomcat.

The attacker can read the source code files of the web application and if the web application has an upload function, the attacker may execute malicious code.

If the AJP connector is enabled in the server, then there is a risk of being exploited by the Ghostcat vulnerability.

To note the AJP Connector is enabled by default and listens at port 8009. AJP protocol is used as a performance-optimized version of the HTTP protocol.

If you are not using AJP Connector it is recommended to safely comment out or delete the declaration from the server.xml configuration file.

Vulnerabilities Fixed with Following versions

  • Apache Tomcat 9.x < 9.0.31
  • Apache Tomcat 8.x < 8.5.51
  • Apache Tomcat 7.x < 7.0.100
  • Apache Tomcat 6.x

Here you can find Chaitin Tech blog post details about upgrading and how to configure “secret” attribute with the AJP Connector.

You can find the online vulnerability scanning tool here.

Follow on Twitter for Daily cyber security & hacking news updates: Cyber Security News

Guru Baran

Gurubaran KS is a cybersecurity analyst, and Journalist with a strong focus on emerging threats and digital defense strategies. He is the Co-Founder and Editor-in-Chief of Cyber Security News, where he leads editorial coverage on global cybersecurity developments.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

3 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

4 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

5 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

5 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

5 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

7 hours ago