Closed enferas closed 3 years ago
Thanks a lot for take time and open this issue!
That's true, you might leak some information with this tool and even attempt a XSS, it's easy to get troubles. That's why we recommenced to delete the script as soon as you are done with it. People used to upload it online and forget about it, that's why we removed the ability to read wp-config files!
I might start to sanitize all the inputs, write the tests for the passwords, check if everything it's fine. This requires time and we work on this tool in our spare time.
Would you like to write a patch for it?
edit spoiler alert: this message is not a proof
Thank you for your proof.
I am not sure if I can write the patch. But I can recommend to sanitize the three different sources in file index.php
$this->search = isset( $_POST['search'] ) ? $_POST['search'] : '';
$this->replace = isset( $_POST['replace'] ) ? $_POST['replace'] : '';
$this->tables = isset( $_POST['tables'] ) && is_array( $_POST['tables'] ) ? $_POST['tables'] : array();
For two different sinks in file srdb.class.php
//line 298
echo $output . "\n";
//line 409
print_r( $args );
I would like to apply for CVE for my discovery and I would like use this issue as a reference.
I suggest you to write the patch, you'll get how the script actually works. The line 409 is in the log
function, its visibility is public and it's actually meant to be overridden by the cli
class and write a more cleaner output at the line 289
.
In any case, the web interface doesn't set the verbose
property as true, hence it's not possible to trigger a XSS attack in that way as far as I know. Could you write few lines and prove the vulnerability?
I like the idea for CVE, but you have to get your hands dirty and actually prove the vulnerability, I really spent few minutes to wrap my head around the code and check those lines.
no feedback so far, closing.
Hello,
I would like to report for a possible XSS vulnerabilities through the input 'search'.
In the file index.php line 142.
The the parent class will be called in line 245.
Inside the file srdb.class.php line 325.
Inside the file srdb.class.php line 991.
Inside the file srdb.class.php