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

Subdomains bypass validation #53

Closed
stri8ed opened this issue Apr 16, 2024 · 1 comment · Fixed by #54
Closed

Subdomains bypass validation #53

stri8ed opened this issue Apr 16, 2024 · 1 comment · Fixed by #54

Comments

@stri8ed
Copy link
Contributor

stri8ed commented Apr 16, 2024

Its possible to bypass the validation by using subdomains of the disposable domains. e.g.

The root domains are blocked, but the validation logic does not detect these, since it checks the entire domain as single string.

I am seeing cases of people abusing this in the wild. I assume the disposable providers offer dynamic subdomains as an option.

@Propaganistas
Copy link
Owner

Validation is performed similarly to what disposable/disposable offers for JS:
See https://github.com/disposable/disposable/blob/7c19066bc3765767d5427f6da8334a3e70687f82/disposable.js#L11-L12

But I'm open for a PR with tests providing a configuration option for that.

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 a pull request may close this issue.

2 participants