Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some urlpattern that refer to pks, now including .+ better written as \d+ #3776

Closed
gamboz opened this issue Nov 6, 2023 · 0 comments · Fixed by #3848
Closed

Some urlpattern that refer to pks, now including .+ better written as \d+ #3776

gamboz opened this issue Nov 6, 2023 · 0 comments · Fixed by #3848
Assignees
Labels
bug Something's not working

Comments

@gamboz
Copy link
Collaborator

gamboz commented Nov 6, 2023

I'm reporting these because we have had a Chinese IP trying to SQL-inject one of our installations. There is no security issue AFAICT: one would just get a 500 (ValueError: invalid literal for int()...) instead of a 404 on such attempts.

src/transform/urls.py
10       re_path(r'^galley/(?P<galley_id>.+?)/generate-pdf/$', views.cassius_generate,
13       re_path(r'^galley/(?P<galley_id>.+?)/generate-epub/$', views.epub_generate,
                                         ^^^
src/journal/urls.py
64       re_path(r'^funder_articles/(?P<funder_id>.+)$', views.funder_articles, name='funder_articles'),
                                                  ^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something's not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants