NeoRazorX FacturaScripts
FacturaScripts has SQL Injection vulnerability in API ORDER BY Clause
FacturaScripts is open-source enterprise resource planning and accounting software. Prior to version 2025.81, FacturaScripts contains a critical SQL injection vulnerability in the REST API that allows authenticated API users to execute arbitrary SQL queries through the sort parameter. The vulnerability exists in the ModelClass::getOrderBy() method where user-supplied sorting parameters are directly concatenated into the SQL ORDER BY clause without validation or sanitization. This affects all API endpoints that support sorting functionality. This issue has been patched in version 2025.81.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2025.81
Fixed in 2025.81
Mitigation
Upgrade facturascripts to 2025.81 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 66 days after publication; not in CISA KEV. First PoC: lukasz-rybak/CVE-2026-25513 (created 11 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| lukasz-rybak/CVE-2026-25513 | 11 Apr 2026 +66 d | 0 | PoC via PoC Index |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /EditApiKey
- Query
code={var}- Key headers
Cookie: cookies.txt- Ports
- 8091
- Seen in
- 1 repo: lukasz-rybak/CVE-2026-25513
- Evidence
- lukasz-rybak/CVE-2026-25513/README.md:79
GET /EditSettings
- Query
activetab=ListApiKey- Key headers
Cookie: cookies.txt- Ports
- 8091
- Seen in
- 1 repo: lukasz-rybak/CVE-2026-25513
- Evidence
- lukasz-rybak/CVE-2026-25513/README.md:76
GET /api/3/users
- Query
limit=1sort[nick,(SELECT(SLEEP(3)))]=ASC- Key headers
X-Auth-Token: {var}- Ports
- 8091
- Seen in
- 1 repo: lukasz-rybak/CVE-2026-25513
- Evidence
- lukasz-rybak/CVE-2026-25513/README.md:87 lukasz-rybak/CVE-2026-25513/README.md:90
POST /login
- Key headers
Cookie: cookies.txt- Body markers
fsNick=adminfsPassword=adminaction=loginmultireqtoken={var}inapplication/x-www-form-urlencoded- Ports
- 8091
- Seen in
- 1 repo: lukasz-rybak/CVE-2026-25513
- Evidence
- lukasz-rybak/CVE-2026-25513/README.md:72
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/EditApiKey\?(?:.*&)?code=\{var\}
(?i)^/EditSettings\?(?:.*&)?activetab=ListApiKey
(?i)^/api/3/users\?(?:.*&)?limit=1.*sort\[nick,\(SELECT\(SLEEP\(3\)\)\)\]=ASC
(?i)^/login(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8091] (msg:"GG PoC-Monitor CVE-2026-25513 NeoRazorX facturascripts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/EditApiKey"; http.uri; content:"code={var}"; http.header; content:"Cookie: cookies.txt"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-25513; classtype:web-application-attack; sid:9227659; rev:1;)
alert http any any -> $HOME_NET [8091] (msg:"GG PoC-Monitor CVE-2026-25513 NeoRazorX facturascripts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/EditSettings"; http.uri; content:"activetab=ListApiKey"; http.header; content:"Cookie: cookies.txt"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-25513; classtype:web-application-attack; sid:9055241; rev:1;)
alert http any any -> $HOME_NET [8091] (msg:"GG PoC-Monitor CVE-2026-25513 NeoRazorX facturascripts exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/3/users"; http.uri; content:"limit=1"; http.uri; content:"sort[nick,(SELECT(SLEEP(3)))]=ASC"; http.header_names; content:"X-Auth-Token"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-25513; classtype:web-application-attack; sid:9408829; rev:1;)
alert http any any -> $HOME_NET [8091] (msg:"GG PoC-Monitor CVE-2026-25513 NeoRazorX facturascripts exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/login"; http.header; content:"Cookie: cookies.txt"; nocase; http.request_body; content:"fsNick=admin"; http.request_body; content:"fsPassword=admin"; http.request_body; content:"action=login"; http.request_body; content:"multireqtoken="; reference:url,poc.griffinguard.io/cve/CVE-2026-25513; classtype:web-application-attack; sid:9158405; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: NeoRazorX facturascripts exploit attempt (CVE-2026-25513)
id: gg-pocmon-cve-2026-25513-9227659
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25513. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-25513
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/EditApiKey'
cs-uri-query|contains|all:
- 'code={var}'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.25513
title: NeoRazorX facturascripts exploit attempt (CVE-2026-25513)
id: gg-pocmon-cve-2026-25513-9055241
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25513. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-25513
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/EditSettings'
cs-uri-query|contains|all:
- 'activetab=ListApiKey'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.25513
title: NeoRazorX facturascripts exploit attempt (CVE-2026-25513)
id: gg-pocmon-cve-2026-25513-9408829
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25513. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-25513
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/3/users'
cs-uri-query|contains|all:
- 'limit=1'
- 'sort[nick,(SELECT(SLEEP(3)))]=ASC'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.25513
title: NeoRazorX facturascripts exploit attempt (CVE-2026-25513)
id: gg-pocmon-cve-2026-25513-9158405
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25513. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-25513
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.25513