Mysterious codes are active and causing redirecting actions to unfamiliar websites upon clicking

Issue:- Upon clicking on the NAVBAR menu or any div element on my bootstrap website, it sometimes redirects to unwanted ads or unfamiliar links in a new tab.

Links imported from hosted file:-

<link rel="stylesheet" type="text/css" href="css\bootstrap.min.css">

    <script src="js/jquery.min.js"></script>
    <script src="js/main.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>


    <link rel="stylesheet" type="text/css" href="css\style.css">

    <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">

    <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">

    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/all.css" integrity="shaxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
        crossorigin="anonymous">

<script src="https://maps.googleapis.com/maps/api/js?key=xxxxxxxxxxxxxxxxxxxxxxxxxx&callback=myMap "></script>

Findings during Inspection:-

I have meticulously reviewed my code multiple times when the redirection occurs on clicking the menu. I couldn't identify anything suspicious... But upon closer inspection when the redirect links appeared, I noticed additional script sources embedded into my files (visible only in browser inspection mode). These unknown parts of my code stand out.

1) The following 2 scripts are replacing 'js/jquery.min.js' in the head tag:

<script src='//117.240.205.115:3000/getjs?nadipdata="%7B%22url%22:%22%2Fjs%2Fjquery.min.js%22%2C%22referer%22:%22http:%2F%2Famans.xyz%2F%22%2C%22host%22:%22amans.xyz%22%2C%22categories%22:%5B0%5D%2C%22reputations%22:%5B1%5D%7D"&amp;screenheight=768&amp;screenwidth=1360&amp;tm=1530041241377&amp;lib=true&amp;fingerprint=c2VwLW5vLXJlZGlyZWN0' async=""></script>

<script src="http://amans.xyz/js/jquery.min.js?cb=1530041241381&amp;fingerprint=c2VwLW5vLXJlZGlyZWN0&amp;onIframeFlag" type="text/javascript"></script>

2) This element is added to the body tag right after importing the Google API:

<span id="notiMain">
<script src="//go.oclasrv.com/apu.php?zoneid=1492761" type="text/javascript">< /script>
</span>

3) Another element found in the body tag:

<div class="pxdouz70egp12" style="left: 0px; top: 9360px; width: 658px; height: 650px; background-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"); position: absolute; z-index: 2000; </div>

4) Analysis of the redirect link reveals the following HEADERS information:

Request URL: http://cobalten.com/apu.php?zoneid=1492761&_=1530105294644
Request Method: GET
Status Code: 200 OK
Remote Address: 188.42.162.184:80
Referrer Policy: no-referrer-when-downgrade
Cache-Control: private, max-age=0, no-cache
Connection: keep-alive
Content-Encoding: gzip
Content-Type: application/x-javascript
Date: Wed, 27 Jun 2018 13:14:57 GMT
Expires: Mon, 26 Jul 1997 05:00:00 GMT
P3P: CP="CUR ADM OUR NOR STA NID"
Pragma: no-cache
Server: nginx
Strict-Transport-Security: max-age=1
Timing-Allow-Origin: *, *
Transfer-Encoding: chunked
X-Content-Type-Options: nosniff
X-Used-AdExchange: 1
Provisional headers are shown
Referer: http://amans.xyz/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
zoneid: 1492761
_: 1530105294644

Steps taken to resolve the issue:-

After thorough examination, I confirm that there is no script within my code causing these redirects. It's likely an issue with my browser or Windows system being compromised. To address this, I tested the website across three different browsers - EDGE, CHROME, FIREFOX - and encountered the same problem. Subsequently, I upgraded to Windows 10 from Windows 7 and performed a fresh installation, but the issue persisted. Seeking assistance from Hostgator support yielded no evidence of server compromise. I also ran malware detection software, which merely alerted me that the browsers were redirecting to outbound IDs with domain names such as go.oclasrv.com without taking any corrective action.

**

Seeking a Resolution???

**

UPDATE:-

A similar redirect occurred while accessing Hostgator support feedback link..

Upon careful observation, I noted that the domain name in the string was replaced by rateus.in The zoneid=1492761 remained consistent regardless of the insecure link accessed... Additionally, cb=xxxxxxxxxxxx and tm=xxxxxxxxxxx varied across different links, while fingerprint=c2VwLW5vLXJlZGlyZWN0 remained constant throughout all visited links.

<script async="" src="//117.240.205.115:3000/getjs?nadipdata=&quot;%7B%22url%22:%22%2Fcommon%2Fjs%2Fjquery-1.7.1.js%22%2C%22referer%22:%22http:%2F%2Frateus.co.in%2Findex.php%3Fbrowse%3DHostGatorIN_Chat_HGIChatCSAT%22%2C%22host%22:%22rateus.co.in%22%2C%22categories%22:%5B0%5D%2C%22reputations%22:%5B1%5D%7D&quot;&amp;screenheight=768&amp;screenwidth=1360&amp;tm=1530191489196&amp;lib=true&amp;fingerprint=c2VwLW5vLXJlZGlyZWN0"></script>

<script type="text/javascript" src="http://rateus.co.in/common/js/jquery-1.7.1.js?cb=1530191489199&amp;fingerprint=c2VwLW5vLXJlZGlyZWN0&amp;onIframeFlag"></script>

<span id="notiMain"><script type="text/javascript" src="//go.oclasrv.com/apu.php?zoneid=1492761"></script></span>

My operating system has been fully upgraded to Windows 10 Pro with Chrome as the exclusive browser sans any plugins...

The issue persists across various browsers including EDGE and Firefox.

Any JavaScript experts available to provide guidance?

Answer №1

It appears that your ISP may be injecting JavaScript files into your browsing experience. Have you noticed this while using BSNL broadband? Recently, there have been reports of Adware injections on non-encrypted websites by BSNL.

The best solution I can suggest is to either secure your website with HTTPS or consider switching your internet service provider.

Answer №2

The problem you're experiencing appears to be originating from the server side. It seems like there might not be any issues with your code, but rather, the server has been compromised by malware injecting malicious code into your website.

To address this issue, I recommend taking a backup of your existing code, updating your FTP hosting passwords, wiping clean your server, and then reintroducing your code. If the problem persists, it may be necessary to consider changing hosting providers for a more secure environment.

Answer №3

If you notice unfamiliar scripts coming from the following IP addresses, it is likely a script injected by BSNL ISP.

61.0.245.90, 117.205.13.171

These scripts are typically inserted when visiting HTTP websites. Since HTTPS employs Transport Layer Security, it cannot be interfered with by the ISP.

The scripts originating from this IP serve as a gateway to download additional ad scripts from various ad networks. Many of these ad networks engage in intrusive advertising tactics, such as hijacking user mouse clicks to launch pop-up ads.

BSNL justifies this behavior as a feature designed to improve the browsing experience for their customers. A comprehensive article discussing BSNL's injection of these scripts and how to block them can be found here.

Answer №4

Great Find!

BSNL's servers have been facing issues with corruption and malware infections lately due to inadequate security measures.

A domain called naganoadigei.com was registered specifically to distribute malware and direct users to phishing websites.

In February 2019, they managed to fix the problem. However, a new form of ad-based redirects emerged in the same month under the name humparsi.com

To check if the site has been compromised, you can visit Sucuri


Alternatively, you can block outgoing requests from your system by modifying the DNS entry.

Go to %windir%\System32\drivers\etc and edit the hosts file in elevated mode or with Admin authorization. Add these lines to your hosts file:

0.0.0.0 preskalyn.com
0.0.0.0 xalabazar.com
0.0.0.0 humparsi.com
0.0.0.0 naganoadigei.com
0.0.0.0 cobalten.com
0.0.0.0 rateus.co.in
0.0.0.0 go.oclasrv.com
0.0.0.0 onclickmax.com
0.0.0.0 bsnl.phozeca.com
0.0.0.0 phozeca.com
0.0.0.0 c.phozeca.com

The mentioned sites do not have SSL encryption

To block a specific IP address, you can block outbound connections using the firewall settings

To minimize any potential negative impact, consider blocking JavaScript by installing browser extensions like NoScript or ScriptSafe, as well as using HTTPS Everywhere

To identify which application is using an assigned IP address with port number:

C:\Windows\system32>netstat -anob

Answer №5

To stop the intrusive ads caused by BSNL IP injection, consider blocking the specific URL from your router's security settings. In my case, the offending BSNL URL was

Answer №6

SiteGuardian has successfully addressed this issue, as noted in this commit, to prevent clickjacking. The malicious script is active on Mobile Browsers, generating unwanted New Tab advertisements.

Make sure to update your SiteGuardian Filters to the latest version for protection.

Answer №7

It appears that blocking this specific URL has proven to be quite effective.

You can make these changes in the router by visiting this link In Router

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The object's type remains a mystery

While working on implementing jwt authentication in Ionic, React with TypeScript, I faced a typescript error when trying to add a check in my App.tsx file after successful implementation. The error stated: Object is of type 'unknown' Below is ...

In node.js, what is the syntax for invoking a function within a struct from that same function?

Here is a brief overview of my code: exports.entity = { name: "Foo", //Etc... start: function () { this.attack(); }, attack: function () { setTimeout(attack, 1000); //Doesn't work ...

Using jQuery to remove any HTML tags from user input

I have multiple inputs with text, but they are displaying with unwanted HTML tags. I attempted various solutions without success. Below is my jQuery code to extract data from a table: $(editModal+" #Website").val(n);; Here is an example of my input code: ...

Updating a numeric field in Mongoose by a percentage of its current value

Looking for a way to reduce prices of items in Mongoose. { name:"itemname", price: 30 } I want to apply a 10% reduction to the price, but $inc and $mul won't work for this scenario. {$mul: {price:0.10}} This code would reduce the price to 10% of t ...

Accessing a global variable in AngularJS while using ng-data-repeat functionality

Currently in my Angular project, I am displaying block information using the ng-data-repeat directive and accessing various values. Below is a snippet of a table utilizing this repeat feature: <tr class="fader" ng-repeat='b in blocks'> ...

no data in next-redux-wrapper

I've been struggling to get my Next.js app working with getServerSideProps() for server-side rendering. I attempted to use next-redux-wrapper but the state is coming back empty. *Note: Redux was functioning properly while on the client side, but now ...

`Monitoring and adjusting page view during window resizing in a dynamic website`

Situation: Imagine we are reading content on a responsive page and decide to resize the browser window. As the window narrows, the content above extends down, making the entire page longer. This results in whatever content we were previously viewing bein ...

Is there a way to ensure a table created with CSS display: table adheres to a specified minimum height?

Using display: table, display: table-row and display: table-cell, I am dealing with a large number of rows in a table and utilizing AngularJS ng-repeat to populate them. Although the example shows just two rows, in reality there are many more that all need ...

Steps to eliminate <br> tags from text nodes and enclose them in <p> tags while including <b>, <i>, <a>, and other elements

My current status (UPDATED): <div class="entry-content"> <h1>This heading won't be shown</h1> Written by: Me <br></br> On: 01/01/2017 <br></br> <br></br> When quoting: ...

Controlling Formatting in ASP.NET

Feeling puzzled by a seemingly simple question with no clear solution in sight. We're attempting to transition an interface to an ASP.NET control that currently appears like this: <link rel=""stylesheet"" type=""text/css"" href=""/Layout/CaptchaLa ...

Show blank value if there are no search results, along with an additional menu option

I am currently working on a Typeahead feature with a customized menu using the renderMenu method. In this setup, I have added 2 custom menu items at the bottom - one divider and a button. An issue arises when there are no search results. If I do not inclu ...

What is the best way to have my transparent navigation bar float on top of my background in a parallax-scrolling website?

Currently, I am working on creating a website with a navigation bar that has no background and floats on top of a background image. However, I am facing an issue with my parallax-scrolling website. Whenever the page is scrolled to the second section, the n ...

What could be causing the issue with resizing windows when using a modal?

My modal contains a slider, but it doesn't show up on the screen when the modal is displayed. Interestingly, if I manually resize the window, the slider appears. I looked into this issue and found that others have mentioned it's related to the mo ...

When using Angular JS, you can easily display a message and refresh the page with just one click

Is there a way to automatically refresh the page after displaying a message or alert indicating "Successful" or the opposite? How can I make this work? I attempted to refresh the code but the message does not appear afterwards. HTML CODE: <div class= ...

The pictures are not showing up in the photo album

I am currently in the process of building a swim image gallery inspired by the Flex Panel Gallery project from Javascript30 (Repo Link). Upon previewing the site in a browser, I encountered an issue where the images extend beyond the frame, leaving only t ...

Tips for saving query string values in a variable

In an attempt to pass the value from error.jsp to staff.jsp page, I encountered an issue. Upon arrival to <%= (String)request.getParameter("facilityname")%> The problem arises when a user enters invalid credentials on the form in staff.jsp. The pag ...

Fetching data from external sources using the MongoDB copy item function

Here is an example of an array: "data": [ { "photo": "no-photo.jpg", "_id": "5e9aabd9c975a10a7ee48476", "title": "Title", "description": "Description", "phone": "77477926783", ...

Issue with reordering columns in Bootstrap 5

Currently, I am transitioning to Bootstrap 5 and facing challenges with the column re-ordering feature. Within my layout, I have three columns: a title, an image, and a paragraph of text. My goal is to display the image on the left, the title on the right, ...

employ the inverse Euler application

var a = new THREE.Euler( 0, 1, 1.57, 'YXZ' ); var b = new THREE.Vector3( 1, 0, 1 ); var c = b.applyEuler(a); In order to get the value of c using b.applyEuler(a), I am looking for the reverse operation involving applyEuler. Given that the value ...

Exploring the possibilities of using jQuery to access global variables in node.js

My issue has 3 main components. I need to declare a server-side (node.js) variable to store data for the duration of the server run, specifically just a number. I must send a number from the client (jQuery) to the server in order to update the server v ...