Plugin Directory

Changeset 3209705


Ignore:
Timestamp:
12/18/2024 08:49:31 AM (13 months ago)
Author:
mightyforms
Message:

security fix

Location:
mightyforms
Files:
5 deleted
11 edited
4 copied

Legend:

Unmodified
Added
Removed
  • mightyforms/tags/1.3.10/js/script.js

    r2538897 r3209705  
    1212                ajaxurl, {
    1313                action: 'upsert_user_api_key',
    14                 userApiKey: null
     14                userApiKey: null,
     15                nonce: jQuery('[name=mf_reconnect]').val(),
    1516            }, function (response) {
    1617                if (JSON.parse(response).success) {
     
    5960                ajaxurl, {
    6061                action: 'upsert_user_api_key',
    61                 userApiKey: post.data
     62                userApiKey: post.data,
     63                nonce: jQuery('[name=mf_login]').val(),
    6264            }, function (response) {
    6365                console.log(response)
  • mightyforms/tags/1.3.10/mightyforms.php

    r2607143 r3209705  
    44    Plugin Name: MightyForms
    55    Description: Powerful web forms - made easy. Quickly create beautiful forms for any website with this intuitive Drag & Drop online form builder.
    6     Version: 1.3.8
     6    Version: 1.3.10
    77    Author: Porthas Inc.
    88    Author URI: https://porthas.com
  • mightyforms/tags/1.3.10/readme.txt

    r3076493 r3209705  
    55Requires at least: 3.0.0
    66Tested up to: 6.5.2
    7 Stable tag: 1.3.9
     7Stable tag: 1.3.10
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    274274== Changelog ==
    275275
     276= 1.3.10 =
     277* Security fixes
     278
    276279= 1.3.9 =
    277280* Small fixes
  • mightyforms/tags/1.3.10/shortcode.php

    r2375014 r3209705  
    1111{
    1212    return '<!-- MightyForms Section -->
    13     <div class="mighty-form" id="' . $atts['id'] . '"></div>
     13    <div class="mighty-form" id="' . esc_attr($atts['id']) . '"></div>
    1414    <script async src="https://form.mightyforms.com/loader/v1/mightyforms.min.js"></script>
    1515    <!-- End MightyForms Section -->';
  • mightyforms/tags/1.3.10/views/application.php

    r2606900 r3209705  
    3131        </div>
    3232        <div class="application-box">
     33            <?php wp_nonce_field('user_api_key','mf_login'); ?>
    3334            <iframe id="mf" src="<?php echo $iframe_src; ?>" frameborder="0" style="width: 100%;"></iframe>
    3435        </div>
     
    5051{
    5152    try {
     53        if (!current_user_can('manage_options') || empty($_POST['nonce'])
     54            || !wp_verify_nonce($_POST['nonce'], 'user_api_key')
     55        ) {
     56            throw new Exception('Access denied');
     57        }
     58
    5259        $api_key = esc_sql($_POST['userApiKey']);
    5360
  • mightyforms/tags/1.3.10/views/forms.php

    r2448016 r3209705  
    7070                            <h3>Your forms and shortcodes.</h3>
    7171                            <button>Reconnect</button>
     72                            <?php wp_nonce_field('user_api_key','mf_reconnect'); ?>
    7273                        </div>
    7374                        <p>If you want to show your form in a page or post - just copy the form's shortcode and paste it into your
  • mightyforms/trunk/js/script.js

    r2538897 r3209705  
    1212                ajaxurl, {
    1313                action: 'upsert_user_api_key',
    14                 userApiKey: null
     14                userApiKey: null,
     15                nonce: jQuery('[name=mf_reconnect]').val(),
    1516            }, function (response) {
    1617                if (JSON.parse(response).success) {
     
    5960                ajaxurl, {
    6061                action: 'upsert_user_api_key',
    61                 userApiKey: post.data
     62                userApiKey: post.data,
     63                nonce: jQuery('[name=mf_login]').val(),
    6264            }, function (response) {
    6365                console.log(response)
  • mightyforms/trunk/mightyforms.php

    r2607143 r3209705  
    44    Plugin Name: MightyForms
    55    Description: Powerful web forms - made easy. Quickly create beautiful forms for any website with this intuitive Drag & Drop online form builder.
    6     Version: 1.3.8
     6    Version: 1.3.10
    77    Author: Porthas Inc.
    88    Author URI: https://porthas.com
  • mightyforms/trunk/readme.txt

    r3076493 r3209705  
    55Requires at least: 3.0.0
    66Tested up to: 6.5.2
    7 Stable tag: 1.3.9
     7Stable tag: 1.3.10
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    274274== Changelog ==
    275275
     276= 1.3.10 =
     277* Security fixes
     278
    276279= 1.3.9 =
    277280* Small fixes
  • mightyforms/trunk/shortcode.php

    r2375014 r3209705  
    1111{
    1212    return '<!-- MightyForms Section -->
    13     <div class="mighty-form" id="' . $atts['id'] . '"></div>
     13    <div class="mighty-form" id="' . esc_attr($atts['id']) . '"></div>
    1414    <script async src="https://form.mightyforms.com/loader/v1/mightyforms.min.js"></script>
    1515    <!-- End MightyForms Section -->';
  • mightyforms/trunk/views/application.php

    r2606900 r3209705  
    3131        </div>
    3232        <div class="application-box">
     33            <?php wp_nonce_field('user_api_key','mf_login'); ?>
    3334            <iframe id="mf" src="<?php echo $iframe_src; ?>" frameborder="0" style="width: 100%;"></iframe>
    3435        </div>
     
    5051{
    5152    try {
     53        if (!current_user_can('manage_options') || empty($_POST['nonce'])
     54            || !wp_verify_nonce($_POST['nonce'], 'user_api_key')
     55        ) {
     56            throw new Exception('Access denied');
     57        }
     58
    5259        $api_key = esc_sql($_POST['userApiKey']);
    5360
  • mightyforms/trunk/views/forms.php

    r2448016 r3209705  
    7070                            <h3>Your forms and shortcodes.</h3>
    7171                            <button>Reconnect</button>
     72                            <?php wp_nonce_field('user_api_key','mf_reconnect'); ?>
    7273                        </div>
    7374                        <p>If you want to show your form in a page or post - just copy the form's shortcode and paste it into your
Note: See TracChangeset for help on using the changeset viewer.