Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.security > #5943 > unrolled thread
| Started by | Serkan Özkan <serkan@vulniq.com> |
|---|---|
| First post | 2021-05-16 16:40 +0200 |
| Last post | 2021-05-17 22:00 +0200 |
| Articles | 7 — 4 participants |
Back to article view | Back to linux.debian.security
"Version less than 0.0" in OVAL definitions Serkan Özkan <serkan@vulniq.com> - 2021-05-16 16:40 +0200
Re: "Version less than 0.0" in OVAL definitions Holger Levsen <holger@layer-acht.org> - 2021-05-17 08:50 +0200
Re: "Version less than 0.0" in OVAL definitions Serkan Özkan <serkan@vulniq.com> - 2021-05-17 10:00 +0200
Re: "Version less than 0.0" in OVAL definitions Javier Fernandez-Sanguino <jfs@debian.org> - 2021-05-17 11:20 +0200
Re: "Version less than 0.0" in OVAL definitions Sébastien Delafond <seb@debian.org> - 2021-05-17 13:00 +0200
Re: "Version less than 0.0" in OVAL definitions Serkan Özkan <serkan@vulniq.com> - 2021-05-17 20:20 +0200
Re: "Version less than 0.0" in OVAL definitions Javier Fernandez-Sanguino <jfs@debian.org> - 2021-05-17 22:00 +0200
| From | Serkan Özkan <serkan@vulniq.com> |
|---|---|
| Date | 2021-05-16 16:40 +0200 |
| Subject | "Version less than 0.0" in OVAL definitions |
| Message-ID | <Cfq5X-2NL-3@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hello, We are using Debian OVAL definitions but there are many tests, and states, that test for dpkg versions being less than 0.0 which is impossible in practice (right?). How should we handle these tests/definitions? Should we ignore them or does 0.0 have a special meaning in this case? <dpkginfo_test check="all" check_existence="at_least_one_exists" comment="linux is earlier than 0" id="oval:org.debian.oval:tst:22144" version="1" xmlns=" http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> <object object_ref="oval:org.debian.oval:obj:195"/> <state state_ref="oval:org.debian.oval:ste:14430"/> </dpkginfo_test> <dpkginfo_test check="all" check_existence="at_least_one_exists" comment="jhead is earlier than 0" id="oval:org.debian.oval:tst:22145" version="1" xmlns=" http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> <object object_ref="oval:org.debian.oval:obj:740"/> <state state_ref="oval:org.debian.oval:ste:14430"/> </dpkginfo_test> ... <dpkginfo_state id="oval:org.debian.oval:ste:14430" version="1" xmlns=" http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> <evr datatype="debian_evr_string" operation="less than">0:0</evr> </dpkginfo_state> <dpkginfo_state id="oval:org.debian.oval:ste:14431" version="1" xmlns=" http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> <evr datatype="debian_evr_string" operation="less than">0:1.14.4-1+deb10u1 </evr> </dpkginfo_state> <dpkginfo_state id="oval:org.debian.oval:ste:14432" version="1" xmlns=" http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> <evr datatype="debian_evr_string" operation="less than">0:0</evr> </dpkginfo_state> Thanks in advance, Serkan Özkan
[toc] | [next] | [standalone]
| From | Holger Levsen <holger@layer-acht.org> |
|---|---|
| Date | 2021-05-17 08:50 +0200 |
| Message-ID | <CfFeF-3z3-3@gated-at.bofh.it> |
| In reply to | #5943 |
[Multipart message — attachments visible in raw view] — view raw
On Sun, May 16, 2021 at 05:21:50PM +0300, Serkan Özkan wrote: > We are using Debian OVAL definitions but there are many tests, and states, > that test for dpkg versions being less than 0.0 which is impossible in > practice (right?). no, it's possible: 0~1 is a valid version. It's smaller than zero, yet it's not a negative number. It's usually used for versions like 1.0~0alpha1-1 to allow the next version to be 1.0-1... but 0~1 is a legal and valid version too. -- cheers, Holger ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ holger@(debian|reproducible-builds|layer-acht).org ⢿⡄⠘⠷⠚⠋⠀ OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C ⠈⠳⣄ I'm looking forward to Corona being a beer again and Donald a duck.
[toc] | [prev] | [next] | [standalone]
| From | Serkan Özkan <serkan@vulniq.com> |
|---|---|
| Date | 2021-05-17 10:00 +0200 |
| Message-ID | <CfGkp-4a5-1@gated-at.bofh.it> |
| In reply to | #5944 |
[Multipart message — attachments visible in raw view] — view raw
Hello, In theory, from version number numbering point of view only, yes less than 0.0 is valid. But in practice, as they are used in Debian OVAL definitions, I don't think they are. I think these state values might be incorrect, probably unintentionally. And there are many, thousands, of these less than 0.0 versions, I don't think they are actually intended to test for pre version 0 releases. For example, who could be using a pre version 0 release of glibc? <dpkginfo_test check="all" check_existence="at_least_one_exists" comment="glibc is earlier than 0" id="oval:org.debian.oval:tst:22102" version="1" xmlns=" http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> <object object_ref="oval:org.debian.oval:obj:3"/> <state state_ref="oval:org.debian.oval:ste:14418"/> </dpkginfo_test> ... <dpkginfo_test check="all" check_existence="at_least_one_exists" comment="golang-1.11 is earlier than 0" id="oval:org.debian.oval:tst:22067" version="1" xmlns=" http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> <object object_ref="oval:org.debian.oval:obj:2202"/> <state state_ref="oval:org.debian.oval:ste:14410"/> </dpkginfo_test> ... <dpkginfo_test check="all" check_existence="at_least_one_exists" comment="rustc is earlier than 0" id="oval:org.debian.oval:tst:22068" version="1" xmlns=" http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> <object object_ref="oval:org.debian.oval:obj:1670"/> <state state_ref="oval:org.debian.oval:ste:14410"/> </dpkginfo_test> ... <dpkginfo_test check="all" check_existence="at_least_one_exists" comment="sqlcipher is earlier than 0" id="oval:org.debian.oval:tst:22069" version="1" xmlns=" http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> <object object_ref="oval:org.debian.oval:obj:2614"/> <state state_ref="oval:org.debian.oval:ste:14410"/> </dpkginfo_test> On Mon, 17 May 2021 at 09:40, Holger Levsen <holger@layer-acht.org> wrote: > On Sun, May 16, 2021 at 05:21:50PM +0300, Serkan Özkan wrote: > > We are using Debian OVAL definitions but there are many tests, and > states, > > that test for dpkg versions being less than 0.0 which is impossible in > > practice (right?). > > no, it's possible: > > 0~1 is a valid version. It's smaller than zero, yet it's not a negative > number. > > It's usually used for versions like 1.0~0alpha1-1 to allow the next > version to be 1.0-1... but 0~1 is a legal and valid version too. > > > -- > cheers, > Holger > > ⢀⣴⠾⠻⢶⣦⠀ > ⣾⠁⢠⠒⠀⣿⡁ holger@(debian|reproducible-builds|layer-acht).org > ⢿⡄⠘⠷⠚⠋⠀ OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C > ⠈⠳⣄ > > I'm looking forward to Corona being a beer again and Donald a duck. >
[toc] | [prev] | [next] | [standalone]
| From | Javier Fernandez-Sanguino <jfs@debian.org> |
|---|---|
| Date | 2021-05-17 11:20 +0200 |
| Message-ID | <CfHzP-54y-1@gated-at.bofh.it> |
| In reply to | #5945 |
[Multipart message — attachments visible in raw view] — view raw
On Mon, 17 May 2021 at 09:58, Serkan Özkan <serkan@vulniq.com> wrote: > Hello, > In theory, from version number numbering point of view only, yes less than > 0.0 is valid. But in practice, as they are used in Debian OVAL definitions, > I don't think they are. I think these state values might be incorrect, > probably unintentionally. And there are many, thousands, of these less than > 0.0 versions, I don't think they are actually intended to test for pre > version 0 releases. > Dear Serkan, There is a problem with the OVAL definitions published in the website. The definitions are generated from the information available (in webwml files) in the source code of the website but this is missing version information in a way that can be properly interpreted by the scripts. As a consequence, the output (the definitions) does not include an accurate value for the version. To implement this properly we would need to re-engineer the script that was created in 2010. Help here would be appreciated, I can point you to the script + setup if you could help. Hope above clarifies. Best regards, Javier
[toc] | [prev] | [next] | [standalone]
| From | Sébastien Delafond <seb@debian.org> |
|---|---|
| Date | 2021-05-17 13:00 +0200 |
| Message-ID | <CfJ8B-5PD-3@gated-at.bofh.it> |
| In reply to | #5946 |
Hi, the Debian Security team periodically gets requests and/or bug reports about the OVAL exports, and our general stance is that although we can't provide support for them, I'll gladly review and accept PRs on the OVAL generation code if people are interested in fixing whatever issues they find on their end. Cheers, -- Seb
[toc] | [prev] | [next] | [standalone]
| From | Serkan Özkan <serkan@vulniq.com> |
|---|---|
| Date | 2021-05-17 20:20 +0200 |
| Message-ID | <CfQ0p-1Aq-1@gated-at.bofh.it> |
| In reply to | #5946 |
[Multipart message — attachments visible in raw view] — view raw
Hello Seb, For some reason I didn't receive your email but saw it on the mailing list archive page. OVAL definitions are important for us and we would like to fix them if possible. Can you please let me know where the code is? Thank you, Serkan On Mon, 17 May 2021 at 12:22, Serkan Özkan <serkan@vulniq.com> wrote: > Hello, > Thanks for the information Javier. Not promising anything, but I can try > to fix the script if you can point me to the script + setup. > > Thank you, > Serkan > > On Mon, 17 May 2021 at 12:14, Javier Fernandez-Sanguino <jfs@debian.org> > wrote: > >> >> On Mon, 17 May 2021 at 09:58, Serkan Özkan <serkan@vulniq.com> wrote: >> >>> Hello, >>> In theory, from version number numbering point of view only, yes less >>> than 0.0 is valid. But in practice, as they are used in Debian OVAL >>> definitions, I don't think they are. I think these state values might be >>> incorrect, probably unintentionally. And there are many, thousands, of >>> these less than 0.0 versions, I don't think they are actually intended to >>> test for pre version 0 releases. >>> >> >> Dear Serkan, >> >> There is a problem with the OVAL definitions published in the website. >> The definitions are generated from the information available (in webwml >> files) in the source code of the website but this is missing version >> information in a way that can be properly interpreted by the scripts. >> >> As a consequence, the output (the definitions) does not include an >> accurate value for the version. To implement this properly we would need to >> re-engineer the script that was created in 2010. Help here would be >> appreciated, I can point you to the script + setup if you could help. >> >> Hope above clarifies. Best regards, >> >> Javier >> >
[toc] | [prev] | [next] | [standalone]
| From | Javier Fernandez-Sanguino <jfs@debian.org> |
|---|---|
| Date | 2021-05-17 22:00 +0200 |
| Message-ID | <CfRzb-2tm-1@gated-at.bofh.it> |
| In reply to | #5948 |
[Multipart message — attachments visible in raw view] — view raw
On Mon, 17 May 2021 at 19:58, Serkan Özkan <serkan@vulniq.com> wrote: > Hello Seb, > For some reason I didn't receive your email but saw it on the mailing list > archive page. > OVAL definitions are important for us and we would like to fix them if > possible. Can you please let me know where the code is? > > Hi Serkan, I believe the latest version of the code for the OVAL definitions generation is in the source code of the website, more specifically in this directory: https://salsa.debian.org/webmaster-team/webwml/-/blob/master/english/security/oval/generate.py. An older version was the Perl script I developed (at https://salsa.debian.org/webmaster-team/webwml/-/blob/master/english/security/parse-wml-oval.pl) which is not functional anymore. To generate the definitions, you need to have a copy of all the Debian Security Advisories, which is available in the web source repository (at https://salsa.debian.org/webmaster-team/webwml/-/tree/master/english/security ). Hope the above helps. Javier >
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.security
csiph-web