TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

WordPress base configuration files on GitHub

165 pointsby isheneralmost 10 years ago

24 comments

brightballalmost 10 years ago
At what point do developers get criticized/held responsible for using public repositories for private websites? I get it, people like github but when you can get a private repo on bitbucket for free there's no excuse for this.
评论 #10073226 未加载
评论 #10073223 未加载
评论 #10074691 未加载
评论 #10073288 未加载
mahousealmost 10 years ago
150,000,000+ database passwords, of which 99.9999%+ are from local development servers.
评论 #10072926 未加载
评论 #10072933 未加载
评论 #10072991 未加载
评论 #10073027 未加载
评论 #10072925 未加载
评论 #10074893 未加载
评论 #10073084 未加载
评论 #10072977 未加载
评论 #10072965 未加载
评论 #10072932 未加载
评论 #10072898 未加载
_bozoalmost 10 years ago
Hmm. If you alter the search to &quot;filename:wp-config.php FTP_PASS&quot; you start getting some that look like ... legit. For those who don&#x27;t know, WordPress has some level of access to hosting server via FTP, for upgrades and plugin installs.<p>Pertinent config globals are FTP_BASE, FTP_CONTENT_DIR, FTP_PLUGIN_DIR, FTP_PUBKEY, FTP_PRIKEY, and of course, FTP_USER, FTP_PASS, FTP_HOST.
评论 #10075498 未加载
chrisxcrossalmost 10 years ago
1500 Results on Google: <a href="https:&#x2F;&#x2F;www.google.com&#x2F;search?q=%22define%28+%27DB_PASSWORD%27%22++inurl%3A%22wp-config.php%22+filetype%3Aphp" rel="nofollow">https:&#x2F;&#x2F;www.google.com&#x2F;search?q=%22define%28+%27DB_PASSWORD%...</a>
评论 #10073179 未加载
评论 #10073137 未加载
etermalmost 10 years ago
.net equivalent:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;search?utf8=%E2%9C%93&amp;q=filename%3Aweb.config+connectionString+password&amp;type=Code&amp;ref=searchresults" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;search?utf8=%E2%9C%93&amp;q=filename%3Aweb.co...</a>
chayesfssalmost 10 years ago
Thought it was going to be template stuff for a min, clicked on the first one and saw &quot;&#x2F;<i></i> MySQL database password *&#x2F; define(&#x27;DB_PASSWORD&#x27;, &#x27;JasxkvpY72KKCdttdBqt&#x27;);&quot;
efriesealmost 10 years ago
There are also salts&#x2F;hashes in many of these configs...not such a great place to store those =)
captn3m0almost 10 years ago
Another one I posted about sometime ago is filezilla config files. Found lots of FTP servers with their passwords in the filezilla config files committed on github. [0]<p>[0]: <a href="https:&#x2F;&#x2F;www.google.co.in&#x2F;search?q=inurl%3Afilezilla+inurl%3Axml+site%3Agithub.com#q=inurl:filezilla+inurl:xml+site:github.com+-checker+%22%3CPass%3E%22" rel="nofollow">https:&#x2F;&#x2F;www.google.co.in&#x2F;search?q=inurl%3Afilezilla+inurl%3A...</a>
getdavidhigginsalmost 10 years ago
&quot;Passwords&quot; in the title is a bit misleading. Most of these are staging files with little or no sensitive information there. However there is the odd bit of interesting data there if you look hard enough.<p>Github search is an untapped resource just like Algolia Search is on Hackernews. Infact I have largely replaced my Google searches with these ones for more refined and curated results.
评论 #10073330 未加载
评论 #10073264 未加载
red_admiralalmost 10 years ago
Apart from putting your wp-config on github, it&#x27;s also a terrible idea to use short passwords like &#x27;p@ss12&#x27; for a database password that will be sent from one machine&#x2F;program to another most of the time - such passwords should at the very least look like &#x27;jm0Y&#x2F;ZGjxYZay2yraskQ5AbZ8Qe0r0pRVDdnEkaIvHU&#x27;, computers can remember strings that long and developers can copy-paste if it&#x27;s stored in a file already.
JosephRedfernalmost 10 years ago
A majority of these results aren&#x27;t actually wp-config.php files. If you sort by date indexed, you&#x27;ll see that the results include all manner of files.<p><pre><code> filename:&quot;wp-config.php&quot; &quot;define(&#x27;DB_NAME&#x27;,&quot; extension:php </code></pre> seems to give better results
评论 #10072942 未加载
datakeralmost 10 years ago
Just as bad, I see many developers leaving their Rails app with production secret key.<p>It just takes more time.
edpichleralmost 10 years ago
Security experts, I have a question: if a database server just allow connections from a white list (trusted IP&#x27;s), exposing database passwords on a GIT repository is still a problem?
评论 #10073278 未加载
评论 #10073354 未加载
评论 #10073277 未加载
评论 #10074625 未加载
评论 #10073412 未加载
anda-politoalmost 10 years ago
UNLOQ.io increases the security of your digital properties through a distributed authentication system that doesn’t require your users to remember any passwords.
blackbeardalmost 10 years ago
This is one reason we don&#x27;t use cloud-based source code hosting. All it takes is one idiot fork or an accident and wham, code everywhere.
brewcorealmost 10 years ago
It&#x27;s a good case for private repos, but an even better case for not committing passwords to a repository in the first place.
评论 #10075071 未加载
ErikAugustalmost 10 years ago
I&#x27;ve found something else in WordPress with this simple search method that I&#x27;d argue is worse.
nadamsalmost 10 years ago
You do know that you can play the same game with other languages as well?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;search?utf8=%E2%9C%93&amp;q=filename%3Asettings.py+mysql&amp;type=Code&amp;ref=searchresults" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;search?utf8=%E2%9C%93&amp;q=filename%3Asettin...</a><p>I feel like people don&#x27;t accept the fact that people do stupid stuff in other languages.
评论 #10073093 未加载
mondainxalmost 10 years ago
I found this search more interesting than someone pushing their wp-config to a repo; also warning, some are nsfw <a href="https:&#x2F;&#x2F;github.com&#x2F;search?p=100&amp;q=filename%3Atits.jpg+&amp;ref=searchresults&amp;type=Code&amp;utf8=%E2%9C%93" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;search?p=100&amp;q=filename%3Atits.jpg+&amp;ref=s...</a>
评论 #10073366 未加载
aikahalmost 10 years ago
What is there to say ... developers , don&#x27;t dump your projects on github public repositories ... use bitbucket and free private repos if you can&#x27;t afford to pay FOR GOD SAKE !!! ...<p>!!! How many of them use the same credentials for their emails ? facebook ? twitter ? for their AWS account ? this is a nightmare.
bdcravensalmost 10 years ago
The first few repos I peeked at were several years since their last commit.
z92almost 10 years ago
Which is why I don&#x27;t use any database password if the database is listening on localhost only, which is the case most of the time.
评论 #10073016 未加载
bussierealmost 10 years ago
Is there a way to crap this ? Is there an api for github search ?<p>Regards
tvvocoldalmost 10 years ago
That&#x27;s why i am using <a href="https:&#x2F;&#x2F;Coding.net" rel="nofollow">https:&#x2F;&#x2F;Coding.net</a> (Chinese Only), a China Startup, provide free and unlimited private repositories hosting service with lots of feature like Code reviews,Custom domains,WebIDE... Go private, guys!