You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(parser): FastAPI explicit source annotations as taint sources
Extend _extract_source_params to recognise FastAPI explicit input
constructors as user-controlled taint sources, in addition to Depends():
Query(), Body(), Header(), Path(), Form(), Cookie(), File(), UploadFile
Changes:
- Add _FASTAPI_SOURCE_CALLS frozenset with all known source constructors
and their fully-qualified / starlette variants
- Add _is_fastapi_source_call() with alias resolution via import_map
- Update _extract_source_params to call both _is_depends_call and
_is_fastapi_source_call for positional and keyword-only args
- Add 10 tests covering Query/Body/Header/Path/Form/Cookie/File,
aliased imports, sanitizer suppression, and mixed Depends+Query
All 10 new tests pass; full suite (288 tests) passes with zero regression.
0 commit comments