DO - Apps

Support HackTricks

기본 정보

[문서에서:] (https://docs.digitalocean.com/glossary/app-platform/) App Platform은 개발자가 DigitalOcean 서버에 직접 코드를 게시할 수 있도록 하는 서비스형 플랫폼(PaaS)입니다. 기본 인프라에 대한 걱정 없이 사용할 수 있습니다.

코드는 github, gitlab, docker hub, DO container registry(또는 샘플 앱)에서 직접 실행할 수 있습니다.

env var를 정의할 때 암호화된 것으로 설정할 수 있습니다. 그 값을 가져오는 유일한 방법은 앱을 실행하는 호스트 내에서 명령어를 실행하는 것입니다.

App URL은 다음과 같습니다 https://dolphin-app-2tofz.ondigitalocean.app

열거

doctl apps list # You should get URLs here
doctl apps spec get <app-id> # Get yaml (including env vars, might be encrypted)
doctl apps logs <app-id> # Get HTTP logs
doctl apps list-alerts <app-id> # Get alerts
doctl apps list-regions # Get available regions and the default one

앱에는 메타데이터 엔드포인트가 없습니다

RCE 및 암호화된 환경 변수

앱을 실행하는 컨테이너에서 코드를 직접 실행하려면 콘솔에 접근해야 하며 **https://cloud.digitalocean.com/apps/<app-id>/console/<app-name>**로 이동해야 합니다.

그러면 이 제공되며, **env**를 실행하면 모든 환경 변수(암호화된 것으로 정의된 변수 포함)를 볼 수 있습니다.

HackTricks 지원하기

Last updated