Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add local 301 redirect for address bar spoofing test case. #179

Merged
merged 4 commits into from
Dec 20, 2023

Conversation

not-a-rootkit
Copy link
Collaborator

@not-a-rootkit not-a-rootkit commented Dec 20, 2023

This specific test case was not implemented correctly, instead we need a 301 redirect with a different binary format since PDFs render inside the browser instead of forcing downloads. We previously relied on tyny.to which is flaky as they went down recently so I implement it locally.

Two simple changes:

  1. A serverside redirect path that 301s to our Mac browser download path
  2. Update the path in the security test

This specific test case was not implemented correctly, instead we need a 302 redirect with a different binary format since PDFs render inside the browser instead of forcing downloads.
@not-a-rootkit not-a-rootkit changed the title Change from PDF download to DMG download with 302 redirect for address bar spoofing issue. Add 302 redirect for address bar spoofing test case. Dec 20, 2023
@not-a-rootkit not-a-rootkit changed the title Add 302 redirect for address bar spoofing test case. Add local 302 redirect for address bar spoofing test case. Dec 20, 2023
@not-a-rootkit not-a-rootkit changed the title Add local 302 redirect for address bar spoofing test case. Add local 301 redirect for address bar spoofing test case. Dec 20, 2023
@not-a-rootkit not-a-rootkit merged commit af7fc86 into main Dec 20, 2023
1 check passed
@not-a-rootkit not-a-rootkit deleted the tespach/download-redirect branch December 20, 2023 09:38
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