-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
cJSON_Minify cross-border read&write 2 #338
Comments
I'm confused, why did you highlight me? What can I help you with? |
sorry, when i type '@', your name auto appear, I thought you are admin of cJSON |
Ah, I see, no, I'm not, sorry for that. |
Sorry for taking so long to respond. It has been hard to find any free time to work on this lately. |
There is indeed a problem here and looking at cJSON_Minify a bit more I think there is at least one more.
|
Fix a bug where cJSON_Minify could overflow it's buffer, both reading and writing: DaveGamble/cJSON#338. Signed-off-by: Fabrice Fontaine <[email protected]> Signed-off-by: Thomas Petazzoni <[email protected]>
Fix a bug where cJSON_Minify could overflow it's buffer, both reading and writing: DaveGamble/cJSON#338. Signed-off-by: Fabrice Fontaine <[email protected]> Signed-off-by: Thomas Petazzoni <[email protected]> (cherry picked from commit a45a399) Signed-off-by: Peter Korsgaard <[email protected]>
Has anyone requested a CVE for this yet? Just saw CVE-2016-10749 finally get published for a different issue? |
CVE-2019-11835 was assigned for this issue. |
https://github.com/DaveGamble/cJSON/blob/master/cJSON.c : 2669
this bug can delete \x00, cross-border read&write, and if use str* API result will fault, cause some logical problem, such as stack&heapoverflow, leak info etc..
this should be code as below:
just leak stack data for test
server.c
client just send data(15bytes, not buf overflow) as below,
output:
The text was updated successfully, but these errors were encountered: