We should drop Tesseract, or at least switch forks

3 months ago by AwesomeLowlander to c/main

cross-posted from: https://sh.itjust.works/post/63880645

Issue: Tesseract has a hardcoded hidden instance blacklist, and an even more obfuscated censorship list of various users, instances, communities, and general regex matches.

Also /c/modabuse. Also /c/yepowertrippinbastards. Also lemmy.ml/c/worldnews, comrade, ACAB, and 552 individual accounts across 67 instances, about half of them on lemmy.world.

None of this is in the source code. It's downloaded at runtime from a file nobody has ever looked at.

If you're just tuning in

Tesseract is a third-party web frontend for Lemmy, maintained by asimons04 and licensed AGPL-3.0. Admins deploy it on their own servers alongside or instead of lemmy-ui, and there are public instances of it people use to browse Lemmy generally. If you've used a Lemmy site that didn't look like stock Lemmy, there's a fair chance it was this.

Last week db0 posted a PSA: Tesseract contains a blacklist of instance domains compiled directly into the application. 32 of them. Admins can't see it, can't configure it, and aren't told it's there. Connect to a listed instance and the app tells you it's "incompatible," which is not true.

I went through the code to see how that was implemented. The hardcoded list turns out to be the small half of the system.

There's a second filter policy fetched over HTTP every time the app loads. It isn't in the git repository. It's unauthenticated and world-readable, so anyone can pull it. Right now it carries 552 user accounts, 2,275 username patterns, 54 instances, 97 communities, 289 keyword patterns and 351 domains, with every category set to hide matches rather than flag them. Not collapsed behind a click. Simply absent, with no indication anything was removed.

Verify all of it in ten seconds

curl -s https://tesseract.dubvee.org/tesseract/api/system/policy \
  | base64 -d | gunzip > policy.json

That's the live policy, base64-wrapped gzip, 111KB of JSON when it unpacks. There's a stale fallback copy at /data/policy.dat as well.

It filters criticism of moderators

  • lemmy.sdf.org/c/modabuse — listed
  • lemmy.dbzer0.com/c/yepowertrippinbastards — listed
  • lemmy.dbzer0.com/c/YPTBcirclejerk — listed
  • community regex power ?tripping?
  • keyword censoring me

Call the rest of it whatever you like. This part is not spam defence.

It filters words

The 32 community name patterns include Communis(t|m), Conservativ(e|es|ism), Leftis(t|m), Libertarian(ism)?, ^Green Part(y|ies), Zionis(t|m), (Police|Cops), guillotine and billionaire.

Keywords include comrade, ACAB, neoliberal, proletaria(n|t) and death to.

Filtered communities on instances that aren't blocked: lemmy.ml/c/worldnews, lemmy.today/c/news, lemmy.ca/c/politicalnewscanada, lemmy.ca/c/usa, infosec.pub/c/strategic_unions.

The 552 users aren't bots

67 instances. 272 on lemmy.world alone, 40 on sh.itjust.works, 19 on lemmy.ca, and 28 instances contributing exactly one person each.

355 of the 552 usernames are plain alphabetic, twelve characters or under, median length eight. Only 36 look like spam registrations. A bot list looks like the opposite of that.

Seven of them aren't even Lemmy. There are Mastodon and Friendica accounts in there: people who have never used Lemmy, hidden by a Lemmy frontend, with no possible way of finding out.

I have the list and I'm not posting it. Most of these are ordinary people who got pattern-matched, and 552 names on this comm is a harassment target inside an hour. Run the command above and grep for yourself.

And it lies about it

When the instance block fires you get: "Incompatible Instance. Not Supported. $instance is not compatible with Tesseract."

Nothing is incompatible. It's a policy decision dressed as an API error, and it's what had db0 chasing a version mismatch that never existed.

For the hidden users, communities and keywords, you get no message at all.

Admins can't switch it off

Tesseract has env vars for PUBLIC_DOMAIN_BLACKLIST, PUBLIC_FAKE_NEWS_BLACKLIST and the shortener lists. There is none for either blocklist. enableToxicMode bypasses the other filters and explicitly not this one.

Self-host it and you cannot disable this, nothing in your config admits it exists, and the contents can change without you pulling a commit.

Before someone says it

A lot of that domain list is real spam defence. It filters conservatism as well as communism. "It targets the left" doesn't survive the data and I'm not going to pretend it does.

The problem is that spam filtering and political editorial got welded into one undocumented, remotely-updatable blob, shipped hidden, to admins who've never read it and users who don't know it's there. The spam work is what makes the rest unauditable: "it's a spam list" answers every individual question and none of the whole.

And /c/modabuse is not spam.

Asks

  1. Publish the runtime policy in the repo, or kill the endpoint.
  2. Stop reporting a policy block as a technical incompatibility.
  3. Tell users when something's been hidden. One line.
  4. Give operators an off switch, like every other blacklist in the codebase has.

It's AGPL-3.0 and db0 already forked it. That's the licence working as designed. But forking isn't disclosure, and the admins who need this are precisely the ones with no reason to go looking.

If you run Tesseract, you are relaying a 111KB moderation policy you have never read, under your instance's name, to users who don't know it exists.

I disagree with some of the assertions put forth above about it not targeting the left, etc. And I don't think the asks is relevant, because we should no longer be trusting anything from this person.

Policy file here, for archival purposes: https://file.garden/amIRhTctI0qld2r5/policy.json

magnetosphere 37 points 3 months ago

I support the right of Tesseract maintainers to have their own opinions. I do NOT support their choices to be opaque, misleading, and deceptive about it, though.

Even if they backtracked and got rid of the blocklist, I would’t trust them.

path: 0 24913101, hotness: undefined, score: 37, children: 1
AwesomeLowlander 28 points 3 months ago

Even if they backtracked and got rid of the blocklist, I would’t trust them.

Agreed. They're worse than an unknown party, they're a known malicious one.

path: 0 24913101 24913132, hotness: undefined, score: 28, children: 0
AwesomeLowlander 21 points 3 months ago path: 0 24910269, hotness: undefined, score: 21, children: 1
InEnduringGrowStrong 8 points 3 months ago

Thanks for the ping

path: 0 24910269 24912276, hotness: undefined, score: 8, children: 0
ZombiFrancis 20 points 3 months ago

I disagree with some of the assertions put forth above about it not targeting the left, etc. And I don't think the asks is relevant, because we should no longer be trusting anything from this person.

Exactly. Adding instances like maga.place doesn't mean adding blahaj is somehow unbiased or untargeted. In fact, maga.place actually serves to act as a screen for the deliberate targeting of instances, communities, and users.

path: 0 24913210, hotness: undefined, score: 20, children: 0
eutampieri 14 points 3 months ago

Tesseract is a frontend, not the famous open source OCR software

path: 0 24913594, hotness: undefined, score: 14, children: 1
pastermil 1 point 3 months ago

Yes, I've come to notice that after reading tbru.

path: 0 24913594 24923559, hotness: undefined, score: 1, children: 0
TheDude 9 points 2 months ago path: 0 25021396, hotness: undefined, score: 9, children: 0
SatansMaggotyCumFart 3 points 3 months ago

Are we allowed to post the plain text file?

path: 0 24911562, hotness: undefined, score: 3, children: 4
AwesomeLowlander 6 points 3 months ago

I already linked it at the end of my post. It's too long to post in a single comment.

That said, I don't think it's against any rules if you want to post some text.

path: 0 24911562 24911604, hotness: undefined, score: 6, children: 2
Widdershins 3 points 3 months ago

Your link 404s

path: 0 24911562 24911604 24913542, hotness: undefined, score: 3, children: 1
AwesomeLowlander 8 points 3 months ago path: 0 24911562 24911604 24913542 24913914, hotness: undefined, score: 8, children: 0
VitoRobles 2 points 3 months ago

What do you mean?

I mean by definition, this is a public repo. And it has end users that the main developer has targeted directly.

path: 0 24911562 24923379, hotness: undefined, score: 2, children: 0
clee89 1 point a month ago
path: 0 25704439, hotness: undefined, score: 1, children: 0
clee89 1 point a month ago
path: 0 25702332, hotness: undefined, score: 1, children: 1
otter 1 point a month ago

Are you using any specific app or scheduling tool? It looks like your account is reposting the same few comments again and again.

The comments are being reported and your account will likely be banned as a result

path: 0 25702332 25703167, hotness: undefined, score: 1, children: 0
clee89 0 points a month ago
path: 0 25658497, hotness: undefined, score: 0, children: 0
clee89 0 points a month ago
path: 0 25661336, hotness: undefined, score: 0, children: 0
clee89 0 points a month ago
path: 0 25650972, hotness: undefined, score: 0, children: 1
AwesomeLowlander 1 point a month ago

Fully agreed. Luckily, all major instances have now dropped Tesseract, AFAIK, and the dev has moved on to his next alt account.

path: 0 25650972 25651190, hotness: undefined, score: 1, children: 0
clee89 0 points a month ago
path: 0 25653183, hotness: undefined, score: 0, children: 0
clee89 0 points a month ago
path: 0 25660119, hotness: undefined, score: 0, children: 0
main
main

@sh.itjust.works

login for more options
8520
508
54

Home of the sh.itjust.works instance.

Matrix

go to feed...