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(security): resolve all CodeQL security findings (#2806)
* fix(security): resolve all CodeQL security findings
- Path injection (ocp-sticker.service.ts): Validate lang against allowed values
- Type confusion (spark.service.ts): Add nullish coalescing for Map.get()
- Missing permissions (api-*.yaml): Add explicit 'contents: read' permissions
- Polynomial ReDoS (gs.service.ts): Replace regex with simple string search
- Incomplete sanitization (olkypay.service.ts): Use replaceAll instead of replace
Resolves 9 CodeQL alerts
* fix(gs): use bounded quantifier for ORDER BY detection
Replace .includes('order by') with bounded regex /order\s{1,100}by/i:
- Prevents ReDoS via bounded quantifier {1,100}
- Maintains support for tabs and multiple spaces between ORDER and BY
- Original .includes() only matched single space
0 commit comments