Email or username:

Password:

Forgot your password?
Top-level
Eugen Rochko

@msh Can I see this fake 404 page? Might be able to understand better what produces it

8 comments
Mark Shane Hayden

@Gargron coales.co is my instance and as you can see it's not right when you go there.

Oddly anything not that or in any url not beginning in /web/... still works and the API still works so I am resorting to tusky and pinafore to use my instance. For example I can still go to /about or /public and do my admin and moderation at /admin

Eugen Rochko

@msh This is very wrong. This does not look like a nginx directory listing. And Mastodon doesn't have anything that produces that output. It's listing files in the Mastodon root directory, not public! Thankfully .env.production can't be retrieved, but still. I would start suspecting foul play at this point. Some kind of malware or hack?

Eugen Rochko

@msh Also check the public directory for an index.html file, it could hijack the / path like that if it existed, it's not supposed to exist. But check what/who created it, if that's what's happening.

CMDR Yojimbosan UTC+(12|13)

@Gargron @msh 'poc'o might be a symlink in that directory that is broken perhaps?

Eugen Rochko

@msh By the way if it's any clue it seems like that index.html is two different pages concatenated, if you look at the source. First it's the 404 page about /poco and then a directory listing page.

Mark Shane Hayden replied to Eugen

@Gargron you're right, I hadn't noticed the two stes of <html>...</html> before!

There isn't any indication of compromise in my system and no stray index.html (the whole mastodon direrctory was blown away then live was pulled in from git again). But there is progress. I *can* go to https://.../web and it will let me in again, but that initial redirect from the root URL still does the poco thing. Maybe something is cached somewhere from the first botched upgrade?

Eugen Rochko replied to Mark Shane Hayden

@msh Eh, could be, then delete the nginx cache directory and see what happens

Mark Shane Hayden replied to Eugen

@Gargron

Fantastic!

That did the trick. I'm still bothered that I haven't determined the root cause yet, though it definitely started happening immediately after I did the first upgrade attempt.

Thanks for the tips! I kinda tossed you in my mentions tongue-in-cheek so it was quite beyond my expectations!

There is no way any closed source product or service or anything from the Big Internet Silos would EVER step up like that.

Go Up