News for hackers. Stuff that matters.
Re:Tesla.com/.gitignore by jbverschoor on Friday November 25, 2022 @03:31PM (#33746446)
So basically you run an endless script to fetch https://www.tesla.com/sites/default/settings.php and hope that some day there will be a minor nginx config error which lets you download the php source instead of executing it.

This will happen some day, so invest 5 bucks per month to exploit Tesla at a certain point, so maybe you can be first in line for the Cybertruck :-)

Re:Tesla.com/.gitignore by rvnx on Friday November 25, 2022 @03:36PM (#33746475)
This seems to be a too sophisticated attack, compared to this basic and giant dangerous security issue: https://samcurry.net/cracking-my-windshield-and-earning-1000...
Re:Tesla.com/.gitignore by j-bos on Friday November 25, 2022 @04:38PM (#33747093)
Great read
Re:Tesla.com/.gitignore by walrus01 on Friday November 25, 2022 @07:32PM (#33748559)
Time to try naming your tesla "drop table vehicles;"
Re:Tesla.com/.gitignore by gdhdjdvr on Friday November 25, 2022 @07:47PM (#33748665)
Ah good old bobby tables :)
Re:Tesla.com/.gitignore by shaheer_dev on Saturday November 26, 2022 @01:07AM (#33750401)
l
Re:Tesla.com/.gitignore by grubby on Sunday November 27, 2022 @04:14PM (#33767042)
this was such a great read, people like you make me want to learn more and more everyday
Re:Tesla.com/.gitignore by grumple on Friday November 25, 2022 @03:51PM (#33746622)
Pretty sure every site on IPv4 gets probed multiple times a day for common config leaks and other misconfigurations. Happens to all of mine.
Re:Tesla.com/.gitignore by jbverschoor on Friday November 25, 2022 @04:13PM (#33746838)
Yeah, but if a gitignore tells you where to look for, and it isn't even blocked by a WAF / rule, it makes an interesting target, esp. one of the largest companies out there.

You shouldn't even be able to execute settings.php

Re:Tesla.com/.gitignore by TechBro8615 on Friday November 25, 2022 @04:51PM (#33747219)
It's a good sign there might be an exploitable file upload vulnerability, if you can find an endpoint that uploads files to a directory that's served by Apache with the same configurarion as the directory of the executable settings.php
Re:Tesla.com/.gitignore by hsbauauvhabzb on Friday November 25, 2022 @06:08PM (#33747911)
How is it a good sign of anything like that? File upload to disk is a completely unrelated concept that depends on how php is invoked by the web server.
Re:Tesla.com/.gitignore by TechBro8615 on Friday November 25, 2022 @07:24PM (#33748505)
Sure, I'm just saying it makes an executable file upload more likely. Because if a file like settings.php is executable by Apache, it implies that (at least in this directory) any .php file is executable by Apache, rather than a single whitelisted index.php or some wsgi setup.

So maybe the same configuration applies to a user upload directory. If you find a way to upload a .php file to a web directory on the same server, there is a possibility you can execute it - with higher success probability than if you did not know about settings.php being executable.

Re:Tesla.com/.gitignore by c7DJTLrn on Friday November 25, 2022 @07:28PM (#33748529)
Finally, a compelling reason to use IPv6.
Re:Tesla.com/.gitignore by TechBro8615 on Friday November 25, 2022 @04:49PM (#33747202)
This comment transported me back to 2010 or thereabouts when this happened to Facebook. I remember being surprised at the simplicity of the code and making a lot of jokes about "build a facebook clone" ads on freelance websites.
Re:Tesla.com/.gitignore by retrocryptid on Friday November 25, 2022 @05:46PM (#33747690)
Except that you'll find that error long before the cybertruck ships. Heck, you'll probably see the rebirth of NFTs and BTC over US$40000 before the cybertruck ships.
Re:Tesla.com/.gitignore by rbanffy on Friday November 25, 2022 @06:11PM (#33747946)
I am sure there are lots of automated scripts doing precisely that with pretty much every company that has a website.

I used to keep a hall of shame on my main site, because looking for "settings.php" or "global.asa" on a Zope site was just silly.