GithubHelp home page GithubHelp logo

Comments (26)

DanielRuf avatar DanielRuf commented on July 26, 2024 1

@materializecss/members

from materialize.

Pierstoval avatar Pierstoval commented on July 26, 2024 1

Done in #38

from materialize.

Smankusors avatar Smankusors commented on July 26, 2024

oh man, thanks for continuing the development of materialize 😄

Ehm I have this 2 years old pull request

Should I rewrite this pull request for this fork? 🤔

from materialize.

DanielRuf avatar DanielRuf commented on July 26, 2024

oh man, thanks for continuing the development of materialize 😄

Thanks, we all try our best to bring it a bit forward in our vailable free time.

Ehm I have this 2 years old pull request

I was not aware of this, good catch.

Should I rewrite this pull request for this fork? 🤔

Yes, this would be great and very helpful.

from materialize.

Smankusors avatar Smankusors commented on July 26, 2024

Yes, this would be great and very helpful.

alright #9 it is 🙌

from materialize.

DanielRuf avatar DanielRuf commented on July 26, 2024

Dogfalo#5725 was mentioned in the community room.

from materialize.

ChildishGiant avatar ChildishGiant commented on July 26, 2024

It's probably worth taking a look at Dogfalo#4391 (Dogfalo#1892) for the next feature release.

from materialize.

doughballs avatar doughballs commented on July 26, 2024

Where are we up to regarding the select issue? That's a biggie - has it been raised/solved for the fork?

(The issue is the wrong item being selected on iOS, the fix being to served an entire patched JS file after materialize.js)

from materialize.

Smankusors avatar Smankusors commented on July 26, 2024

Where are we up to regarding the select issue? That's a biggie - has it been raised/solved for the fork?

(The issue is the wrong item being selected on iOS, the fix being to served an entire patched JS file after materialize.js)

hmm I think this is issue #31. There's already a commit Dogfalo@c0da340, but it's not released officially yet.

from materialize.

DanielRuf avatar DanielRuf commented on July 26, 2024

Correct, Dogfalo@c0da340 should be already in the current code.

from materialize.

Pierstoval avatar Pierstoval commented on July 26, 2024

I haven't checked, but are the current CVEs resolved on the fork?

They are related to XSS flaws:

from materialize.

DanielRuf avatar DanielRuf commented on July 26, 2024

are the current CVEs resolved on the fork

Probably not, as fixing these would break many things as I have outlined many times (see the linked GitHub issues in the original repo). Nothing what we will do in a 1.x.x release.

Also the people who reported these findings did not provide valid PoCs that could be used by attackers in valid scenarios.

from materialize.

Pierstoval avatar Pierstoval commented on July 26, 2024

It's a bit sad that these warnings will continue to spawn on projects that are using Materialize 😕

I just saw the discussion in Dogfalo#6331 and Dogfalo#6286, this explains a lot, but is still a complex subject.

Since this repository is "new", and the package will be new on NPM, maybe the vulnerability won't be registered at all, let's see 🤔

from materialize.

Pierstoval avatar Pierstoval commented on July 26, 2024

Still, I think input data should be sanitized by default, with a simple option in the components, and user should be able to disable it in case they want to use HTML.

from materialize.

DanielRuf avatar DanielRuf commented on July 26, 2024

Still, I think input data should be sanitized by default, with a simple option in the components, and user should be able to disable it in case they want to use HTML.

But not in a minor or patch release as this will lead to unexpected consequences like broken code and developers need to be aware of this breaking change then.

We can do that in a 2.0.0 release which deprecates / removes and changes the behavior as you suggest.
But so far: developers should sanitize the data as needed. If you put your $_GET["var"] in the templates without sanitizing the data, you have a general problem regarding security.

In v1.x we can start adding warnings to the console (and hope that developers see/read them) and mention the deprecation/change in the future.

In general I would also suggest we create a documentation page about this and recommend solutions for sanitizing data with a few examples. How and what you sanitize depends on your implementation and software stack (PHP, JS, Java, ...) and where you retrieve and sanitize it.

from materialize.

DanielRuf avatar DanielRuf commented on July 26, 2024

Regarding this statement:

I noticed there's no patch version. As @kiere said, some clients don't really like the fact that we use a library with vulnerabilities, and even if I may not care (for a personal project for example), and I don't like enterprises' protocols, well, a project that's blocked because some QA says that "a package is vulnerable" is an issue anyway.

Well, jQuery < 3.x has a few vulnerabilities (like XSS) but you can not patch them without breaking stuff and these versions reached their EOL. That's why I've created https://github.com/DanielRuf/snyk-js-jquery-174006 and https://github.com/DanielRuf/snyk-js-jquery-565129 which are backported patches. And these are used by many like Drupal, WordPress, TYPO3, Magento and so on. Still, the Chrome Lighthouse checks and other solutions will falsly flag them as vulnerable versions. Same for PHP and the different operating systems and companies who backport security patches.

I'm aware that these things (backporting security patches) are not that great for auditors and audits.

Can you open a new issue so we can discuss the correct way (documentation, planned changes, breaking changes) regarding these issues @Pierstoval?

from materialize.

Pierstoval avatar Pierstoval commented on July 26, 2024

Will do 😄

from materialize.

Sorc96 avatar Sorc96 commented on July 26, 2024

It would be nice to see Dogfalo#6602 merged. It really should be possible to pass dropdownOptions to any component that uses a Dropdown.

from materialize.

LeafHacker avatar LeafHacker commented on July 26, 2024

Have you seen PR Dogfalo#6542 / Issue Dogfalo#6273? Would be nice to see materialize keeping up with the MD guidelines

from materialize.

DanielRuf avatar DanielRuf commented on July 26, 2024

Have you seen PR Dogfalo#6542 / Issue Dogfalo#6273? Would be nice to see materialize keeping up with the MD guidelines

Nope, I didn't see these. Would be great to have them as PRs in this repo.
Do you want to provide them?

from materialize.

LeafHacker avatar LeafHacker commented on July 26, 2024

Have you seen PR Dogfalo#6542 / Issue Dogfalo#6273? Would be nice to see materialize keeping up with the MD guidelines

Nope, I didn't see these. Would be great to have them as PRs in this repo.
Do you want to provide them?

I've just taken a closer look - and the PR doesn't actually make any changes to the text input scss - rather it's full of random/unrelated changes to the docs afaict. It does have a bunch of CSS in the description but it'd be a pain to diff this against master to see what it's actually changing... bizarre!

from materialize.

DanielRuf avatar DanielRuf commented on July 26, 2024

I've just taken a closer look - and the PR doesn't actually make any changes to the text input scss - rather it's full of random/unrelated changes to the docs afaict. It does have a bunch of CSS in the description but it'd be a pain to diff this against master to see what it's actually changing... bizarre!

You are correct. I just took a look at the issue and not the PR to see what this was about and thought it would make sense. I didn't check the actual changes of the PR.

from materialize.

DanielRuf avatar DanielRuf commented on July 26, 2024

Not sure if the comment with the scss code contains the actual changes and the other file changes were done by mistake (probably due to lack of experience with Git and GitHub).

from materialize.

AJLeonardi avatar AJLeonardi commented on July 26, 2024

Where are we up to regarding the select issue? That's a biggie - has it been raised/solved for the fork?
(The issue is the wrong item being selected on iOS, the fix being to served an entire patched JS file after materialize.js)

hmm I think this is issue #31. There's already a commit Dogfalo/materialize@c0da340, but it's not released officially yet.

Where are things with the DropDown issue on iOS (still present in current release)? There's a solution defined in #31, but it's unclear if it's been tested. Thanks!

from materialize.

DanielRuf avatar DanielRuf commented on July 26, 2024

Where are things with the DropDown issue on iOS (still present in current release)? There's a solution defined in #31, but it's unclear if it's been tested. Thanks!

Not sure. If there is still a problem with our alpha release, please open a new issue.

Closing this one. Individual PRs that should be migrated should be filed as separate issues, otherwise the issues become too long and crowded. Thank you.

from materialize.

wuda-io avatar wuda-io commented on July 26, 2024

I tested it on iPad and MacBook not sure about iPhone but I assume it would work there too. As @DanielRuf said, please open a new issue an provide details about Safari Version and iPhone. Thanks.

from materialize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.