Skip to content
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

Collection of Recent Reported Bugs for zip4j (2.9.0) #377

Closed
ZanderHuang opened this issue Oct 24, 2021 · 23 comments
Closed

Collection of Recent Reported Bugs for zip4j (2.9.0) #377

ZanderHuang opened this issue Oct 24, 2021 · 23 comments
Assignees
Labels
bug Something isn't working resolved

Comments

@ZanderHuang
Copy link

ZanderHuang commented Oct 24, 2021

Recently we (Zhang Cen , Huang Wenjie and Zhang Xiaohan) found and submitted several bugs of latest zip4j (2.9.0).
For your convenience, here lists the bug summary for all reported bugs (will keep it updated).
Note that each issue is a unique bug (we sorted and refined them from thousands of crashes)
Any discussion about the bugs are welcome.

@ZanderHuang
Copy link
Author

Any updates on the issues mentioned?

@srikanth-lingala
Copy link
Owner

@ZanderHuang No. I will fix all these in the release after the upcoming one. I am about to release the next version of zip4j.

@Han0nly
Copy link

Han0nly commented Jan 27, 2022

Hi @srikanth-lingala, I'm the collaborator of @ZanderHuang. Are you willing to help us to request one CVE ID through GitHub Security Advisories for these bugs, which can cause Denial of Service. You can follow this tutorial to manage your bug fixings and alert any downstream dependencies of the issue so they can patch immediately if using the broken release. Thanks for your help!

@snoopysecurity
Copy link

Why does this github issue have the CVE-2022-24615 (https://nvd.nist.gov/vuln/detail/CVE-2022-24615) assigned to it? these are bugs right, not security issues?

@swxEmily
Copy link

swxEmily commented Mar 3, 2022

any update for new release?

@srikanth-lingala
Copy link
Owner

I had no time to work on zip4j for the last couple of months for personal reasons. I will try to fix them in the next days and will get a release out.

@snoopysecurity I don't understand why the reporter of these issues has decided to raise a CVE for those issues either. They are all bugs, but according to the CVE descriptions, these can apparently be used in a denial of service attack. IMO, a CVE for those bugs is not appropriate. And also, on a more selfish note, having a CVE where it is not applicable hurts the reputation of a library, and discourages the developers like me who put in years of effort behind such projects. Don't get me wrong, as an open source enthusiast, I am all for the security of open source projects, but only where appropriate. So, thanks for raising a good point.

@ZanderHuang Can you explain why those issues are marked as CVE?

@Han0nly
Copy link

Han0nly commented Mar 8, 2022

Hi @srikanth-lingala. We totally support your decision for removing the CVE number of these bugs.
The reason for applying a CVE number before is:

We've seen CVEs for recording bugs of Java libraries (e.g., CVE-2021-27906(apache/pdfbox), CVE-2022-21366(OpenJDK), CVE-2021-36090(Apache Commons Compress)). These are bugs of type Uncaught Exception/Errors, which causes DoS attacks. We followed their process to handle the found bugs of zip4j.

Sorry for the caused inconvenience.

@srikanth-lingala
Copy link
Owner

Since I will fix these issues soon anyway, thats fine for me to leave it as it is.

@snoopysecurity
Copy link

snoopysecurity commented Mar 10, 2022

Ah cool i see @Han0nly, that's makes sense, I always assumed these sort of fuzzer findings are not security issues in memory safe languages such as Java, JS, Python etc but I might be wrong, it could be a issue looking at the refs. Worth providing PoCs and looking at bit into the how impactful it is if this is used as a library on a application etc and mentioning with the maintainer about the CVE before applying.

Also linking into to the CWE etc might help as well. E.g. CWE-129 could be ArrayIndexOutOfBoundsException etc. Having CVEs for findings should be fine but without enough proof and maintainer ack, it mostly becomes noise for maintainers and users of the project hence I asked.

@shdb1
Copy link

shdb1 commented Mar 21, 2022

Hi @srikanth-lingala - What is the rough time estimated to publish the version with the fixes for raised CVE.

@srikanth-lingala
Copy link
Owner

@shdb1 I am trying my best to get these issues resolved in the extremely limited free time that I have currently. I will try to get a release out by end of this month (~ 10 days left to go), but I cannot guarantee that though.

@shdb1
Copy link

shdb1 commented Mar 21, 2022

Thanks @srikanth-lingala

@srikanth-lingala srikanth-lingala self-assigned this Mar 22, 2022
@srikanth-lingala srikanth-lingala added in-progress bug Something isn't working resolved and removed in-progress labels Mar 22, 2022
@srikanth-lingala
Copy link
Owner

All issues are now fixed. I will include them in the next release which should be out in a couple of days.

@shdb1
Copy link

shdb1 commented Mar 24, 2022

@srikanth-lingala Thank you so much.

@attritionorg
Copy link

@srikanth-lingala Thanks for the fixes. Can you link to the fixing commits for the issues that have CVEs? It would be very helpful to have that 1:1 mapping.

@srikanth-lingala
Copy link
Owner

@attritionorg I commit with the issue number in the fix, so github automatically links the issue to the commit. Just open any issue and you will find a commit linked to it that fixed that issue. If there is no commit in the fix, this means that that issue was fixed as part of a different issue already, in which case I usually mention the commit/issue that fixed it.

@attritionorg
Copy link

This issue doesn't link to one and I don't see a commit that references it in the title, is why I asked.

@andrecs-br
Copy link

commits are on the child issues... this one here is just a group of the other issues, like an epic.

@srikanth-lingala
Copy link
Owner

All issues fixed in v2.10.0 released today

@andrecs-br
Copy link

Do you know when they will be in maven central repository!?

@srikanth-lingala
Copy link
Owner

@andrecs-br
Copy link

Awesome! Thank you!

@shdb1
Copy link

shdb1 commented Mar 30, 2022

Thanks @srikanth-lingala for releasing version .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved
Projects
None yet
Development

No branches or pull requests

8 participants