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

Apostrophes are removed from the original title #34

Open
interfect opened this issue Apr 7, 2021 · 1 comment
Open

Apostrophes are removed from the original title #34

interfect opened this issue Apr 7, 2021 · 1 comment

Comments

@interfect
Copy link

The original page title is passed through the sanitizer before being used to compose the new title, which removes, among other things, the ' character. So any page titled like "Ash's Profile" will become something like "Ashs Profile - facespace.biz/".

Apostrophes in the original title should be retained.

@erichgoldman
Copy link
Owner

Hi @interfect sorry for the late reply.

The current sanitizer is admittedly primitive, probably a holdover from very early work on the code.

Reviewing it usage, I think a lingering concern would still be some type of second-order attack - e.g., even without output encoding, some tool reading the text may process it as plaintext and that could cause some type of execution (i.e., harmless in the browser, but dangerous downstream). Even with encoding, we may actually want to be more aggressive and look at things like newline injection to trigger different matching downstream.

I am going to leave this ticket open for now and I am going to reinvestigate the threat model and usage in more detail in the future. For right now, for the majority of users this might be an inconvenience, but not a blocker. For more use cases, you will be selecting the text in the other program, so while this would change expectation it shouldn't impact usability for majority of users (e.g., in KeePass, one selects the string they want to match manually)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants