Coder Social home page Coder Social logo

Comments (3)

Sloppyedwards avatar Sloppyedwards commented on September 28, 2024 1

Yes, looks to be the same issue. Towards the end of my wp-config.php file are the following lines:

define('WP_TEMP_DIR',ABSPATH.'tmp');

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
        define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

I didn't put them there, so I'm not sure if they are standard or were standard under some past version. Thanks for the update! I'll watch for the next release and try again.

from wordfence-cli.

akenion avatar akenion commented on September 28, 2024

This is an issue with how CLI parses WordPress' wp-config.php file to identify any non-standard path configurations. I was able to trigger the same trace using a construct like this in the wp-config file:

define('SOME_CONSTANT', ANOTHER_CONSTANT . '/some-string');

I assume you have something similar (a constant concatenated with a string) in your wp-config file. If that is the case, I have a fix ready (#120) and will include it in the next CLI release.

from wordfence-cli.

davidnuzik avatar davidnuzik commented on September 28, 2024

v2.1.0.-rc2 11/27/23

SUMMARY:
QA validation PASSED. I was able to successfully reproduce the issue, then validate it is fixed on 2.1.0-rc2.

VALIDATION STEPS

  1. With v2.0.3, alter wp-config.php by adding this line:
    define('TEST_CONSTANT', TEST2_CONSTANT . '/test-string');
    Save the file to disk.
  2. Now, with wordfence, run wordfence vuln-scan <path to wp install> -d
  3. The reported issue is observed including the traceback.
  4. Now, test again, but use v2.1.0-rc2 this time. The issue no longer appears and the scan works as expected. When done testing, remove the line we added to wp-config.php and save again to restore the wordpress install back to normal.

from wordfence-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.