Calling Developers!
We are reenergizing our code contribution process! Learn More

Strange error when we try to install propel/propel (2.0.0-alpha10)

Options
UKHESMRD2
UKHESMRD2 Posts: 37 πŸ§‘πŸ»β€πŸš€ - Cadet
edited June 2023 in Propel ORM

Good Morning, we have a strange error when we try to install propel/propel (2.0.0-alpha10) $ /usr/local/bin/security-checker security:check ./composer.lock


But this error was fixed in 2018 -> https://github.com/propelorm/Propel2/pull/1464. Any idea?

Tagged:

Comments

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    Options

    are you installing via composer?

  • UKHESMRD2
    UKHESMRD2 Posts: 37 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    yes, via composer update

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    Options

    Just so that we are on the same page. You are using: https://github.com/sensiolabs/security-checker ?

  • UKHESMRD2
    UKHESMRD2 Posts: 37 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    yes

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    Options

    looks to me like a false positive. maybe because the version is not known there yet?

  • UK6GTK9TL
    UK6GTK9TL Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited July 2020
    Options

    I think we got a versioning problem here:
    Take a look at CVE constraint and semver πŸ€”

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    Options

    @UK6GTK9TL have you reported this to the propel team?

  • UK6GTK9TL
    UK6GTK9TL Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    No, only here and spryker-support per mail. As far as I know Spryker took the lead on propel development?

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    Options

    Let me check that internally

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    Options

    @UK6GTK9TL could you please share the link to the program that creates the SemVer check?

  • UK6GTK9TL
    UK6GTK9TL Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    do you mean the command?
    bin/console security:check composer.lock

    CVE database is https://github.com/FriendsOfPHP/security-advisories/tree/master/propel I guess.

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    Options

    thank you, but i meant the Semver check

  • UK6GTK9TL
    UK6GTK9TL Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    for some kind of semver constraint verification I used
    https://jubianchi.github.io/semver-check/#/
    as you can see in the screenshot above.
    Therefore I think the security checker works correctly

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    Options

    thank you

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    Options

    @UK6GTK9TL please take a look here: https://github.com/jubianchi/semver-check/issues/77 a colleague took a look, and it seems that everything works as expected for composer

  • UK6GTK9TL
    UK6GTK9TL Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    thanks for your investigation here!
    Funny, if it’s a bug in this semver-checker tool, but on the other hand we do not know how sensions labs resolves constraints.

    It looks like the symfony security checker composer.posts lock-file to an endpoint: https://github.com/sensiolabs/security-checker/blob/master/SensioLabs/Security/Crawler.php
    Which must handle this also wrong.

    We use latest version, can you confirm that security checker evaluates propel 2.0.0-alpha10 to be vulnerable?

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    Options

    @UK6GTK9TL could you PN me your composer.lock please?

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
    Options

    thank you. Yes, the security check also evaluates 2.0.0-alpha10 incorrectly for me. Unfortunately, the security checker is a blackbox, so at this point we can only guess that there is a problem with evaluating the versions.

  • UK6GTK9TL
    UK6GTK9TL Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    Thanks for your help, I created an issue on security-checker github project. Perhaps the sensiolab guys can check that internally.

    But btw: https://github.com/semver/semver/blob/master/semver.md
    suggests dot versions for pre-releases: