Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2023-0434: validate time config values · pyload/pyload@a2b1eb1

Improper Input Validation in GitHub repository pyload/pyload prior to 0.5.0b3.dev40.

CVE
#git

@@ -279,15 +279,32 @@ def cast(self, typ, value):

return value.lower() in ("1", "true", "on", "yes", “y”)

elif typ == "time":

default_value = “0:00”

value = “” if value is None else str(value)

if not value:

value = “0:00”

if “:” not in value:

value = default_value

elif “:” not in value:

value += “:00”

hours, seconds = value.split(":", 1)

if (

hours.isnumeric()

and seconds.isnumeric()

and 0 <= int(hours) <= 23

and 0 <= int(seconds) <= 59

):

pass

else:

value = default_value

return value

elif typ in ("file", “folder”):

return “” if value in (None, “”) else os.path.realpath(os.path.expanduser(os.fsdecode(value)))

return (

“”

if value in (None, “”)

else os.path.realpath(os.path.expanduser(os.fsdecode(value)))

)

else:

return value

Related news

GHSA-x9vc-5q77-m7x4: Improper Input Validation in pyload-ng

Improper Input Validation in GitHub repository pyload/pyload prior to 0.5.0b3.dev40.

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda