Skip to content

hjson-lua vulnerable to denial of service #5

@scacaca

Description

@scacaca

Summary

hjson-lua vulnerable to denial of service Cause by crafted input。

Description

An issue in hjson-lua allows attackers to cause a Denial of Service (DoS) via supplying a crafted JSON string to string a StringIndexOutOfBoundsException.

There is a similar vulnerability
The relevent code is in file1
eg. the local function parseMultilineString(s, _end)

Patch

The fix logic can be similar to this

Credit

The vulnerability was discovered by chaojie Xiong (FUDAN University, sslwork2023 @163.com)
mingda GUO(FUDANUniversity,22110240064@m.fudan.edu.cn)
zhang Lei(fUDAN University,zxl@fudan. edu.cn)
DongLai Zhu(FUDAN University)
YangchacLiu(FUDAN University,23210860056@m.fudan.edu.cn)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions