How to resolve vulnerabilities found in an OSS domain name scan?
Problem description
A scan of an OSS domain name used for storage detects the following security vulnerabilities: Insecure Transportation Security Protocol Supported (TLS 1.0), HTTP Strict Transport Security (HSTS) Policy Not Enabled, TLS/SSL Weak Cipher Suites, and Vulnerable JavaScript libraries. Each issue maps to a specific Alibaba Cloud configuration, and most can be fixed without changing your application code.
Background
Understanding why each finding is flagged helps you prioritize fixes:
Insecure Transportation Security Protocol Supported (TLS 1.0): TLS 1.0 is over 25 years old and lacks support for modern cryptographic algorithms. It is susceptible to known attacks such as BEAST and POODLE, and most compliance frameworks (PCI DSS, NIST) require TLS 1.2 or higher.HTTP Strict Transport Security (HSTS) Policy Not Enabled: Without HSTS, browsers may attempt HTTP connections before being redirected to HTTPS, exposing the initial request to interception. HSTS instructs clients to always use HTTPS, eliminating that window.TLS/SSL Weak Cipher Suites: Weak cipher suites use short key lengths or deprecated algorithms such as RC4 or 3DES, which can be broken by modern attack tools. Disabling them forces connections to use stronger encryption such as Advanced Encryption Standard (AES)-based suites.Vulnerable JavaScript libraries: Outdated frontend libraries with known vulnerabilities are entry points for cross-site scripting (XSS) attacks and SQL injection. These attacks can exfiltrate data or execute malicious code in users' browsers.
Choose the right product
The fix depends on how your OSS bucket is accessed. Use the table below to identify the right product for your setup.
Your setup | Fix TLS 1.0 | Enable HSTS | Disable weak cipher suites | Protect against JavaScript vulnerabilities |
OSS direct access (no CDN or ESA) | OSS | Not available — add CDN or DCDN | Not available — add CDN or ESA | Not available — add ESA |
OSS + CDN | CDN or OSS | CDN | CDN | Not available — add ESA |
OSS + DCDN | DCDN or OSS | DCDN | DCDN | Not available — add ESA |
OSS + Edge Security Acceleration (ESA) | ESA or OSS | Not available — add CDN or DCDN | ESA | ESA |
If you use ESA, it can fix TLS 1.0 support, weak cipher suites, and JavaScript vulnerabilities in a single product. For HSTS, add CDN or DCDN.
Prerequisites
Before you begin, ensure that you have:
An OSS bucket with a custom domain name configured
Access to the Alibaba Cloud console with permissions to modify OSS, CDN, DCDN, or ESA settings (depending on your setup)
Identified which product your OSS bucket traffic currently routes through (see the table above)
WarningDisabling TLS 1.0 breaks connections from clients that do not support TLS 1.2 or higher. Before making this change, check your access logs to confirm that no active clients rely on TLS 1.0. If you find TLS 1.0 traffic, coordinate with those client owners before proceeding.
Solution
Disable TLS 1.0
In OSS
Set the minimum TLS version for your bucket to TLS 1.2.
Log on to the OSS console and navigate to the target bucket.
Go to Data Security > Transport Layer Encryption.
Under TLS version control, set Minimum TLS version to TLS 1.2.
Click Save.
In CDN
Log on to the CDN console and go to Domain Names.
Click Manage next to the target domain.
Go to HTTPS Settings > TLS version control.
Deselect TLS1.0 and keep TLS1.2 and TLS1.3 selected.
Click Modify.
In DCDN
Log on to the DCDN console and go to Domain Names.
Click Manage next to the target domain.
Go to HTTPS > TLS version control.
Deselect TLS1.0 and keep TLS1.2 and TLS1.3 selected.
Click Modify.
In ESA
Log on to the ESA console and go to Websites.
Click the target website, then go to Security > TLS/SSL.
Set TLS security policy to a policy that excludes TLS 1.0 (for example, high-security mode).
Save your changes.
Enable HTTP Strict Transport Security (HSTS)
HSTS is available in CDN and DCDN. Once enabled, the Strict-Transport-Security header is added to all HTTPS responses, telling browsers to refuse plain HTTP connections for the configured duration.
In CDN
Log on to the CDN console and go to Domain Names.
Click Manage next to the target domain.
Go to HTTPS Settings > HSTS and click Modify.
Toggle HSTS to On.
Configure the following fields:
Field | Description | Recommended value |
Cache time ( | How long browsers cache the HSTS policy, in seconds. |
|
Include subdomains ( | When enabled, HSTS applies to all subdomains of this domain. | Enable only if all subdomains serve HTTPS |
Preload | Submits the domain to browser HSTS preload lists so the policy applies even on the first visit. | Optional — enable for maximum protection |
Click OK.
In DCDN
Follow the same steps as CDN above, using the DCDN console.
Disable weak cipher suites
In CDN
Log on to the CDN console and go to Domain Names.
Click Manage next to the target domain.
Go to HTTPS Settings > Custom cipher suites.
Deselect weak suites (for example, suites using RC4, 3DES, or NULL encryption).
Keep AES-GCM and ChaCha20-Poly1305 based suites selected.
Click Modify.
In DCDN
Follow the same steps as CDN above, using the DCDN console.
In ESA
Log on to the ESA console and go to Websites.
Click the target website, then go to Security > TLS/SSL.
Set TLS security policy to high-security to automatically exclude weak cipher suites.
Save your changes.
Protect against vulnerable JavaScript libraries
This vulnerability exposes users to XSS attacks and SQL injection. Use the Managed Rules feature of ESA Standard Edition to detect and block these threats at the edge, without modifying your application code.
Log on to the ESA console and go to Websites.
Click the target website, then go to Security > WAF.
Enable Managed Rules and activate the ruleset for JavaScript vulnerability protection.
Set the action to Block for production environments.
Save your changes.
For full configuration details, see Managed rules.
Verify the fixes
After applying changes, confirm the vulnerabilities are resolved before re-running your security scan:
TLS version: Use SSL Labs Server Test to check which TLS versions your domain accepts. A passing result shows TLS 1.0 and TLS 1.1 as disabled.
HSTS: Run
curl -I https://<your-domain>and confirm the response includesStrict-Transport-Security: max-age=31536000.Cipher suites: The SSL Labs report also lists the cipher suites your server accepts. Confirm that no weak suites (RC4, 3DES, EXPORT) appear.
JavaScript vulnerabilities: Re-run your original security scanner. ESA Managed Rules should block the attack vectors that triggered the finding.