Skip to content

add length validation for Lock-Token to prevent underflow#618

Open
metsw24-max wants to merge 1 commit intoapache:trunkfrom
metsw24-max:lock-token-length-check
Open

add length validation for Lock-Token to prevent underflow#618
metsw24-max wants to merge 1 commit intoapache:trunkfrom
metsw24-max:lock-token-length-check

Conversation

@metsw24-max
Copy link

This change improves the handling of the Lock-Token request header in mod_dav by adding proper length validation before performing string indexing and trimming operations

The existing implementation processes the Lock-Token header without verifying that the string length is sufficient before

-Accessing lock_token_hdr[len - 1]
-Computing len - 2 for apr_pstrndup

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.

1 participant