Exploit databaseDownload repository ZIP
GH-0fcb3446e6b0312a8787f37d73c5cfdd
joshuaprovoste/0-click-rce-exploit-for-cve-2024-51791
Sources for CVE-2024-51791
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files13
joshuaprovoste/0-click-rce-exploit-for-cve-2024-51791Revision 7eaf6945d46d
- ↑..Parent directory
- Download.php
- Email.php
- EmailService.php
- GAAdsEvent.php
- GAEvent.php
- Javascript.php
- Klaviyo.php
- Mailchimp.php
- Mailerlite.php
- Mailpoet.php
- Redirect.php
- Sendinblue.php
- WP_MADEIT_FORM_Action.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
plugin/2.7.0/actions/GAAdsEvent.php
PHP · 1,184 bytes<?php
if (!class_exists('WP_MADEIT_FORM_Action')) {
require_once MADEIT_FORM_DIR.'/actions/WP_MADEIT_FORM_Action.php';
}
class WP_MADEIT_FORM_GAAdsEvent extends WP_MADEIT_FORM_Action
{
public function __construct()
{
$this->addActionField('ga_ads_event_code', __('Google tag code', 'forms-by-made-it'), 'text', 'AW-');
$this->addActionField('ga_ads_event_send_to', __('Google tag event code', 'forms-by-made-it'), 'text', '');
$this->addAction('GA_ADS_EVENT', __('Google Ads Event', 'forms-by-made-it'), [$this, 'callback']);
$this->addHooks();
}
public function callback($data, $messages, $actionInfo, $formId = null, $inputId = null, $postData = null)
{
return ['type' => 'HTML', 'code' => '<script async src="https://www.googletagmanager.com/gtag/js?id='.$data['ga_ads_event_code']."\"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', '".$data['ga_ads_event_code']."');
gtag('event', 'conversion', {'send_to': '".$data['ga_ads_event_send_to']."'});</script>"];
}
}