Skip to content

Adds code to restrict token_auth post param#103

Open
AltamashShaikh wants to merge 2 commits intomasterfrom
fix-post
Open

Adds code to restrict token_auth post param#103
AltamashShaikh wants to merge 2 commits intomasterfrom
fix-post

Conversation

@AltamashShaikh
Copy link
Copy Markdown
Contributor

Description

Adds code to restrict token_auth post param

Checklist

  • [NA] I have understood, reviewed, and tested all AI outputs before use
  • [NA] All AI instructions respect security, IP, and privacy rules

Review

Comment thread proxy.php
Comment on lines +291 to +292
sanitizeTrackingOverrideParams($_POST);
$postBody = http_build_query($_POST);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically I'm not sure if this might not have any side effects. file_get_contents("php://input") uses the real raw input, while http_build_query($_POST) sort of reconstructs it, while it may normalize ordering, repeated params, array syntax, and encoding details. I wonder if it might be safe to just go this path if at least one of the disallowed parameters was really discarded.

Comment thread .codex
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That one should be removed again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants