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

Unexplained popup block on streamlare #1912

Closed
8 tasks done
ghajini opened this issue Dec 31, 2021 · 31 comments
Closed
8 tasks done

Unexplained popup block on streamlare #1912

ghajini opened this issue Dec 31, 2021 · 31 comments
Labels
bug Something isn't working fixed issue has been addressed

Comments

@ghajini
Copy link

ghajini commented Dec 31, 2021

Prerequisites

I tried to reproduce the issue when...

  • uBO is the only extension
  • uBO with default lists/settings
  • using a new, unmodified browser profile

Description

Download is inaccurately closed by popup filter

A specific URL where the issue occurs

https://streamlare.com/v/RWwM7lM8ZPPzZKbo

Steps to Reproduce

  1. Go to https://atishmkv.fun/antim-the-final-truth-2021-zee5-web-dl-hindi-dd2-0-1080p-720p-480p/?player=2

  2. click on in video download button that is their in video player like

https://user-images.githubusercontent.com/886325/147819078-d22e0519-1891-47aa-bfcd-075eb33f06b0.png

  1. a new tab is opened of streamlare.com

  2. click on download > original

  3. whole new tab alongwith download request is closed by *$popup,3p,domain=streamlare.com which should not happen

issue is not reproducible when directly visiting https://streamlare.com/v/RWwM7lM8ZPPzZKbo and clicking download

Expected behavior

download should happen and not to be closed by popup filter

Actual behavior

download request is cancelled by popup filter

Screenshot

Screenshot_20211231-112649~2

uBlock Origin version

1.40.2

Browser name and version

firefox android 95.2.0

Operating System and version

android 11

Notes=

Issue is not their in other adblockers

@gwarser
Copy link

gwarser commented Dec 31, 2021

click on inline video download button that is their in video player

... ? 🤔

🤦

I can reproduce now easily. You have to click this button:

image

I did not even seen it before.

I was trying all other buttons, but not this one...


Even streamlare popup after clicking this button is blocked sometimes for me.

image


Now I see why context is 3,3 - because player is inside iframe. Also there is no link with href - popup is opened by script - this explains why it's closed by uBO.


It was discussed in this thread: https://listauthorschat.slack.com/archives/C010N14G4TF/p1640794269041100?thread_ts=1640788146.040900&cid=C010N14G4TF

@gwarser gwarser changed the title bug Unexplained popup block on streamlare Dec 31, 2021
@gwarser
Copy link

gwarser commented Dec 31, 2021

  • ABP/AdBlock:
    I need to click few times on player to activate and then few times on download button on streamlare
  • AdGuard:
    I need to click few times on player but download on streamlare starts on first click
  • uBO:
    Player is activated on first click. Clicking on download button as soon as possible closes the tab and prevents download. If I wait 10s on streamlare and then click on download, then it works on first click.

@gorhill
Copy link
Member

gorhill commented Dec 31, 2021

The screenshot shows uBO is acting as per EasyList's *$popup,3p,domain=streamlare.com filter.

What is the issue?

@mapx-
Copy link
Contributor

mapx- commented Dec 31, 2021

see the steps above:

issue is not reproducible when directly visiting https://streamlare.com/v/RWwM7lM8ZPPzZKbo and clicking download

@gorhill
Copy link
Member

gorhill commented Dec 31, 2021

When I navigate to https://streamlare.com/v/RWwM7lM8ZPPzZKbo and click the download button, a new tab to streamlare.com opens. This tab is not closed on my side, it does not match *$popup,3p,domain=streamlare.com.

@ghajini
Copy link
Author

ghajini commented Dec 31, 2021

@gorhill you don't have to go to streamlare website directly, you visit
first https://atishmkv.fun/antim-the-final-truth-2021-zee5-web-dl-hindi-dd2-0-1080p-720p-480p/?player=2

then click play and click on download like pointed out https://user-images.githubusercontent.com/886325/147819078-d22e0519-1891-47aa-bfcd-075eb33f06b0.png
click on download button then download request is closed

as like i captured video here
https://gofile.io/d/vWDL1V

@gorhill
Copy link
Member

gorhill commented Dec 31, 2021

Your captured video does not work, the site is telling me it does not have the bandwidth. In any case, I am not able to reproduce anything unexpected, I get exactly what I see in your screenshot.

If I exclude larecontent.com as a popup, I can download:

*$popup,3p,denyallow=larecontent.com,domain=streamlare.com
*$popup,3p,domain=streamlare.com,badfilter

Why do you think it's a uBO issue? This appears to be just a filter issue.

@ghajini
Copy link
Author

ghajini commented Dec 31, 2021

where can i upload the video to view for you ?
i just explained pretty simple in STR
its not filter issue @gwarser can you explain pls

@gwarser
Copy link

gwarser commented Dec 31, 2021

It's about difference between popup handling in uBO and other blockers as listed above.

Your not detailed enough STR @ghajini did not helped.

Going directly to streamlare or clicking download links on atishmkv:

image

does not cause this popup to be closed. Only clicking download button inside the player causes popup to be closed.

I spent too much time trying to figure out what is happening. Thought this is some racing issue in popup filtering code. Only after reading STR in this issue I was able to reproduce popup being actually closed.

I will move this to uAssets to be fixed in filters.

@gwarser gwarser closed this as completed Dec 31, 2021
@gwarser gwarser reopened this Dec 31, 2021
@gwarser gwarser transferred this issue from another repository Dec 31, 2021
@ghajini
Copy link
Author

ghajini commented Dec 31, 2021

i know STR language somewhat difficult written...

But basic behaviour should be actually same across all adblockers(eg try with adguard)

@gorhill
Copy link
Member

gorhill commented Dec 31, 2021

But basic behaviour should be actually same across all adblockers

And why assume uBO is wrong? If the other blockers do not trigger on *$popup,3p,domain=streamlare.com, does that mean they would not close actual malicious popups as well?

@ghajini
Copy link
Author

ghajini commented Dec 31, 2021

@gorhill before 10 seconds popup filter *$popup,3p,domain=streamlare.com is triggered and closes the tab

after 10 seconds i can download the video normally
would you please?

@gwarser
Copy link

gwarser commented Dec 31, 2021

I noted some thoughts in https://listauthorschat.slack.com/archives/C010N14G4TF/p1640794269041100?thread_ts=1640788146.040900&cid=C010N14G4TF

The download button href is correct - should uBO close popup afer user-initiated click on "Original" download button on streamlare? Even if this is after scripted popup from player inside atishmkv.

@ghajini
Copy link
Author

ghajini commented Dec 31, 2021

i first reported in 2019 also uBlockOrigin/uAssets#5374 (comment)
(site is dead btw)

@gorhill
Copy link
Member

gorhill commented Dec 31, 2021

Ok I finally get it now. I need to investigate whether uBO can distinguish actual popups versus download requests.

@gorhill gorhill transferred this issue from uBlockOrigin/uAssets Dec 31, 2021
@gorhill
Copy link
Member

gorhill commented Dec 31, 2021

Sorry about being hard headed, I was blinded by the fact that all seemed fine in the logger output.

The issue is that the new tab opened, https://streamlare.com/v/RWwM7lM8ZPPzZKbo, is in popup-candidate status for at least 10s (the 10s which is a mitigation for others cases, this won't change). So for 10s, any navigation away from the original https://streamlare.com/v/RWwM7lM8ZPPzZKbo is going to cause a test against popup filters. The download operation causes a document to be created for the current tab, and since the URL of the download is 3p to streamlare.com, it causes the tab to close.

The difficulty is that browser's webRequest.onBeforeRequest API does not distinguish between document fetched for download purpose or fetched for tab purpose -- and thus uBO treats the downloaded resources as any other document. Not sure how this is best solved with minimal amount of code changes, the popup blocking code has become complex over the years to solve all sort of reported issues.

Note that the fact the other blockers not being triggered could simply mean they are vulnerable to popups which are triggered a few seconds after navigation, this would have to be tested on their side.

gorhill added a commit to gorhill/uBlock that referenced this issue Dec 31, 2021
Related issue:
- uBlockOrigin/uBlock-issues#1912

Related commit:
- 7713597

In above related commit, uBO was modified to cache the URL of the
last clicked link, and to use this cached URL to test for the
legitimacy of the newly opened tab.

The current commit add back a test against the URL of the last
clicked link to avoid false positives when navigating from within
the newly opened tab.
@uBlock-user uBlock-user added bug Something isn't working fixed issue has been addressed labels Jan 1, 2022
@ghajini
Copy link
Author

ghajini commented Feb 6, 2022

This is happening again ie download request is closed by popup filter within 10 sec
ublock origin dev, google chrome Version 98.0.4758.81 (Official Build) (64-bit)

STR=

  1. first add streamlare.com#@#+js(aopr, open) { this filter blocks new tab of streamlare as well as popups}

  2. navigate to https://atishmkv.life/antim-the-final-truth-2021-zee5-web-dl-hindi-dd2-0-1080p-720p-480p/

  3. click server 2 ultrafast

  4. now click this download button

Screenshot (11)
this will open new tab of https://streamlare.com/e/RWwM7lM8ZPPzZKbo

5.now click download > original within 10 sec interval
download request is closed by popup filter from easylist *$popup,3p,domain=streamlare.com

Screenshot (13)

Expected behaviour= able to download the file

Actual behaviour= not able to download the file

@gwarser
Copy link

gwarser commented Feb 6, 2022

Second player does not load.

@ghajini
Copy link
Author

ghajini commented Feb 7, 2022

On my side it loads, you need to click server 2 ultrafast> click to play

@uBlock-user
Copy link
Contributor

Never loads for me either.

@ghajini
Copy link
Author

ghajini commented Feb 7, 2022

ok although player loads on my side, you load this website
https://w-123movies.com/episodes/power-book-iv-force-x9NLdw-season-1-episode-1/
click streamlare server from servers list, (Steps to reproduce is same)

screenvideo=https://gofile.io/d/AnV2oN

@gwarser
Copy link

gwarser commented Feb 7, 2022

Still does not load, but works if I open https://streamlare.com/e/b8K02DP6NK6lygB1 directly.

Looks like clicking on the "Original" button opens about:blank tab and then redirects to final download URL.

@gwarser
Copy link

gwarser commented Feb 7, 2022

@@||ssl0d.com^$popup,domain=streamlare.com

@gwarser
Copy link

gwarser commented Feb 7, 2022

Looks like clicking on the "Original" button opens about:blank tab and then redirects to final download URL.

It does not now. Hmmm...
obraz

@ghajini
Copy link
Author

ghajini commented Feb 7, 2022

@@||ssl0d.com^$popup,domain=streamlare.com

that is workaround ,i can even badfilter easylist filter,but that's not the point here....the domain you pointed was different days ago and it will change henceforth again...can we get fix?

@gwarser
Copy link

gwarser commented Feb 7, 2022

ABP does not even opent the download page after clicking the button in player ui.


Add-ons handle popup option differently. That is how it is.

@ghajini
Copy link
Author

ghajini commented Feb 7, 2022

i never use ABP, will you try adguard browser extension?

@gwarser
Copy link

gwarser commented Feb 7, 2022

@gorhill can this 10s timeout be reset when user interacts with the page?

@gwarser
Copy link

gwarser commented Feb 7, 2022

Actually - I did not even checked if it's even the case of delayed detection. Source page is streamlare.com, and popup ssl0d.com (or smth.) processed by global click event. @ghajini does it work if you wait in this case too? I cannot reproduce anymore - someone added exception?


No popup is detected anymore.

@gorhill
Copy link
Member

gorhill commented Feb 7, 2022

If we keep loosening the heuristic, it's a matter of time before someone report that now there are unwanted popups as a result of loosened heuristic, which came about after years of repeated fine tuning.

From what I see, the clicked link navigate to www-0r.ssl0d.com, which responds with a 301 redirect to www-uck50271.ssl0d.com, so as far as uBO is concerned, the ultimate navigation target does not match the clicked link, and this is deemed an unwanted popup, as per EasyList's *$popup,3p,domain=streamlare.com.

Maybe uBO should take into account the response header content-disposition as a hint that we are not dealing with a popup.

@ghajini
Copy link
Author

ghajini commented Feb 7, 2022

@gwarser after 10 sec, popup filter doesn't match and i can download the file

@uBlockOrigin uBlockOrigin deleted a comment Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed issue has been addressed
Projects
None yet
Development

No branches or pull requests

5 participants