question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Always sanitize unless explicitly told not to

See original GitHub issue

I want Quasar to be secure by default so I’m starting this discussion to get options like display-value-sanitize deprecated in favor of no-display-value-sanitize.

In the security section you read stuff like

If you are not customizing menu-related scoped-slots (i.e. option scoped slot), DO prevent the component from rendering HTML in the labels and sublabels with one or more of the sanitize properties.

and

Many developers have asked that the Loading plugin be able to display HTML, so this was enabled by default, but if you are worried, DO add sanitize: true and you removed the vector.

You can also read that components that are made for displaying user-supplied data like QChatMessage is allowing XSS attacts by default.

This is in my opinion crazy. It will give Quasar a bad reputation because most developers don’t read docs for intuitive frameworks unless they see a problem. Forgetting to sanitize is in most cases an invisible problem but seeing plain text html when you want it to render is not.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
rstoenescucommented, Oct 6, 2020

@rognstad Done. Quasar 2 (with Vue 3) will sanitize by default unless not told to.

0reactions
rognstadcommented, Oct 6, 2020

I’m strongly in favor of a breaking change on this with Quasar v2.

At a minimum, it seems like the QSelect and QChatMessage docs should have a huge red warning at the top of the page that they are insecure by default. (And sorry to necro this 😕)

Read more comments on GitHub >

github_iconTop Results From Across the Web

When and How to Clean and Disinfect a Facility - CDC
If you do sanitize or disinfect, clean surfaces first because impurities like dirt may make it harder for sanitizing or disinfecting chemicals ...
Read more >
Safe Sanitizing and Disinfecting - Safe Food & Water
Use cool Always add bleach to water (do not add water to bleach). Always label bottles of bleach solution clearly with the name...
Read more >
Are disinfectants harmful to children? Can children apply ...
Disinfectants are powerful tools for controlling the spread of disease, and they can harm children's health if used or stored incorrectly.
Read more >
Cleaning and Sanitizing
Does not require a potable water rinse. 4. States that the product will sanitize. If a product is a detergent/sanitizer, it must.
Read more >
Can you be too clean? - BBC Future
Having said that, there is still no convincing proof that the lack ... Always consult your own GP if you're in any way...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found