Top Banner
Fast Track “There's Nothing so Permanent as Temporary”
31

Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Aug 29, 2014

Download

Technology

How to obtain a list of files in a directory via a single HTTP request without a directory index? Is it possible to view a script’s source code on a working site? What if to gain database or FTP passwords? Today many people neglect their temporary files and make configuration mistakes, facilitating attackers’ access to sensitive information.


Как получить список файлов в директории одним HTTP-запросом без directory index? Можно ли посмотреть исходники скрипта на работающем сайте? А что, если достать пароли к базе данных или FTP? Сегодня многие не обращают внимания на временные файлы и допускают ошибки в конфигурации, благодаря чему злоумышленник может легко получить доступ к важной информации.

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Fast Track

“There's Nothing so Permanent as Temporary”

Page 2: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Alexa top 1,000,000 websites

Page 3: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Robots

● Robots.txt

Google dork:inurl:robots filetype:txt

Disallow: /admin/*

Disallow: /backup/*

Disallow: /logs/*

Disallow: /secret-file.tar.gz

Page 4: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Robots

Page 5: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Hypertext

● .htaccess● .htpasswd

● _.htpasswd● !.htpasswd● 0.htpasswd● old.htpasswd● %20.htpasswd● backup.htpasswd● 1.htpasswd

Page 6: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

OS files

● Thumbs.db● ehthumbs.db● Desktop.ini● .DS_Store

● .apdisk● .AppleDouble● .LSOverride

Page 7: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Logs

● access.log● access_log● error.log● error_log

● /log/*● /logs/*

Page 8: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Logs

Page 9: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Logs

Google dorks:

site:mysite.com filetype:log

site:mysite.com inurl:error_log

site:mysite.com inurl:access_log

Page 10: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Status

● /server-status/● /nginx-status/● /status/● /stats/● /stat/

Page 11: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)
Page 12: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

DGT Release Checker for vBulletin

validator.php

Page 13: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Tools for managing content in databases

● /sqlbuddy/login.php● /adminer/index.php● /adminer/adminer.php● /adminer.php● /phpmyadmin/index.php● /myadmin/index.php● /pma/index.php

Page 14: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Revision control

● /.svn/entries● /.git/index● /.hg/store/undo● /.hg/store/data/

Page 15: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Revision control

● .cvsignore● .gitignore● .gitignore_global● .npmignore● .svnignore● .hgignore

Page 16: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Revision control

● .hgrc (mercurial.ini for win)● .gitconfig● .gitattributes

Page 17: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Test files

● test.php● 1.php● tst.php● test1.php● example.php● demo.php

● phpinfo.php● php.php● info.php● i.php● p.php

Page 18: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

● *.dif● *.err● *.orig● *.rej● .*.swo● .*.swn● .*.swm● .*.swp● *.vi● *~● *.sass-cache● *.cache

● *.part● .#.*● *.bak● *.backup● *.un~● *.old● *.tmp● *.sublime-workspace● *.sublime-project

etc…

Swap and backup files

Page 19: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Swap and backup files

Page 20: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Other configs

● /WEB-INF/context.xml● /WEB-INF/web.xml● /web.config● /dataobject.ini● /.travis.yml● /database.yml● /config/AppData.config● /inc/config.inc

Page 21: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

/dataobjects.ini

/WEB-INF/context.xml

Page 22: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Statistic

● /webstat/● /cgi-bin/awstats.pl

● /apc.php● /apc/index.php● /apc/apc.php

Ну и там всякий xcache, загуглите сами ;)

Page 23: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

IDE and other

● /nbproject/● /.komodotools/● /.sass-cache/● /.idea/

● .project● .buildpath● .settings● .tmproj

Page 24: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

IDE and other

● /.config● /.pki● /.local● /.cache● /.filemgr-tmp● /.shrc● /.rhosts

● /.profile● /.mailrc● /.mail_aliases● /.login_conf● /.login● /.cshrc● .cache

Page 25: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

home = www

Page 26: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

.bash_history

Page 27: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

SSH

• /.ssh/known_host• /.ssh/authorized_keys• /.ssh/*

Page 28: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)
Page 29: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

Attn!

Page 30: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

/.ssh/id_rsa

Page 31: Bo0oM - There's Nothing so Permanent as Temporary (PHDays IV, 2014)

@i_bo0om

Спасибо за внимание ;)

Тут я работаю >

< тут принимаю участие

/\Тут я пишу короч)))