Weekend Spam Issue

TalkTalk about LibraryThing

Join LibraryThing to post.

Weekend Spam Issue

1timspalding
Edited: Sep 16, 11:41 am

Short version:

Between Saturday afternoon to Sunday morning spammers were able to insert "redirects" on work pages, sending users to terrible sites. We have removed the content and fixed the problem. We are monitoring for problems, working to find any other vulnerabilities, and repairing some lingering issues caused by our fix. We apologize for all of this.

See Spam Fix Bugs and Infelicities to discuss any bugs you see.

Long version:

Over the weekend, from around 4pm Saturday to 9am Sunday (EST), we had a spammer adding malicious content to work pages. Essentially they used the site's ability to add "Published Reviews" and "Quick Links" to redirect LibraryThing users to other sites. The other sites were the usual dreadful mix—porn, invitations to download apps, etc. This didn't involve any "back-end" compromise of LibraryThing systems, or to users' computers; they were just adding content to LibraryThing's web pages like any user. But the effect was extremely distressing to many members!

We are sorry to any users who were on the site at that time and were distressed. The problem is now fixed, and LibraryThing will behave normally. If you have any open tabs from the sites that LibraryThing sent you to, close them. I hope most of our users would never download an unknown application from the internet, still less because a flashing robot animation told them to, but if you did, you need to deal with that. The FTC's "How To Recognize, Remove, and Avoid Malware" is a good place to start.

Ultimately this is our fault. The fields in question should have more completely "cleaned" input, to screen out such problems. Malicious agents, especially scrapers and spammers, are a constant annoyance and threat to any website today, and we spend a lot of time and effort fighting them. We should have been aware of the potential issue here.

I'd like to thank the members of Spam Fighters who first noticed the problem, and helped me fix it.

What We've Done

  • We fixed the direct problem, getting rid of all the bad content and preventing the addition of more.
  • I have launched an effort to find any other vulnerable places where user content can be turned against the site.
  • We are monitoring for suspicious activity.
  • We have put some extra site-wide safeguards in place (see below).
Over the weekend we had really only one person on—myself—and I could only fix the larger issue. But, as it's no longer the weekend, we have nearly the whole team (12 people today!) working on it now.

While few users will notice, the initial things we did to "button up" the site have caused a few features to break. These include reordering Series entries. We also completely disabled all editing of Quick Links for now. We are working to fix these issues soon.

Questions?

If you have any questions, reply here, send me a message on LibraryThing, or email info@librarything.com.

I'd like to keep this thread mostly about the main issue—the spam attack. I have made a second Talk topic for "Spam Fix Bugs and Infelicities." We will be using that to circle up on the problems created by the fix, as it were.

Apologies again for this issue, and thank you for your support.

22wonderY
Sep 16, 12:08 pm

We applaud several features of this site that speeds up corrections.

- the trust you give to members to participate in policing many aspects of the site
- the ease in reaching staff to notify of any issues that need to be addressed. I was able to reach Abigail on a Saturday evening both by email and messaging LT’s Instagram account.

We are loyal members because you have built a site we love to hang out at; and we appreciate you and all your work.
Live long and prosper!

3Charon07
Sep 16, 12:16 pm

>2 2wonderY: Hear, hear!

4SandraArdnas
Sep 16, 12:26 pm

>2 2wonderY: Wonderfully said. I co-sign it :)

5paradoxosalpha
Sep 16, 12:29 pm

Yay, Tim!

6laytonwoman3rd
Sep 16, 1:35 pm

Joining the chorus here...there's no other website that I use regularly that functions as well as this one.

7timspalding
Sep 16, 1:39 pm

>6 laytonwoman3rd:

Visit better websites! ;)

8norabelle414
Sep 16, 1:54 pm

>1 timspalding: Thanks for being so responsive on a Saturday afternoon!
I second everything that >2 2wonderY: said, as well as adding my praise for such a well-designed helpers log and the incredible coincidence of Abigail adding published reviews to the helpers log a mere month and a half ago!

Not sure if this is the right thread for it but:
In addition to fixing the javascript-in-published-reviews issue, were you also able to fix whatever allowed the spammers to post tens of thousands of published reviews at once? That much activity alone really slowed down the Helpers Log and made it harder to find new spammers, even aside from the content of the reviews.

9timspalding
Edited: Sep 16, 1:58 pm

>8 norabelle414:

Yes. A good question. Not yet. Your solution came up in our all-tech meeting today. There are several solutions that achieve that result, and we are working through them.

10PlumfieldLL
Sep 16, 9:50 pm

>1 timspalding: Thank you for all that you doing and are doing! This is such a fantastic resource because of all that you so!

11timspalding
Edited: Sep 18, 4:05 pm

If you're a member of the BETA (Board for Extreme Thing Advances) you'll see a note I wrote there:

https://www.librarything.com/topic/363461

If you're not a member, and are interested, go to https://www.librarything.com/ngroups/690/Board-for-Extreme-Thing-Advances and request to join.

12knerd.knitter
Sep 19, 2:16 pm

Quicklinks is back!

13timspalding
Sep 19, 2:24 pm

Quicklinks is back. You can't edit most of them—but can edit venues.

14SandraArdnas
Sep 19, 5:33 pm

>12 knerd.knitter: Open Library still throws a blank page saying just 'false'. Upon checking so do LoC, Project Gutenberg, and anything else I tried except Google Books and Amazon.

Some are missing links altogether, ISFDB for instance and others show 'ERROR: Name Missing' as a link. AFAICT from my sample, only Amazon and Google quick links work

15knerd.knitter
Edited: Sep 20, 7:54 am

>14 SandraArdnas:

I should have explained: the table was basically destroyed by the spammers, so we had to recreate it from a backup that was made about a year ago. Not everything will be there, but it was the best we could do quickly.

And the "ERROR: Name Missing" is ones that we couldn't repopulate.

16lilithcat
Sep 20, 10:48 am

Don't know if this is another attempt, but see https://www.librarything.com/topic/356948#8626899

17civitas
Sep 21, 12:07 pm

>3 Charon07: Overzealous \ slashes showing up on Awards pages ... I'm hunting around for any new issues

I just found an HTML problem on my Profile page that may be related:

All the <img src="..."> tags that I coded have had a pair of \" characters (%5c%22) inserted at the beginning and end of the src attribute content string: <img src="%5c%22...%5c%22"> so the images would no longer load.

These links may have all begun with: https: which was dropped when the new characters were inserted around the remaining URL. Also, some img tags had height attributes that were stripped out when the tags were rewritten.

I was a bit impatient and fixed the HTML to see if the issue was caused by LT further limiting what was allowed in Profile page HTML. So, if you want to see an example in the wild, you'll need to find a Profile that uses the img tag and was similarly updated - I haven't found one. (Note: I restored one link to the way I found it, so you can see the effect - at the start of the About Me section.)

Hopefully, it's just the Profile page being updated as part of this fix. On the other hand, though, this issue might be a side effect of a different change.

18jasbro
Edited: Oct 18, 2:21 pm

>15 knerd.knitter: Will any of these eventually get repopulated? I'm particularly missing Bookfinder.com and WordCat.org.

19lesmel
Edited: Oct 18, 2:23 pm

>18 jasbro: bookfinder is there. Quick Links > Online > Booksellers. Do a page find (CTRL + f) for bookfinder. There are four on the list. Worldcat is there too. Same place.

20AnnieMod
Oct 18, 2:36 pm

>19 lesmel: All of them are there. But because they are now in Booksellers, they do not show up on the main work page - that's the part that got lost (the classification by type). And that is why none of them work anymore - as moving between the tabs changes them apparently.

21lesmel
Oct 18, 3:18 pm

>20 AnnieMod: What doesn't work? I've tried Worldcat and bookfinder QL. I'm finding things with the QLs. It's an extra click to Local Book Search before those QL show up.

22SandraArdnas
Oct 18, 3:44 pm

>21 lesmel: I can't even get WorldCat to show among quick links. Adding it does nothing once you go to work pages. It's till not even listed. IIRC the same was true for ISFDB, but moving it to databases fixed it, so perhaps that's all that's needed, at least for some.

23lesmel
Oct 18, 3:54 pm

>22 SandraArdnas: So, if you go here https://www.librarything.com/work/3429/get/183671848 and you have WorldCat added in the QLs, it doesn't show on the right?

24lesmel
Edited: Oct 18, 4:02 pm

>23 lesmel: Huh. Looks like someone moved Worldcat back to the Popular Databases tab and it's showing from the work page and not just the Local Book Search page.

25AnnieMod
Oct 18, 4:21 pm

26jasbro
Edited: Oct 24, 6:06 pm

>19 lesmel: As noted above, WorldCat on work pages is resolved. I've never really focused on Local Book Search, but when I go there now, I don't find either "Online > Booksellers," Bookfinder, or ISFDB, only "Bookstores," "Libraries," and "Swap Sites" (not including Bookfinder or ISFDB). And I can't tell how to move any of what I do see to "databases." What am I missing?

>25 AnnieMod: Seen! Thanks ...

27knerd.knitter
Oct 25, 7:58 am

Bookfinder and ISFDB are both added to databases now.

28mnleona
Oct 25, 8:15 am

My first time to read these messages. LT tries so hard on their site and I find it one of the best sites I use. Thanks for all you do.

29jasbro
Oct 25, 4:46 pm

>27 knerd.knitter: Thank you! I don't (yet) see them on a work page. Is there some special magic to access them as databases?

30SandraArdnas
Oct 25, 4:50 pm

>29 jasbro: You have to readd them (and remove 'error name missing' ones, those are not coming back)

31jasbro
Oct 25, 4:54 pm

>30 SandraArdnas: Thanks! I just figured that out. I must have done it before at some, but haven't needed or used it since - and completely forgot about it.