Exploit the possiblities

WordPress Calculated Fields Form 1.0.x Session Hijacking

WordPress Calculated Fields Form 1.0.x Session Hijacking
Posted Feb 24, 2016
Authored by Joaquin Ramirez Martinez

WordPress Calculated Fields Form plugin versions 1.0.x and below suffer from Http_only bypass and session hijacking vulnerabilities.

tags | exploit, vulnerability
MD5 | bd3aff22ee6ea239445f0e548eabc528

WordPress Calculated Fields Form 1.0.x Session Hijacking

Change Mirror Download
# Exploit Title: WordPress Calculated Fields Form <=1.0.x - Http_only bypass & admin session hijackig.
# Date: 2016-02-22
# Google Dork: Index of /wp-content/plugins/calculated-fields-form/
# Exploit Author: Joaquin Ramirez Martinez [ i0akiN SEC-LABORATORY ]
# Plugin URI: http://wordpress.dwbooster.com/forms/calculated-fields-form
# Version: 1.0.x
# Demo: https://www.youtube.com/watch?v=B_RGAAscEFc

=============
Description
=============

Calculated Fields Form is a plugin for creating forms with dynamically calculated fields and display the result.
With Calculated Fields Form you can create **forms with dynamically calculated fields** to **display the
calculated values**.

It includes a **form builder** for adding/editing different field types, including one or more **automatically
calculated fields** based in the data entered in other fields.

Calculated Fields Form can be used for creating both single and complex calculations, for example general
calculators, ideal weight calculators, calorie calculators, calculate quotes for hotel booking and rent a car
services, calculate quotes for appointments and services, loan & finance calculators, date calculators like
pregnancy calculators, etc...

===================
Technical details
===================

Cp calculated fields form is prone to a session hijacking vulnerability because contains a shortcode function
that reads http_only cookies and also is vulnerable to persistent cross-site scripting attacks by an authenticated
users.

The attacker must have an account like author or editor for create posts and embed malicious shortcodes and hijack
admin or other user's sessions.

==================
Proof of concept
==================

An author can insert the following shortcodes into a post with the cookie name that want to read...

[CP_CALCULATED_FIELDS_VAR name="cookie_to_steal" from="COOKIE"]

[CP_CALCULATED_FIELDS id="1" a='s\\";;alert(cookie_to_steal);//'] -->default calculated field created by the plugin
as you can see, i injected an xss payload
bypassing the shortcode atts value restrictions.


See the PoC video: https://www.youtube.com/watch?v=B_RGAAscEFc

Note: The ´wordpress_logged_in...´ cookie is different in each wordpress installation, but it doesn't matter
if you want to hijack the session of an administrator on the same wordpress installation, the cookie will be
called of the same manner.

==========
CREDITS
==========

Vulnerability discovered by:
Joaquin Ramirez Martinez [i0 security-lab]
joaquin.ramirez.mtz.lab[at]gmail[dot]com
https://www.facebook.com/I0-security-lab-524954460988147/
https://www.youtube.com/channel/UCe1Ex2Y0wD71I_cet-Wsu7Q


========
TIMELINE
========

2016-02-10 vulnerability discovered
2016-02-22 reported to vendor

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

Want To Donate?


Bitcoin: 18PFeCVLwpmaBuQqd5xAYZ8bZdvbyEWMmU

File Archive:

January 2018

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2018 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close