BP Profile as Homepage - Reflected cross-site scripting (XSS)

4,8

Medium

Detected by

Fluid Attacks SAST Scanner

Disclosed by

Andres Roldan

Offensive Team, Fluid Attacks

Summary

Full name

BP Profile as Homepage 1.1 - Reflected cross-site scripting (XSS)

Code name

State

Private

Release date

14 mar 2025

Affected product

BP Profile as Homepage

Affected version(s)

Version 1.1

Vulnerability name

Reflected cross-site scripting (XSS)

Remotely exploitable

No

CVSS v4.0 vector string

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:L/SC:L/SI:L/SA:L/E:U

CVSS v4.0 base score

4.8

Exploit available

No

Description

BP Profile as Homepage 1.1 was found to be vulnerable. The web application dynamically generates web content without validating the source of the potentially untrusted data in myapp/bp_profile_as_homepage.php.

Vulnerability

Skims by Fluid Attacks discovered a Reflected cross-site scripting (XSS) in BP Profile as Homepage 1.1. The following is the output of the tool:

Skims output

 44 | function bpahp_settings_page()
 45 | {
 46 | if (!current_user_can('manage_options'))
 47 | {
 48 | wp_die( __('You do not have sufficient permissions to access this page.') );
 49 | }
 50 | $opt_name = 'bpahp_role_choice';
 51 | $hidden_field_name = 'bpahp_submit_hidden';
 52 | $data_field_name = 'bpahp_role_choice';
 53 |
 54 | $opt_val = get_option($opt_name);
 55 |
 56 | if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' )
 57 | {
 58 | $opt_val = $_POST[ $data_field_name ];
 59 | update_option( $opt_name, $opt_val );
 60 | ?>
 61 | <div class=""updated""><p><strong><?php _e('settings saved.', 'bpahp-menu' ); ?></strong></p></div>
 62 | <?php
 63 |
 64 | }
 65 | echo '<div class=""wrap"">';
 66 | echo ""<h2>"" . __( 'BP Profile as Homepage Settings', 'bpahp-menu' ) . ""</h2>"";
 67 | ?>
 68 | <p>Using following option, you can disable the redirection for a particular user role.</p>
 69 | <form name=""bpahp-settings-form"" method=""post"" action="""">
 70 | <input type=""hidden"" name=""<?php echo $hidden_field_name; ?>"" value=""Y"">
 71 | <p><b>You have selected:</b>
 72 | <?php
 73 | if ($opt_val=='')
 74 | echo 'No One';
 75 | else
> 76 | echo $opt_val;
 77 | ?> <hr />
 78 | <?php _e(""Who can view Homepage:"", 'bpahp-menu' ); ?>
 79 | <select name=""<?php echo $data_field_name; ?>"">
 80 | <option value="""">None</option>
 81 | <option value=""administrator"">Administrators</option>
 82 | <option value=""editor"">Editors</option>
 83 | <option value=""author"">Authors</option>
 84 | <option value=""contributor"">Contributors</option>
 85 | <option value=""subscriber"">Subscribers</option>
 86 | </select>
 87 | </p>
 88 | <p class=""submit"">
 89 | <input type=""submit"" name=""Submit"" class=""button-primary"" value=""<?php esc_attr_e('Save Changes') ?>"" />
 90 | </p>
 91 | </form>
 92 | <hr />
 93 | <b> If you like my work, kindly support me to keep my blog working by donating a small amount. For helping me and donatio
 94 | <p><h2><u>My other plugins:</u></h2></p>
 95 | <ul>
 96 | <li>BP Login Redirect - Decide where to send your users after login</li>
 97 | <li>Force Post Category Selection - No More Uncategoriezed Posts, No More forgetting category selections</li>
 98 | <li>Force Post Title - No More Untitled Posts</li>
 99 | <li>AutoSet Featured Images for Posts - No need to set featured images manually.It will do it for you automatically.</li>
 100 | <li>Wordpress QRCODE Widget - Share your website with Style. It will generate dynamic QR Codes for whole website.</li>
 101 | <li>Wordpress Version Remover - Save your wordpress website from hackers. It will remove the wordpress version.</li>
 102 | <li>Schedule your Posts - Do not schedule posts now. Just schedule the content of the Post.One Post can show different co
 103 | <li><a href=""http://www.jpsays.com/search/label/wordpress"" alt=""www.jpsays.com"">Click here to see my plugins.</a></li>
 104 | </ul>
 105 | </div>
  106 | <?php
  107 | }
      ^ Col 0

Our security policy

We have reserved the ID CVE-2025-31296 to refer to this issue from now on. Disclosure policy

System Information

  • Product: BP Profile as Homepage

  • Version: 1.1

Mitigation

There is currently no patch available for this vulnerability.

Timeline

IA generativa

14 mar 2025

Vendor contacted

14 mar 2025

Inicia tu prueba gratuita de 21 días

Descubre los beneficios de nuestra solución Hacking Continuo, de la que ya disfrutan empresas de todos los tamaños.

Inicia tu prueba gratuita de 21 días

Descubre los beneficios de nuestra solución Hacking Continuo, de la que ya disfrutan empresas de todos los tamaños.

Inicia tu prueba gratuita de 21 días

Descubre los beneficios de nuestra solución Hacking Continuo, de la que ya disfrutan empresas de todos los tamaños.

Las soluciones de Fluid Attacks permiten a las organizaciones identificar, priorizar y remediar vulnerabilidades en su software a lo largo del SDLC. Con el apoyo de la IA, herramientas automatizadas y pentesters, Fluid Attacks acelera la mitigación de la exposición al riesgo de las empresas y fortalece su postura de ciberseguridad.

SOC 2 Type II

SOC 3

Suscríbete a nuestro boletín

Mantente al día sobre nuestros próximos eventos y los últimos blog posts, advisories y otros recursos interesantes.

Las soluciones de Fluid Attacks permiten a las organizaciones identificar, priorizar y remediar vulnerabilidades en su software a lo largo del SDLC. Con el apoyo de la IA, herramientas automatizadas y pentesters, Fluid Attacks acelera la mitigación de la exposición al riesgo de las empresas y fortalece su postura de ciberseguridad.

SOC 2 Type II

SOC 3

Suscríbete a nuestro boletín

Mantente al día sobre nuestros próximos eventos y los últimos blog posts, advisories y otros recursos interesantes.

Las soluciones de Fluid Attacks permiten a las organizaciones identificar, priorizar y remediar vulnerabilidades en su software a lo largo del SDLC. Con el apoyo de la IA, herramientas automatizadas y pentesters, Fluid Attacks acelera la mitigación de la exposición al riesgo de las empresas y fortalece su postura de ciberseguridad.

SOC 2 Type II

SOC 3

Suscríbete a nuestro boletín

Mantente al día sobre nuestros próximos eventos y los últimos blog posts, advisories y otros recursos interesantes.