mirror of
https://github.com/HaschekSolutions/opentrashmail.git
synced 2026-04-25 06:35:55 +03:00
[PR #32] [MERGED] Fix the fix to path traversal attack, refactor #92
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentrashmail#92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/HaschekSolutions/opentrashmail/pull/32
Author: @Dan-Q
Created: 8/12/2021
Status: ✅ Merged
Merged: 8/12/2021
Merged by: @geek-at
Base:
master← Head:master📝 Commits (5)
5f82811Add getDirForEmail to perform realPath filtering in core012ed1ePath safety checks for API that actually work0953830Add provided (sanitised) email to output JSONd9a215eRemoved debug code7543c00Ensure email ID is an integer📊 Changes
2 files changed (+31 additions, -21 deletions)
View changed files
📝
web/api.php(+21 -16)📝
web/inc/core.php(+10 -5)📄 Description
Fixes #29/#31, by:
$idis an integer (thanks @wr3nch0x1 for spotting this vector!), preventing it too from being used for path traversal attacks and providing an extra safety check that the format is as-expected🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.