Skip to content
Info disclosure Disclosed report Beginner

JetBrains .idea project directory

A JetBrains .idea project configuration directory was left accessible on a production web server, exposing workspace.xml. An attacker could read this file to learn about the developer's environment, changed files and other project details that help plan further attacks.

linkks Follow

Originally disclosed on HackerOne

  • Fixed in 44 hours
  • Paid in 44 hours
  • Disclosed after 4.1 years

Vulnerability description The .idea directory contains a set of configuration files (.xml) for your project. These configuration files contain information core to the project itself, such as names and locations of its component modules, compiler settings, etc. If you've defined a data source the file dataSources.ids contains information for connecting to the database and credentials. The workspace.xml file stores personal settings such as placement and positions of your windows, your VCS and History settings, and other data pertaining to the development environment. It also contains a list of changed files and other sensitive information. These files should not be present on a production system. This vulnerability affects /. Discovered by: Scripting (JetBrains_Idea_Project_Directory.script). Attack details workspace.xml project file found at : /.idea/workspace.xml Pattern found: <project version="4">

Request GET /.idea/workspace.xml HTTP/1.1 Cookie: Vanilla-tk=5bf318378b39b486 Host: forum-es.ubnt.com Connection: Keep-alive Accept-Encoding: gzip,deflate User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21 Accept: /

Response HTTP/1.1 200 OK Accept-Ranges: bytes Content-Type: application/xml Date: Thu, 06 Aug 2015 15:24:12 GMT ETag: "4c42-51bf15d10be80-gzip" Last-Modified: Tue, 28 Jul 2015 15:45:46 GMT Server: Apache/2.4.7 (Ubuntu) Vary: Accept-Encoding Content-Length: 19522 Connection: keep-alive Original-Content-Encoding: gzip

The impact of this vulnerability These files may expose sensitive information that may help an malicious user to prepare more advanced attacks.

How to fix this vulnerability Remove these files from production systems or restrict access to the .idea directory. To deny access to all the .idea folders you need to add the following lines in the appropriate context (either global config, or vhost/directory, or from .htaccess): <Directory ~ ".idea"> Order allow,deny Deny from all </Directory>

http://www.ducea.com/2006/08/11/apache-tips-tricks-deny-access-to-some-folders/

The original report as published on HackerOne, by linkks. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the project's .idea configuration directory was deployed to the production web root and the web server was not configured to deny access to it.

Impact

The exposed file may reveal sensitive information that could help an attacker prepare more advanced attacks.

What the attacker needed

None

The fix

The .idea directory should be removed from production systems or access to it should be denied at the web server level.

How it was found

  1. Send a request for the .idea/workspace.xml path on the target host.
  2. Observe that the server returns the file with a 200 status and XML content.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When developers use JetBrains tools like IntelliJ or WebStorm, the tool creates a hidden folder called .idea inside the project with settings files. If that folder is uploaded to a live website by mistake, anyone can open those files in a browser. They can reveal things like file names, editor settings and sometimes database connection details.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by linkks

View all

20 more disclosed reports, best first.

More from Ubiquiti Inc.

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.