JQuery version is exposed
How To articles are not official guidelines or officially
supporteddocumentation. They are community-contributed content and may
not alwaysreflect the latest updates to Liferay DXP. We welcome your
feedback toimprove How to articles!
While we make every effort to ensure this Knowledge Base is accurate,
itmay not always reflect the most recent updates or official
guidelines.We appreciate your understanding and encourage you to reach
out with anyfeedback or concerns.
Legacy Article
You are viewing an article from our legacy
"FastTrack"publication program, made available for
informational purposes. Articlesin this program were published without a
requirement for independentediting or verification and are provided
"as is" withoutguarantee.
Before using any information from this article, independently verify
itssuitability for your situation and project.
Issue
- Possible information leakage by disclosure of the used JQuery version in the loaded JS files.
Resolution
-
Hiding the version in JQuery is against the the license, where they explicitly wrote that "You are free to use the Project in any other project (even commercial projects) as long as the copyright header is left intact".
-
If we trim that part of the code, you can still retrieve the information about the version through the browser console with jQuery().jquery or $.fn.jquery or jQuery.fn.jquery **
-
An attacker could figure out the version of the library by comparing files or just checking public Liferay repository, because we are open source, and by inspecting our Github repository, they are going to get this information.
-
At Liferay we are committed to fight against security vulnerabilities, and regarding third-party libraries, we do it keeping them updated as soon as any vulnerability is reported in the version we are using.
- If you have detected some vulnerability in the current jQuery or any other third-party library, please let us know, so we can analyse it, and we can update them to a safe version.
Did this article resolve your issue ?