Closed tieneupin closed 2 weeks ago
@github/codeql-python : Could you help out here, please?
Resolving this issue is not a current product priority, but we acknowledge the report and will track it internally for future consideration, or if we observe repeated instances of the same problem.
Hi @hvitved , that's good enough. I mainly wanted confirmation as to whether this was a false positive or an actual error on my part, and I have received confirmation that it is indeed a false positive (https://security.stackexchange.com/a/278538/309008). Keep up the good work with CodeQL!
Hi @tieneupin,
I'm closing this issue since it seems your question is answered. If further help is needed, feel free to reopen this issue.
Description of the false positive
I have made attempts to validate the inputs used in the FastAPI endpoint, making sure that they are from a list of approved entries, and checking the string to make sure that only certain characters are permitted.
If this is not a false positive, advice on what I could improve would be appreciated.
Code samples or links to source code
This is a FastAPI endpoint to return specific packages from an MSYS2 repo to client PCs that cannot see the wider internet.
URL to the alert on GitHub code scanning (optional)
https://github.com/DiamondLightSource/python-murfey/security/code-scanning/402