Axelor Boolean-Based SQL Injection Vulnerability

Vulnerability

A Boolean-based SQL injection vulnerability exists in Axelor version 5.2.4, specifically within the '_domain' parameter. This vulnerability allows attackers to manipulate SQL query logic, creating conditions that can lead to unauthorized data exposure or further exploitation.

Impact

Exploitation of this vulnerability allows for Boolean-based SQL injection, where an attacker can manipulate SQL queries to exfiltrate database content.

Reproduction

To reproduce this vulnerability, log into an Axelor account and intercept requests that include the '_domain' parameter. Insert a Boolean payload, such as '1=1', into the '_domain' parameter and observe the server's response. Then, replace the payload with '1=2' and note the difference in the response. This difference indicates that the SQL injection was successful. After confirming the injection, the entire database content can be dumped.

Remediation

To address this vulnerability, use parameterized queries or prepared statements to construct SQL queries. This practice separates SQL logic from user input, preventing injection attacks. Additionally, employ modern ORM libraries, such as Sequelize, Prisma, or TypeORM, to abstract raw SQL and enforce safe query practices. Finally, validate and sanitize input by enforcing strict input validation based on context, rejecting or sanitizing inputs that do not meet expected formats, and using allow-lists for validation.

Added: Aug 4, 2025, 9:30 PM
Updated: Aug 4, 2025, 9:30 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
6.6
remediation
0.0
relevance
0.3
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.