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

[Bug] Sanitize input from YouTube Search term #278

Closed
1 task done
Elendil211 opened this issue Oct 25, 2022 · 2 comments
Closed
1 task done

[Bug] Sanitize input from YouTube Search term #278

Elendil211 opened this issue Oct 25, 2022 · 2 comments
Assignees
Labels
bug Something isn't working invalid/out-of-scope This doesn't seem right (or out of scope)

Comments

@Elendil211
Copy link

Elendil211 commented Oct 25, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The symbols " and ' appear to not be properly escaped when put into the input field. There might also be others. This leads to crashes, and weird behavior. Escaping the symbols with \ leads to the expected behavior.

It might also be possible to use this for code execution, which could be a security issue if there is a malicious title on Spotify.

Expected Behavior

The search term should be forwarded to youtube in the exact same form as it was put into the field.

Steps To Reproduce

Try to use $MAIN_ARTIST $TITLE $FEATURED_ARTISTS, description:"Auto-generated by YouTube." as search term. The app crashes. Try $MAIN_ARTIST $TITLE $FEATURED_ARTISTS, description:\"Auto-generated by YouTube.\", and the results are very good. (I would also suggest to use this search term by default. It makes the search use YouTube music if possible, which dramatically improves the quality of the results. #32)

Spotube Version

2.5.0

Operating System

Linux

Linux Distribution (if applicable)

Arch Linux

Operating System Version

rolling

Installation Source

Flathub (Flatpak)

Additional information

Also affects Android.

@Elendil211 Elendil211 added bug Something isn't working good first issue labels Oct 25, 2022
@KRTirtho
Copy link
Owner

This feature has been removed in favor of "Alternative Track Source Selection"

@KRTirtho
Copy link
Owner

Available in the latest nightly. And will be released in stable soon

@KRTirtho KRTirtho added the invalid/out-of-scope This doesn't seem right (or out of scope) label Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid/out-of-scope This doesn't seem right (or out of scope)
Projects
None yet
Development

No branches or pull requests

2 participants