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

DoS attack caused by segmentation fault #18

Closed
Helson-S opened this issue May 5, 2024 · 1 comment
Closed

DoS attack caused by segmentation fault #18

Helson-S opened this issue May 5, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Helson-S
Copy link

Helson-S commented May 5, 2024

Description

Denial-of-Service (DoS) Vulnerability of taurusxin ncmdump v1.3.2 allow a remote attacker to break ncmdump online service via the crafted .ncm files.

Attack vectors provided in poc will trigger segmentation fault caused by illegal read access. The crash point is at ncmdump/src/ncmcrypt.cpp:251, a function call to NeteaseCrypt::FixMetadata(). Coredump file is provided in ./coredumps.

See also https://github.com/Helson-S/FuzzyTesting/blob/master/ncmdump/dos_FixMetadata/dos_FixMetadata.md

Reproduction

Run the following command:

./bin/ncmdump ./poc/I1DWE0~U; cp ./poc/origin/I1DWE0~U ./poc/I1DWE0~U

Postscript: To successfully reproduce it, one need to run the command for several times.

Screen-shot

Crash:
crash

Debug coredump:
debug-coredump

@Helson-S Helson-S added the bug Something isn't working label May 5, 2024
@taurusxin
Copy link
Owner

Any codes to fix it?

Fixing metadata need taglib, seems the bug is caused by taglib.

@taurusxin taurusxin closed this as not planned Won't fix, can't repro, duplicate, stale May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants