LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2021, 04:42 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
Can a browser be hacked?


I use Ubuntu 18.

For years I have used Firefox.

Lately, when I try to call baidu.com, the Chinese search engine, it often times out.

I thought, "There's no way the Chinese government is blocking Baidu! Maybe it's my internet connection?"

I installed Chromium.

baidu.com opens no problem in Chromium.

Now the funny part: I have a little webpage for giving homework and, because of the virus, also online class sometimes.

This morning, I opened my webpage in Chromium, everything OK.

Around lunchtime, I noticed that the font on my webpage had become some strange digital type font, hard to read.

I did not change any settings in Chromium, at least not that I know of.

I opened my webpage with Firefox. Everything normal.

How can the webpage font suddenly change in Chromium, without my input?

(I installed Opera now. Opera looks nice, and my webpage displays normally.)
 
Old 03-04-2021, 04:53 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,913

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
it may depend on the settings (of the browser). I guess a javascript (or similar) can do anything, any time on its page (without hacking the browser).
 
Old 03-04-2021, 01:15 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,236

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I've seen this happen when a browser that's statically linked against FreeType gets updated to a version that's dynamically linked against FreeType (or vice versa).
 
Old 03-04-2021, 02:51 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Edit.

Where did I get that reply from?

Last edited by jefro; 03-04-2021 at 08:02 PM.
 
Old 03-04-2021, 06:35 PM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Thank you all for your replies!

I found the culprit!

Yesterday, I didn't close Opera all day. But at some stage, I think I tried to make Baidu my default search engine!

Opera has a tab: Speed Dial, very nice, add links to the webpages you use frequently, open a new tab, click! Great!

Opera comes with some commercial links, Amazon, Kayak, others.

This morning, when I opened Opera, I found a whole raft of Chinese links there.

Also, 搜狗 Sugou, a Chinese search engine, had installed itself as the default search engine.

Where does Opera keep its config??

Where does Opera keep it's config??

I could not remove Sugou, I could not change to another default search engine.

In China, I can't use Google without the VPN on, so I use Bing

I uninstalled Opera.

Now, I cannot even add Bing as search engine. The Add button is disabled.

Sugou must have left a script somewhere. So, even though I removed and reinstalled Opera, I'm stuck with this invasive Chinese shit!

Where are the settings, the .config file for Opera browser in Ubuntu??

Last edited by Pedroski; 03-04-2021 at 07:09 PM.
 
Old 03-04-2021, 07:30 PM   #6
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
It gets worse:

I used:

sudo snap remove --purge opera

to uninstall Opera, then I reinstalled it with snap

When I opened Opera, everything was OK, except the search engine was set to Google, which is hard to use in China.

So I set it to Bing.

That doesn't seem to take immediate effect, so I closed Opera, then opened it again.

All the Chinese shit back again, Sugou my default browser, unable to change that, unable to add another search engine!

Where are the Chinese hiding this config script on my hd??
 
Old 03-04-2021, 08:32 PM   #7
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
I ran

sudo snap remove --purge opera again

In my home folder, I have a folder snap. It contains a folder opera, with configuration data for Opera browser. I deleted it and emptied the trash.

I reinstalled Opera with snap

I open Opera, it looks good, except, I cannot add a search engine. The window opens, but the Add button is disbled.

I set Bing as default search engine. No change, Google is still the default search engine.

I close Opera and open it again.

All the Chinese shit back again, Sugou my default browser, unable to change that, unable to add another search engine!

Where are the Chinese hiding this config script on my hd??
 
Old 03-04-2021, 09:29 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,341
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
A web search for "Sugou browser hack" turns up a number of articles about this. Apparently Sugou has a less than stellar track record.

This was the first one in the search results: https://botcrawl.com/how-to-complete...press-toolbar/

Norton reports that botcrawl is "safe."
 
1 members found this post helpful.
Old 03-05-2021, 01:48 AM   #9
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Well, it was my fault for trying Baidu as default search engine.

I should have just put a link in the Speed Dial tab!

Still struggling to get rid of this.
 
Old 03-05-2021, 02:01 AM   #10
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
I just tried deleting the browser.js file in the folder

/home/pedro/snap/opera/113/.config/opera/

I also opened

default_partner_content.json

This file had some nasty red marked illegible code stuff at the top. I deleted that.

Also siteprefs.json I deleted the entire contents.

Then I closed Opera and reopened.

browser.js is back, but the default search engine was still Bing.

However, the default_partner_content.json had that nasty red code at the top again.

I'd like to know where the Chinese hid their stuff!!
 
Old 03-05-2021, 04:36 AM   #11
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Looks like Opera IS the hack:

From opera.org forum:

Quote:
When you run Opera, it will try to download browser.js from Opera'S servers - that much is normal. It will also try to determine what country you live in and change the "built-in" search engines to something appropriate.
 
Old 03-05-2021, 02:26 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Thanks for the update and solution.

Now where do they make Opera at?
 
Old 03-05-2021, 05:13 PM   #13
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
China????
 
Old 03-05-2021, 05:18 PM   #14
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628


 
Old 03-06-2021, 05:56 PM   #15
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
As a pleasant end to this story:

I purged Opera, got Vivaldi. Vivaldi is very nice!! I can recommend it!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is there a browser than can be set up to open links in another browser such as firefox? Ulysses_ Linux - Software 12 09-14-2018 02:23 PM
Can't install chromium-browser.tcz from App Browser in Tinycore-5.3-19 M.Tenenbaum Linux - Newbie 1 06-05-2014 11:18 AM
[SOLVED] My network is hacked for sure. I want to reinstall but it will be hacked again. MsRefusenik Linux - Security 19 10-18-2010 05:02 PM
Hacked sshd, and can't delete it ?!?! trubi Linux - Security 2 03-04-2004 09:05 PM
Got Hacked - What can I do? cli_man Linux - Security 5 12-22-2003 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration