-
-
Notifications
You must be signed in to change notification settings - Fork 74
ArrayIndexOutOfBoundsException in parser #67
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
Comments
Hi, I did not see any Deny of Service factor, in this project. If this bug is used, it will just reject the JSON with an incorrect error message. If you really see a DOS attack here, provide me a proof of concept. |
Upgrading the json-smart version now, may not be the proper time due to #69, a pom file may still be missing from the maven repo. I think the issue is solved but I did not get any confirmation of that. So I prefer to wait 24 hours, and the release of the V2.5.0. If you want to create a new CVE-2021-XXXXXX vulnerability alert do so. |
As I told you, for me, it's not a security issue, and this bug can not cause a DOS attack. by the way, it is fixed in 3 branches
|
@UrielCh this hasn't been applied to the 2.3 branch https://github.com/netplex/json-smart-v2/blob/v2.3/json-smart/src/main/java/net/minidev/json/parser/JSONParserByteArray.java is it possible to get it applied and a new release made? |
upgrading to 2.4 is not enough? I'm waiting for more feedback before making a new release. |
Note that this is tied to CVE-2021-31684 |
I'm using it via spring boot 2.4 who have upgraded to 2.3.1 but my employer still blocks the new 2.3.1 release due to CVE-2021-31684. I've personally excluded and re-added but I believe spring boot will automatically update to a 2.3.2 release with their next patch and then this will be fixed for others as well. |
Same as
netplex/json-smart-v1#10
The code base is at
json-smart-v2/json-smart/src/main/java/net/minidev/json/parser/JSONParserByteArray.java
Lines 77 to 82 in 00955f7
It shouldn't be the
pos
to be checked less thanlen
. Instead, thei
should be checked. The correct way in line 79 is:Any input with unclosed single quotation mark could trigger this. Like the input of
'c
, cause the ArrayIndexOutOfBoundsExceptionThe text was updated successfully, but these errors were encountered: