Comments (3)
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.
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.
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
- With v2.0.3, alter wp-config.php by adding this line:
define('TEST_CONSTANT', TEST2_CONSTANT . '/test-string');
Save the file to disk. - Now, with wordfence, run
wordfence vuln-scan <path to wp install> -d
- The reported issue is observed including the traceback.
- 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)
- Result queue can fill up causing malware scans to hang
- Feature: First Scan, Incremental Scan and On-demand Scan HOT 2
- Input from stdin isn't processed until an entire chunk is available HOT 1
- New Wordfence CLI install produces "Latin-1" UnicodeEncodeError HOT 11
- CLI misses malware reported by plugin HOT 2
- Implement vectorscan support to improve malware scan performance HOT 9
- On MacOS, when you remediate one or more files and enable debug logging, FileType.<TYPE> is output HOT 1
- Feature Request: Add argument to skip api.github.com version check HOT 2
- Inconsistent exit code with remediate depending on if install via pip or binary HOT 2
- Missing RPM from the crb repo HOT 2
- Add public contribution and security guidelines
- Add option to limit CPU usage for malware scans
- Non-ASCII characters in filenames can result in encoding errors HOT 9
- Error: 'bytes' object has no attribute 'encode' HOT 7
- Error: 'utf-8' codec can't decode byte 0xfc in position 62: invalid start byte HOT 7
- File name filtering error HOT 1
- Document `--email` file attachment capability HOT 3
- Remove version number from tracked file
- Use a specific/identifiable user agent when making requests to Wordfence APIs
- Gracefully handle rate-limited responses from the Wordfence APIs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordfence-cli.