Specify logging level to Prevent Root DEBUG from Exposing Login

2014-07-17T23:20:21
ID ATLASSIAN:JRA-39173
Type atlassian
Reporter dchan
Modified 2016-09-06T23:24:58

Description

h3. Summary

Setting root level DEBUG can expose login information (username/pw) when JIRA is connected to Crowd for user management, as it outputs the REST POST contents that are transmitted through the HttpClient.

h3. Environment

Crowd integrated with JIRA for user management.

h3. Steps to Reproduce

Integrate JIRA with Crowd for user management

Within JIRA's administration panel, set DEBUG logging on the 'Default' level

Log into JIRA as any Crowd user (for example: testuser / testpw)

Check JIRA's application logs (atlassian-jira.log) or tomcat server logs (catalina.out)

(i) The above log files contains both the testuser and testpw in plain text.

h3. Expected Results

The password details are obfuscated in the logging.

h3. Actual Results

Note that it shows the password inputted by the user, which may or may not be the real pw, but in most cases users will have inputted the real password.

h3. Workaround Modify the log4j.properties file and adding: {code} log4j.logger.httpclient.wire=WARN {code} * This will not prevent this exposure, but simply adds another layer before the exposure occurs.

h3. Notes

This is not specific to just JIRA/Crowd integration. It affects all of Atlassian's applications that integrate with Crowd.

h3. Why this is a problem * It is common for Crowd to be integrated with LDAP or Google Applications * Local Atlassian application administrator only has access to JIRA and the server hosting JIRA ** This administrator may not have access to any other system, such as LDAP, database, etc. * If DEBUG logging on the 'Default' level is set and a high level executive logs into JIRA, their password for LDAP could be captured * The local Atlassian admin can now gain access to the company's systems beyond their privileges.