Development #45672
Mis à jour par Frédéric Péters il y a plus de 3 ans
https://sentry.entrouvert.org/entrouvert/publik/issues/3589/
<pre>
File "/usr/lib/python3/dist-packages/authentic2/views.py" in login ValueError: A string literal cannot contain NUL (0x00) characters.
(10 additional frame(s) were not displayed)
...
322. if service and models.Service.objects.filter(slug=service).exists():
File "/usr/lib/python3/dist-packages/django/db/models/query.py" "django/db/models/sql/compiler.py", line 858, in exists
673. return self.query.has_results(using=self.db)
File "/usr/lib/python3/dist-packages/django/db/models/sql/query.py" in has_results
517.
return compiler.has_results()
File "/usr/lib/python3/dist-packages/django/db/models/sql/compiler.py" in has_results bool(self.execute_sql(SINGLE))
858. return bool(self.execute_sql(SINGLE))
File "/usr/lib/python3/dist-packages/django/db/models/sql/compiler.py" "django/db/models/sql/compiler.py", line 899, in execute_sql
899.
raise original_exception
File "/usr/lib/python3/dist-packages/django/db/models/sql/compiler.py" "django/db/models/sql/compiler.py", line 889, in execute_sql
889.
cursor.execute(sql, params)
File "/usr/lib/python3/dist-packages/django/db/backends/utils.py" "django/db/backends/utils.py", line 79, in execute
79.
return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/lib/python3/dist-packages/sentry_sdk/integrations/django/__init__.py" in execute
434. return real_execute(self, sql, params)
File "/usr/lib/python3/dist-packages/django/db/backends/utils.py" "django/db/backends/utils.py", line 64, in execute
64.
return self.cursor.execute(sql, params)
Exception Type: ValueError at /login/
Exception Value: A string literal cannot contain NUL (0x00) characters.
Request URL:
https://.../login/?service=/etc/passwd%00&next=/idp/oidc/authorize/?client_id=25b398d3-7e70-4e0a-83ff-852e49298674&scope=openid+profile+email&response_type=code&redirect_uri=...
</pre>
<pre>
File "/usr/lib/python3/dist-packages/authentic2/views.py" in login ValueError: A string literal cannot contain NUL (0x00) characters.
(10 additional frame(s) were not displayed)
...
322. if service and models.Service.objects.filter(slug=service).exists():
File "/usr/lib/python3/dist-packages/django/db/models/query.py" "django/db/models/sql/compiler.py", line 858, in exists
673. return self.query.has_results(using=self.db)
File "/usr/lib/python3/dist-packages/django/db/models/sql/query.py" in has_results
517.
return compiler.has_results()
File "/usr/lib/python3/dist-packages/django/db/models/sql/compiler.py" in has_results bool(self.execute_sql(SINGLE))
858. return bool(self.execute_sql(SINGLE))
File "/usr/lib/python3/dist-packages/django/db/models/sql/compiler.py" "django/db/models/sql/compiler.py", line 899, in execute_sql
899.
raise original_exception
File "/usr/lib/python3/dist-packages/django/db/models/sql/compiler.py" "django/db/models/sql/compiler.py", line 889, in execute_sql
889.
cursor.execute(sql, params)
File "/usr/lib/python3/dist-packages/django/db/backends/utils.py" "django/db/backends/utils.py", line 79, in execute
79.
return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/lib/python3/dist-packages/sentry_sdk/integrations/django/__init__.py" in execute
434. return real_execute(self, sql, params)
File "/usr/lib/python3/dist-packages/django/db/backends/utils.py" "django/db/backends/utils.py", line 64, in execute
64.
return self.cursor.execute(sql, params)
Exception Type: ValueError at /login/
Exception Value: A string literal cannot contain NUL (0x00) characters.
Request URL:
https://.../login/?service=/etc/passwd%00&next=/idp/oidc/authorize/?client_id=25b398d3-7e70-4e0a-83ff-852e49298674&scope=openid+profile+email&response_type=code&redirect_uri=...
</pre>