Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve GHSA-xwf4-88xr-hx2j #2826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

wtwhite
Copy link

@wtwhite wtwhite commented Oct 7, 2023

Updates

  • Affected products

Comments
Several other components are also affected as a result of cloning (copying source code) or shading (copying source code and renaming packages). Proof-of-Vulnerability projects with tests to verify the presence of the CVE can be found here: https://github.com/jensdietrich/xshady-release/.

See #2258, especially #2258 (comment), for more details.

@github-actions github-actions bot changed the base branch from main to wtwhite/advisory-improvement-2826 October 7, 2023 03:08
@darakian
Copy link
Contributor

darakian commented Oct 9, 2023

Given that this is in the same group id as the base package do you know if this has been fixed and if so do you know of a fix commit?

@wtwhite
Copy link
Author

wtwhite commented Oct 9, 2023

Hi @darakian,

do you know if this has been fixed and if so do you know of a fix commit?

Not as yet. There is one later version available in the Maven Central Repo (1.1.0), but I was not able to get the proof-of-vulnerability test code to run on it at all.

If it would help I can try harder to get this running? That would tell us whether there it's fixed there or not.

@wtwhite
Copy link
Author

wtwhite commented Oct 10, 2023

Hi @darakian,

We were able to confirm that the next (and only) version available on the Maven Central Repo, namely 1.1.0, is not vulnerable, so I've added a "fixed": "1.1.0" entry in b236a07. Is this PR now good to go?

We confirmed this by manually tweaking the PoV pom.xml -- I've put the working version at https://github.com/jensdietrich/xshady-release/tree/main/CVE-2016-5394/NOT-VULNERABLE/org.apache.sling__org.apache.sling.xss.compat__1.1.0. Gory details in jensdietrich/xshady-release#2 (comment) and later comments.

@darakian
Copy link
Contributor

Well, I'd like to find a fix commit in the source code if possible, but looking at the commit log it seems like possibly this one
apache/sling-org-apache-sling-xss@de32b14
Does that align with what you're seeing?

@wtwhite
Copy link
Author

wtwhite commented Oct 10, 2023

@darakian Yes it does, based on eyeballing the diff for pom.xml -- thank you for that! Also we know that the version mentioned in the commit message, 1.0.18, is not vulnerable since the vulnerability was fixed in 1.0.12 of org.apache.sling:org.apache.sling.xss.

OTOH I notice your link shows me "This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository". But if you're happy with that, we're happy!

@darakian
Copy link
Contributor

I think the git issues stem from the github repo being a mirror of an svn repo
http://svn.apache.org/viewvc/sling/tags/org.apache.sling.xss.compat-1.1.0/

Comparing the 1.1.0 and 1.0.0 tags shows a single commit with no diff
apache/sling-org-apache-sling-xss@org.apache.sling.xss.compat-1.1.0...org.apache.sling.xss.compat-1.0.0

@wtwhite
Copy link
Author

wtwhite commented Oct 11, 2023

@darakian I see the same empty diff as you, however if I manually look at the top-level pom.xml file at each revision, I see differences between them:

@wtwhite
Copy link
Author

wtwhite commented Oct 11, 2023

@darakian I just changed ... to .. in the comparison URL and now I can see the differences I was expecting: https://github.com/apache/sling-org-apache-sling-xss/compare/org.apache.sling.xss.compat-1.1.0..org.apache.sling.xss.compat-1.0.0

My guess is the SVN import means there's no well-defined "merge base" for the 3-dot form to use?

@darakian
Copy link
Contributor

Oh interesting. Ya, that's a reasonable assumption. I'm not super familiar with the difference between the two forms, but that's an aside for sure. Thanks for digging into this with me 👍

@advisory-database advisory-database bot merged commit 737441f into github:wtwhite/advisory-improvement-2826 Oct 11, 2023
@advisory-database
Copy link
Contributor

Hi @wtwhite! Thank you so much for contributing to the GitHub Advisory Database. This database is free, open, and accessible to all, and it's people like you who make it great. Thanks for choosing to help others. We hope you send in more contributions in the future!

@wtwhite wtwhite deleted the wtwhite-GHSA-xwf4-88xr-hx2j branch October 11, 2023 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants