Live data from Hacker News

Gitlab servers are being exploited in DDoS attacks

therecord.media

11–20 of 177 posts

Re: Gitlab servers are being exploited in DDoS attacks

#11
post #3

"..Bowling said he discovered a way to abuse how ExifTool handles uploads for DjVu file format used for scanned documents to gain control over the entire underlying GitLab web server" Ah, the good old "File upload vulnerability". File uploads remain one of the hardest problems to solve when it comes to security.

> File uploads remain one of the hardest problems to solve when it comes to security.

Why? It seems like they should have read/write but no execute. What goes wrong?

Re: Gitlab servers are being exploited in DDoS attacks

#13
How much effort is it for a company like Gitlab to add kill switches to certain features and to trigger them incase they are exploited in the wild? Has to be pretty fine-grained though to disable analysis or upload on certain files, right?

What are alternatives to automatic immediate updates and kill switches besides not exposing the service to the internet?

Re: Gitlab servers are being exploited in DDoS attacks

#14
Yikes, it would have been nice to have a heads-up email from my Gitlab install that a new user had been created on September 3rd :-O

I do occasionally get an email to say my account had been locked for security, but had assumed that was just noise from random login attempts, and the 2FA didn't make me look any further.

Re: Gitlab servers are being exploited in DDoS attacks

#15
How can you protect yourself from file upload threats? It's basically the worst possible threat model -- executing complex user input that conforms to a spec that was written 20 years ago by some proprietary company with no security.

Executing everything on an isolated container with no permissions? Audit trial etc/good logging? If someone comes up with an RCE you're basically done for, you can only mitigate it but not completely stop it.

Re: Gitlab servers are being exploited in DDoS attacks

#16
post #8
post #6

As the exploit requires uploading a file, is it required for the attacker to first have a user account with file upload permissions?

Anyone who can open issues in a repo I think

I am confused by this right now. I built a self-hosted gitlab install years ago for my own use, turned off sign-up, no public project listings - and still it was compromised. The HackerOne PoC URL throws a sign-in redirect for me, so I'm still trying to work it out.

Re: Gitlab servers are being exploited in DDoS attacks

#17
post #3

"..Bowling said he discovered a way to abuse how ExifTool handles uploads for DjVu file format used for scanned documents to gain control over the entire underlying GitLab web server" Ah, the good old "File upload vulnerability". File uploads remain one of the hardest problems to solve when it comes to security.

> File uploads remain one of the hardest problems to solve when it comes to security. Why? It seems like they should have read/write but no execute. What goes wrong?

> What goes wrong?

Usually what goes wrong is parsing or processing the files. It's hard to get programmers to safely validate a 20 byte email address string. It takes a lot more care to safely parse a 4,000,000 byte image file in a complex format.

Re: Gitlab servers are being exploited in DDoS attacks

#18
post #3

"..Bowling said he discovered a way to abuse how ExifTool handles uploads for DjVu file format used for scanned documents to gain control over the entire underlying GitLab web server" Ah, the good old "File upload vulnerability". File uploads remain one of the hardest problems to solve when it comes to security.

> File uploads remain one of the hardest problems to solve when it comes to security. Why? It seems like they should have read/write but no execute. What goes wrong?

File formats like PDF contain a script that must be interpreted in order to read the image.

Re: Gitlab servers are being exploited in DDoS attacks

#19
post #18

Earlier quoted context omitted.

> File uploads remain one of the hardest problems to solve when it comes to security. Why? It seems like they should have read/write but no execute. What goes wrong?

File formats like PDF contain a script that must be interpreted in order to read the image.

That sounds like a pdf problem ^.^

Re: Gitlab servers are being exploited in DDoS attacks

#20
post #3

"..Bowling said he discovered a way to abuse how ExifTool handles uploads for DjVu file format used for scanned documents to gain control over the entire underlying GitLab web server" Ah, the good old "File upload vulnerability". File uploads remain one of the hardest problems to solve when it comes to security.

> File uploads remain one of the hardest problems to solve when it comes to security. Why? It seems like they should have read/write but no execute. What goes wrong?

That doesn't help when the uploaded file is only read/write but crafted in a way to exploit the code processing the file.
Post reply on HN