Repository navigation
LINE/Security: harden inbound media temp-file naming - #20792
Merged
Merged
Conversation
mbelinky
force-pushed
the
hardening/line-temp-path-uuid
branch
from
February 19, 2026 09:35
0f30c21 to
4ca9f7b
Compare
mbelinky
force-pushed
the
hardening/line-temp-path-uuid
branch
from
February 19, 2026 09:37
4ca9f7b to
f6f3eec
Compare
Contributor
Author
|
Merged via maintainer PR flow. What was done:
SHAs:
|
6 tasks
Copilot AI
added a commit
to mf-yang/openclaw-cn
that referenced
this pull request
Feb 20, 2026
…penclaw#20792) Co-authored-by: jiulingyun <[email protected]>
mmyyfirstb
pushed a commit
to mmyyfirstb/openclaw
that referenced
this pull request
Feb 21, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: f6f3eec Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
mf-yang
added a commit
to mf-yang/openclaw-cn
that referenced
this pull request
Mar 1, 2026
…penclaw#20792) (#235) * Initial plan * LINE/Security: harden inbound media temp-file naming (port upstream openclaw#20792) Co-authored-by: jiulingyun <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jiulingyun <[email protected]>
lovewanwan
pushed a commit
to lovewanwan/openclaw
that referenced
this pull request
Apr 28, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: f6f3eec Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
ogt-redknie
pushed a commit
to ogt-redknie/OPENX
that referenced
this pull request
May 2, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: f6f3eec Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
May 9, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: f6f3eec Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
lhfer
pushed a commit
to lhfer/openclaw
that referenced
this pull request
Oct 11, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: f6f3eec Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary\n- harden LINE media download temp path generation to avoid deriving filenames from external message IDs\n- add regression tests proving traversal-style message IDs cannot influence the write path\n\n## Motivation\n- follow-up hardening after GHSA-vj3g-5px3-gr46 (Feishu traversal fix), scoped as proactive defense-in-depth\n\n## Testing\n- pnpm exec vitest run src/line/download.test.ts\n
Greptile Summary
Hardens LINE media download against path traversal vulnerabilities by replacing external message IDs with cryptographically random UUIDs in temp file paths. The fix introduces
buildLineTempMediaPath()that combinesDate.now()andcrypto.randomUUID()to generate safe temp filenames, preventing attackers from using crafted message IDs like../../../../etc/passwdto write files outside the temp directory. This follows the same defense-in-depth approach applied to Feishu in commit c821099.Key changes:
line-media-${messageId}-${Date.now()}pattern withline-media-${Date.now()}-${crypto.randomUUID()}Confidence Score: 5/5
Last reviewed commit: 0f30c21