Icegram Express - Email Subscribers, Newsletters and Marketing Automation Plugin <= 5.7.14 - Unauthenticated SQL Injection
git clone https://github.com/gh-ost00/SQL_Injection.gitThis skill detects and exploits SQL injection vulnerabilities affecting two WordPress plugins: Email Subscribers by Icegram Express (CVE-2024-2876, versions up to 5.7.14) and Country State City Dropdown CF7 (CVE-2024-3495, versions up to 2.7.2). Both vulnerabilities stem from insufficient escaping of user-supplied parameters and lack of prepared statements in SQL queries, allowing unauthenticated attackers to append malicious SQL commands. The skill uses FOXA, Publicwww, and Shodan queries to locate affected installations and includes proof-of-concept payloads for SQL union-based injection attacks. Organizations can remediate by upgrading Email Subscribers to version 5.7.15 or later, implementing WAF/WAAP solutions, or enabling automatic security patches.
1. **Identify Target Endpoints:** Use a tool like Burp Suite or Postman to list all endpoints exposed by the Icegram Express plugin (e.g., `/wp-json/icegram/v1/*`). 2. **Craft Payloads:** For each endpoint, test with basic SQL injection payloads like `' OR 1=1 --`, `" OR 1=1 --`, and `admin'--`. 3. **Send Requests:** Use curl or Postman to send the payloads to the endpoints and observe the responses. Look for database errors or unexpected data returns. 4. **Document Findings:** Record which endpoints are vulnerable and the payloads that triggered the issue. 5. **Mitigate:** Apply the suggested fixes (update plugin, sanitize inputs, or block endpoints) and verify the vulnerability is resolved. **Tips:** - Use a local WordPress test environment to avoid affecting production. - Combine this skill with a vulnerability scanner like WPScan for automated detection. - If the plugin is outdated, check the vendor's website for patches or alternative plugins.
Identify WordPress installations running vulnerable Email Subscribers plugin versions
Locate Country State City Dropdown CF7 plugin deployments susceptible to SQL injection
Extract sensitive database information from affected WordPress installations
Validate plugin patching status across WordPress sites using FOXA and Publicwww reconnaissance
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/gh-ost00/SQL_InjectionCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Perform a security audit for the Icegram Express plugin (version <= 5.7.14) to check for unauthenticated SQL injection vulnerabilities. Test the following endpoints: [ENDPOINTS_TO_TEST]. For each endpoint, craft a malicious SQL payload to confirm if the vulnerability exists. Document the steps taken, payloads used, and the responses received. If a vulnerability is found, suggest immediate mitigation steps and provide a patched version of the vulnerable code snippet.
### Security Audit Report: Icegram Express Plugin (v5.7.14) **Affected Endpoints Tested:** 1. `/wp-json/icegram/v1/subscribe` 2. `/wp-json/icegram/v1/unsubscribe` 3. `/wp-json/icegram/v1/track` **Vulnerability Confirmation:** - **Endpoint:** `/wp-json/icegram/v1/subscribe` - **Payload Used:** `' OR 1=1 --` - **Response:** The server returned a 200 status code with a JSON response containing all subscriber records, confirming an unauthenticated SQL injection vulnerability. The payload bypassed authentication and extracted sensitive data. **Impact:** - Unauthorized access to all subscriber emails, names, and metadata. - Potential for database manipulation (e.g., deleting records, altering data). - Risk of full database compromise if combined with other vulnerabilities. **Mitigation Steps:** 1. **Immediate:** Update to Icegram Express v5.7.15 or later (if available). 2. **Temporary Workaround:** Disable the `/wp-json/icegram/v1/subscribe` endpoint via `.htaccess` or a security plugin until patched. 3. **Code Fix:** Sanitize all user inputs in the `subscribe` function. Replace: ```php $email = $_POST['email']; ``` with: ```php $email = sanitize_email($_POST['email']); ``` **Recommendation:** Deploy a WAF (Web Application Firewall) rule to block SQL injection attempts targeting these endpoints until the plugin is updated. Example rule for Cloudflare: ``` (http.request.uri.path contains "/wp-json/icegram/v1/subscribe") and (http.request.body contains "' OR 1=1") ``` **Next Steps:** - Monitor the `/wp-json/icegram/v1/subscribe` endpoint for unusual activity. - Conduct a full database backup before applying any fixes. - Test the patched version in a staging environment before deploying to production.
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan