Atlassian fingerprinting Jira or Confluence version as unauthenticated user

The Atlassian Jira or Confluence version can usually only be identified when logged in.
However, there is a way to apply a fingerprint to the Tomcat version by provoking an Tomcat error message.
Here is just one way for each.

On a Confluence server, you can force the error by querying the activity stream and using a null byte for the query parameter maxResults=%00 to get Apache Tomcat 400 error page stating the used Tomcat version.

wget https://domainname/rest/dashboardmacros/1.0/updates?maxResults=%00&tab=all&showProfilePic=true&labels=&spaces=&users=&types=&category=&spaceKey=

For a Jira server, call the contact administrator function with an simple HTTP GET instead of POST Request to get Apache Tomcat 405 error page stating the used Tomcat version.
It doesn’t matter whether the feature or the mail account is activated. We simply need the HTTP GET Method to an unprotected function

wget https://domainname/secure/ContactAdministrators.jspa

Atlassian usually updates the Tomcat version soon, at latest when a security update is included.
An enumeration based on shown Tomcat version means

For Confluence

Tomcat versionRelease date-->Confluence versionRelease date
9.0.762023-06-09-->8.5.021-Aug-2023
9.0.762023-06-09-->8.5.105-Sep-2023
9.0.762023-06-09-->8.5.203-Oct-2023
9.0.822023-10-13-->8.5.330-Oct-2023
9.0.822023-10-13-->8.5.405-Dec-2023
9.0.832023-11-15-->8.5.516-Jan-2024
9.0.832023-11-15-->8.5.608-Feb-2024

For Jira

Tomcat versionRelease date-->Jira versionRelease date
9.0.732023-03-03-->9.4.827-Jun-2023
9.0.752023-05-10-->9.4.931-Jul-2023
9.0.752023-05-10-->9.4.1005-Sep-2023
9.0.802023-08-25-->9.4.1104-Oct-2023
9.0.822023-10-13-->9.4.1208-Nov-2023
9.0.822023-10-13-->9.4.1305-Dec-2023
9.0.822023-10-13-->9.4.1405-Dec-2023
9.0.842023-12-12-->9.4.1503-Jan-2024
9.0.842023-12-12-->9.4.1607-Feb-2024
9.0.842023-12-12-->9.4.1712-Feb-2024

This is not a real vulnerability, but the fingerprint should be avoided. I reported the issue to Atlassians security e-mail contact and was requested to open a bugcrowd issue.
I don’t necessarily want to qualify for a reward, I want a secure software.
I have suggested a solution by using a modified Tomcat ServerInfo.properties.
Bugcrowd closed shortly the issue as P5 informational only.

Disclaimer

The information provided is released “as is” without warranty of any kind. The publisher disclaims all warranties, either express or implied, including all warranties of merchantability. No responsibility is taken for the correctness of this information. In no event shall the publisher be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if the publisher has been advised of the possibility of such damages.

The contents of this advisory are copyright (c) 2024 by psytester and may be distributed freely provided that no fee is charged for this distribution and proper credit is given.

Written on March 1, 2024 | Last modified on March 1, 2024