![]()
- 9 сентября

Сегодня решим задачку по информационной безопасности web-серверов. Задачка с портала rootme.org, называется «Backup file». За решение задачки дают 15 баллов.

Нам встретится уязвимость с возможностью доступа к файлам бэкапа текстовых редакторов.
Многие текстовые редакторы в процессе редактирования делают резервные копии файлов, сохраняя их с другим расширением.
Ссылки
Решение
Переходим на страницу задания:
Мы видим форму авторизации. Есть поле логина, пароля и кнопка «connect».

Давайте проверим, не забыл ли разработчик отключить бэкап файлов в своём любимом текстовом редакторе. Гуглим расширения файлов бэкапа популярных текстовых редакторов.

Например, популярный тектовый редактор Emacs в процессе работы создаёт копию файла с тильдой на конце. Пробуем скачать файл index.php

Файл скачивается, вот так сюрприз! Заглянем внутрь.

Видим код с логином и паролем формы авторизации:
Пробуем залогиниться в форме с этими учётными данными.

Вводим подсмотренный в файле бэкапа логин и пароль.

To validate the challenge use this password. Понятно, в качестве флага у нас выступает пароль:
This question already has an answer here:
in my app I need get a backup of my database, but after I’ll need restore it again,
i have read somethings, but i do not sure if this is necessary to have a rooted device, i need backup/restore the all data in non root devices, is it possible?
my first idea was creating a txt file for write the select, and later insert it again.
but i believe this is much «problem» then i don’t know if this is possible copy the database and paste in sd card for backup, and copy from sd card and paste in path of database for restore for non root devices.
Please note that GitHub no longer supports your web browser.
We recommend upgrading to the latest Google Chrome or Firefox.
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
CTFs / -ROOTME -Web — Server / Backup file
Users who have contributed to this file
| Ok , in this case we will download index.php file by adding index.php |
to url :»»
- © 2019 GitHub , Inc.
- Terms
- Privacy
- Security
- Status
- Help
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.