CVE-2022-50894
SQL Injection in VIAVIWEB Wallpaper Admin img_id Parameter
Publication date: 2026-01-13
Last updated on: 2026-01-13
Assigner: VulnCheck
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| viaviweb | wallpaper_admin | 1.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-89 | The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2022-50894 is an SQL injection vulnerability in VIAVIWEB Wallpaper Admin 1.0. Authenticated attackers can inject malicious SQL code through the img_id parameter in the edit_gallery_image.php script by sending specially crafted GET requests. This allows them to manipulate database queries and potentially extract sensitive information from the database. [2, 3]
How can this vulnerability impact me? :
This vulnerability can allow attackers with valid authentication to manipulate database queries, leading to unauthorized access to sensitive data stored in the database. This can result in data leakage, data corruption, or unauthorized data modification, which can compromise the integrity and confidentiality of your system's data. [2, 3]
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by sending authenticated GET requests to the edit_gallery_image.php endpoint with various malicious payloads injected into the img_id parameter to test for SQL injection. For example, you can use curl commands to send requests like: curl -u user:password 'http://target/edit_gallery_image.php?img_id=1' and then try payloads such as '1 OR 1=1' or '1' UNION SELECT ... to observe if the database responds with errors or unexpected data. Monitoring web server logs for suspicious requests to edit_gallery_image.php with unusual img_id values can also help detect exploitation attempts. [2, 3]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include restricting access to the edit_gallery_image.php endpoint to only trusted authenticated users, applying input validation and parameterized queries to prevent SQL injection, and disabling or restricting file uploads to prevent remote code execution. Additionally, monitoring and blocking suspicious requests targeting img_id parameters and updating the application to a patched version when available are recommended. [2, 3]