Skip to content

fix(bug): number id parse issue#163

Open
hemantch01 wants to merge 1 commit intoaccordproject:mainfrom
hemantch01:fix/numeric_id_parse
Open

fix(bug): number id parse issue#163
hemantch01 wants to merge 1 commit intoaccordproject:mainfrom
hemantch01:fix/numeric_id_parse

Conversation

@hemantch01
Copy link
Copy Markdown

Description

Fixes #162

this pr resolves a vulnerability where numeric :id route parameters were partially parsed due to the use of parseInt(). For example, requests like GET /templates/1abc were incorrectly truncated and executed as GET /templates/1, potentially leading to unexpected resource modification or deletion.

Tests passed

Screenshot 2026-04-14 100207

Postman screenshot after FIX

Screenshot 2026-04-14 101328

Signed-off-by: hemantch01 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Numeric :id routes vulnerable to partial parses.

1 participant