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

Why can't I set the cookie value to a number greater than 15? #121

Closed
bestpika opened this issue Mar 19, 2021 · 6 comments
Closed

Why can't I set the cookie value to a number greater than 15? #121

bestpika opened this issue Mar 19, 2021 · 6 comments
Labels

Comments

@bestpika
Copy link

As the title, is this to prevent me from skipping the 18-year-old verification?

@bestpika bestpika changed the title Why is the cookie value not greater than 15? Why can't I set the cookie value to a number greater than 15? Mar 19, 2021
@tasi788
Copy link

tasi788 commented Mar 19, 2021

I also have a related problem here.
With some websites where the cookie is placed with a custom value, but set-cookie only can set "possible values".
here an example.
image

@slavaleleka
Copy link
Contributor

we do not circumvent age restriction

but this case is not related to skipping 18-year-old verification. it's dangerous to provide an option to set an arbitrary cookie, so we made set-cookie scriptlet similar to set-constant with possible values which where the most used in filter lists #79

@bestpika
Copy link
Author

bestpika commented Mar 19, 2021

@slavaleleka I know that, but I need to get the site to skip the age limit now, so I need the 18 number.
And your company ask us to use the scriptlet to write the relevant cookie function when you add the FutaFilter, so we can't use that rule.

By the way, the age verification is just a joke.

@tasi788
Copy link

tasi788 commented Mar 19, 2021

we do not circumvent age restriction

but this case is not related to skipping 18-year-old verification. it's dangerous to provide an option to set an arbitrary cookie, so we made set-cookie scriptlet similar to set-constant with possible values which where the most used in filter lists #79

maybe add "trusted filters" restriction before scriptlet run ? just like Javascript rules

@bestpika
Copy link
Author

Also, I don't understand why the AG has to limit the value of cookies that can be used by this filter if I already trust the filter.

@ameshkov
Copy link
Member

If the filter is trusted, you can use JS rules for that. Regarding age verification circumvention, this is straight illegal to circumvent such limitations, please be careful.

Also, I don't understand why the AG has to limit the value of cookies that can be used by this filter if I already trust the filter.

We may provide a different set of scriptlets for such cases (prefixed as ag-trusted or trusted-). Default scriptlets are supposed to be limited to be protected from any misuse.

@ameshkov ameshkov added the question Further information is requested label Mar 19, 2021
adguard pushed a commit that referenced this issue Apr 15, 2022
…7 to master

* commit 'cc709ea9b1238af3851f5445d1edf700d96b07eb':
  uncomment tests
  remove toString convesions in tests
  better tests for alias names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants