Frequent logouts and Session swap / hijack in JIRA

This problem has been resolved, adding it here if others encounter it ...

Poblem: Frequent logouts and sessions getting swapped (or hijacked) for some logged in users. When session swap / hijack happens you would see someone else's name as logged in user on top right and if you do not notice and create an issue or comment, it will go as the other user. Conversely, you may find an issue or comment created by your name but you didn't do it.

Environment: JIRA 6.0.x with Apache 2.2.15 as reverse proxy on CentOS 6.2

1 answer

1 accepted

CAUSE
We use Apache as reverse proxy (mod_proxy) for JIRA server as it handles ssl and talks to JIRA at port 8080 via ProxyPass. We were also using mod_cache's disk based caching for all urls. Use of mod_cache is known to create problem of session mix ups when Apache is used as reverse proxy with JIRA (see links below). Since Apache had been running possibly as long as the uptime of JIRA server which is 101 days, its cache got into a bad state as seen by errors in ssl_error_log file mentioned below, creating a situation where it started to either drop or mix up JSESSIONID cookie sent by JIRA to client. This results in logout of client or worse session mixups.

Error in ssl_error_log
[Thu Jun 06 23:02:05 2013] [error] (103)Software caused connection abort: cache: error returned while trying to return disk cached data
Links pointing to this problem
RESOLUTION

Restart of Apache itself fixed the issue, but for future following lines have been commented in /etc/httpd/conf/httpd.conf, which is also recommended configuration.

#<IfModule mod_disk_cache.c>
# CacheEnable disk /
# CacheRoot "/var/cache/mod_proxy"
#</IfModule>

Won't this affect performance on the UI? We are having this issue (3 hi-jacks in the past 2 weeks) and the security risk it presents is a big deal at my company. But as the admin, I am very concerned about doing anything that may slow the app down. We are already having rendering issues frequently (probably because we are all on the latest dev Chrome).

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,815 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot