Skip to content

contain external storer pdr paths within rootPath - #1

Open
digi-scrypt wants to merge 1 commit into
javanlacerda:mainfrom
digi-scrypt:external-storer-path-contain
Open

contain external storer pdr paths within rootPath#1
digi-scrypt wants to merge 1 commit into
javanlacerda:mainfrom
digi-scrypt:external-storer-path-contain

Conversation

@digi-scrypt

Copy link
Copy Markdown

@odata.id and Id come straight from BIOS supplied PDR data (decoded from the BEJ stream) and get joined onto rootPath without any containment check:

  • processOtherTypes / processLogService: a "../" in @odata.id walks the private createFile out of rootPath
  • processLogEntry: the Id field becomes the logServiceId path segment, same escape
    Added a rootPath containment check at both funnels so a crafted PDR can't drop index.json outside the configured root. Tests cover all three sinks.

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