BP Profile as Homepage Fork - 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 Fork 1.1. - Reflected cross-site scripting (XSS)

Code name

State

Private

Release date

Mar 14, 2025

Affected product

BP Profile as Homepage Fork

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 Fork 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-fork.php.

Vulnerability

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

Skims output

 118 | function bpahpf_settings_page(){
 119 |
 120 | //check for capability to manage options
 121 | if ( !current_user_can( 'manage_options' ) ){
 122 |
 123 | wp_die( __('You do not have sufficient permissions to access this page.', 'bpahpf-menu' ) );
 124 |
 125 | }
 126 |
 127 | $opt_name = 'bpahpf_role_choice';
 128 | $data_field_name = 'bpahpf_role_choice';
 129 |
 130 | $opt_val = get_option( $opt_name );
 131 |
 132 | //if nonce checks out then save submitted data
 133 | $nonce=$_REQUEST['_wpnonce'];
 134 | if( wp_verify_nonce( $nonce, 'bpahpf' ) )
 135 | {
 136 | $opt_val = $_POST[ $data_field_name ];
 137 | update_option( $opt_name, $opt_val );
 138 | ?>
 139 | <div class=""updated""><p><strong><?php _e( 'Settings saved.', 'bpahpf-menu' ); ?></strong></p></div>
 140 | <?php
 141 |
 142 | }
 143 |
 144 | echo '<div class=""wrap"">';
 145 | echo ""<h2>"" . __( 'BP Profile as Homepage Fork Settings', 'bpahpf-menu' ) . ""</h2>"";
 146 | ?>
 147 | <p>
 148 | <?php _e( 'Disable Profile as Homepage for a particular user role.', 'bpahpf-menu' ); ?>
 149 | </p>
 150 | <form name=""bpahpf-settings-form"" method=""post"" action="""">
 151 | <?php wp_nonce_field( 'bpahpf' ); ?>
 152 | <p><b>
 153 | <?php _e( 'You have selected:', 'bpahpf-menu' ); ?>
 154 | </b>
 155 | <?php
 156 | if ( '' == $opt_val )
 157 | _e( 'No One', 'bpahpf-menu' );
 158 | else
> 159 | echo $opt_val;
 160 | ?>
 161 | <hr />
 162 | <?php _e( 'Disable redirect to Profile for this role :', 'bpahpf-menu' ); ?>
 163 | <select name=""<?php echo $data_field_name; ?>"">
 164 | <option value="""">
 165 | <?php _e( 'No One', 'bpahpf-menu' ); ?>
 166 | </option>
 167 | <?php wp_dropdown_roles( );?>
 168 | </select>
 169 | </p>
 170 | <p class=""submit"">
 171 | <input type=""submit"" name=""Submit"" class=""button-primary"" value=""<?php esc_attr_e( 'Save Changes', 'bpahpf-menu' ) ?>"" />
 172 | </p>
 173 | </form>
 174 | </div>
  175 | <?php
  176 | }
      ^ Col 0

Our security policy

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

System Information

  • Product: BP Profile as Homepage Fork

  • Version: 1.1.

Mitigation

There is currently no patch available for this vulnerability.

Timeline

Vulnerability discovered

Feb 14, 2025

Vendor contacted

Mar 14, 2025

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.