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
fix(list_table): preventing sql injection attack on list_tables (#165)
* preventing sql injection attack on list_tables
* refactor: address review comments - use unknown[] and add transaction wrapper
- Replace z.any() with z.unknown() for better type safety (aligns with postgres-meta)
- Wrap query execution in transaction to prevent race conditions for future parallelization
- All 123 tests passing
* test: use division by zero payload from HackerOne report
- Changed SQL injection test to use actual payload from Linear issue AI-139
- Payload: "public') OR (SELECT 1)=1/0--" which causes division by zero error without parameterization
- With parameterized queries, returns empty array [] instead of error
- Addresses review feedback about using realistic example from original report
* chore: remove debug console.log statements
0 commit comments