76
submitted 2 months ago* (last edited 2 months ago) by festus@lemmy.ca to c/selfhosted@lemmy.world

By 'Git instances' they mean Gogs instances that allow open registration. I know most of the community moved from Gogs to Gitea, and then to Forgejo, but thought this was still worth noting.

top 40 comments
sorted by: hot top controversial new old
[-] scrubbles@poptalk.scrubbles.tech 24 points 2 months ago

Good note, and good callout, we should always call out these things.

But yes if you're self hosting and you both have a public facing instance and allow open registration, you are a much much braver person than I.

[-] jeena@piefed.jeena.net 3 points 2 months ago

I'm not allowing random people hosting their git repos on mine but it's public and they can fork my own stuff on it in theoretically upload some bullshit.

[-] null@piefed.nullspace.lol 1 points 2 months ago

Got curious and lurked your profile. You might want to update your about from Lemmy to PieFed 🙂

[-] jeena@piefed.jeena.net 1 points 2 months ago

Oh, there is still some Lemmy link somewhere? I'm trying to find it but couldn't, where did you see it?

[-] null@piefed.nullspace.lol 2 points 2 months ago

Oh actually it’s on your homepage (jeena.net) in the About section on the left side

[-] bort@sopuli.xyz 5 points 2 months ago

Here are the steps:

  • The attacker creates a standard Git repository.
  • They commit a single symbolic link pointing to a sensitive target.
  • Using the PutContents API, they write data to the symlink. The system follows the link and overwrites the target file outside the repository.
  • By overwriting .git/config (specifically the sshCommand), the attacker can force the system to execute arbitrary commands--

amazing.

[-] addie@feddit.uk 2 points 2 months ago

Especially since any version of Git from the last view years has a passionate hatred of symlinks for this reason, which is a bit annoying if you've a legit usecase. They're either very out-of-date, or have done some very foolish customisation...

[-] JackbyDev@programming.dev 0 points 2 months ago

I think the ZIP standard has something similar and it causes similar problems.

[-] PlexSheep@infosec.pub 1 points 2 months ago

It's because of the old notion of "be generous in what you accept and strict in what you send". I think the error is something about adding more parent directories so that part of your zip file will be extracted above the selected directory. Not all implementations of zip support this "feature".

There are also all kinds of stupid ancient features in tar and zip from a time when hard drives were measured in megabytes or less. The latest episode of the open source security podcast talks about it.

[-] 1984@lemmy.today 3 points 2 months ago* (last edited 2 months ago)

People have open registration on those things... Thats.. Brave...

I have my own gitea instance in my homelab but of course its not accessable from the internet.

[-] quick_snail@feddit.nl 1 points 2 months ago

Well that kinda kills collaboration

[-] greedytacothief@lemmy.dbzer0.com 0 points 2 months ago

I do the same thing. Anything I put on there isn't something that I would share with the Internet anyway. If it was a serious project, sure. It's just nice to have a personal git you can access over a VPN sometimes.

[-] quick_snail@feddit.nl 0 points 2 months ago

I can't understand why anyone would waste time writing code that won't be shared

[-] mic_check_one_two@lemmy.dbzer0.com 1 points 2 months ago

Personal projects. Not everything has to be FOSS. My tiny little script to automate my lights turning green and my smart speaker playing All-Star by Smash Mouth at full volume, so I can jork it in peace? That shit doesn’t need to be public.

[-] quick_snail@feddit.nl -1 points 2 months ago

Yes, it needs to be public. The videos too.

Take my money.

[-] 1984@lemmy.today 0 points 2 months ago

Yeah. If I needed collaboration, I would just whitelist their ips or require everyone involved to use Wireguard vpn, Tailscale or other solutions that allows access without being publically exposed.

[-] quick_snail@feddit.nl 1 points 2 months ago

That kills collaboration from new people who just, like, discovered your project on some Lemmy thread

[-] Lightfire228@pawb.social 0 points 2 months ago

I wonder if it'd be feasible to make a fediverse github

[-] JackbyDev@programming.dev 2 points 2 months ago

Git is already a distributed version control system.

[-] Lightfire228@pawb.social 1 points 2 months ago* (last edited 2 months ago)

But it doesn't have any built-in concept of users, write permissions, or authentication (except for commit signing)

Hosting an unauthenticated git repo would be the equivalent to an open ssh port with no password required

Not to mention collaborative things like issue tracking, PRs, forums, etc

[-] JackbyDev@programming.dev 3 points 2 months ago

Forgejo has all that, and then you can achieve "federation" by virtue of pushing to whatever remote. I wasn't suggesting people use git itself (which is possible). I just meant that it's distributed as opposed to centralized like Subverison is.

[-] WhyJiffie@sh.itjust.works 0 points 2 months ago

no, forgejo doesnt have "all that". you are totally missing the point. git is federated, of course, but the added features of forgejo or any other known git forge is not (yet).

[-] JackbyDev@programming.dev 0 points 2 months ago* (last edited 2 months ago)

concept of users, write permissions, or authentication

collaborative things like issue tracking, PRs, forums, etc

Forgejo has those, yes.

[-] WhyJiffie@sh.itjust.works 0 points 2 months ago

and where does forgejo support federation for issues, PRs?

[-] JackbyDev@programming.dev 0 points 2 months ago

Never said it did, and the comment replying to didn't say it did either.

[-] WhyJiffie@sh.itjust.works 0 points 2 months ago

seems right. actually you were just not responding to the questions of anyone in this chain, but always responding with irrelevant things. and thanks for the downvotes! please bring some more.

[-] JackbyDev@programming.dev 1 points 2 months ago

"never said it did" was a response to where Forgejo supports federation for issues and PRs.

[-] eutampieri@feddit.it 1 points 2 months ago* (last edited 2 months ago)

There was a discussion on Forgejo and ActivityPub IIRC

Edit: this is what you’re looking for: https://forgefed.org/

[-] GreenKnight23@lemmy.world 3 points 2 months ago

this is what I'm talking about when it comes to the selfhosted communities.

if you don't know how to properly segment and vlan your network, you have no business exposing your shit to the internet.

[-] Lem453@lemmy.ca 1 points 2 months ago

If i remember correctly on my gitea (now forgejo) the default is open registration which really shouldn't be the case for projects that are targeted towards self hosters.

My inital install was a long time ago so I don't remember for sure

[-] AmbiguousProps@lemmy.today 0 points 2 months ago

I'm a current gitea user.. should I be moving to forgejo?

[-] victorz@lemmy.world 0 points 2 months ago
[-] AmbiguousProps@lemmy.today 0 points 2 months ago

Thanks! I'll add it to the todo list.

[-] AntiBullyRanger@ani.social -4 points 2 months ago
  1. 🤣😂🤣😂🤣😂🤣
  2. Some1 needs to commiș me to make a clock captça w/mandatory certificate exçŋ verificaș, so ↓ 💩 never occurs.
  3. Xenoglossophobics, bm

CCç
ŋ
ș, in Gregg, used as a substitute for ʃon, as action.
: this
💩: shit/poop/troublesome
bm: block me. Better than DNI

[-] AntiBullyRanger@ani.social -1 points 2 months ago

lmfao that's a lot of alts. Seems that my suspicion was correct: the exploiter is a threadiverse user.

[-] rumba@lemmy.zip 1 points 2 months ago

I think it's more likely that 29 people feel pretty strongly negative about your writing style.

[-] AntiBullyRanger@ani.social -1 points 2 months ago

Not the 3-4 minutes instant downvotes🤣 after my reply. It wasn't even 3 minutes unto my response, and I got 12 downvotes across threadiverse instances.

The others forgot to read part 3.

[-] sexhaver87@sh.itjust.works 1 points 2 months ago

What’s more likely, few guys created numerous accounts just to downvote your spam or people just tend to dislike spam?

[-] AntiBullyRanger@ani.social -1 points 2 months ago

Former.

You know I am an anarchist?

We have a whole host of /c/raid communities, even fash instances.

Also refresh 🧵

this post was submitted on 10 Dec 2025
76 points (100.0% liked)

Selfhosted

56624 readers
185 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS