Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web based page is B0rked #87

Open
xxdesmus opened this issue Dec 21, 2016 · 2 comments
Open

web based page is B0rked #87

xxdesmus opened this issue Dec 21, 2016 · 2 comments

Comments

@xxdesmus
Copy link

xxdesmus commented Dec 21, 2016

Nginx nginx/1.11.7 with PHP-FPM PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS )

# Configure Start
$DATABASE = "XXXXXXX:3306";
$DBUSER   = "pdns";
$DBTABLE  = "pdns";
$DBPASSWD = "XXXXXXX";
$DBLIMIT  = 500;
# Configure End

the server where Nginx+PHP are running is able to talk to the database server:

nc -v -z XXXXXXX 3306
Connection to XXXXXXX 3306 port [tcp/mysql] succeeded!

I don't see any other error messages displayed (in the page source code, or console), but I just end up with "B0rked". Is there additional debugging I can enable or output to get a better idea of what is broken?

Thanks! PassiveDNS continues to work great otherwise!

@gamelinux
Copy link
Owner

"B0rked" comes from function sanitize($in), so the input does not match a domain, IPv4 or IPv6 ?
The pcre checks are not great, so you might want to update them etc to fit you needs.
You can try to return $qvar right after the start of the function?

Edit the php function to be:

function sanitize($in) {
$qvar = strip_tags(addslashes(getVar($in)));
return $qvar;
}

@xxdesmus
Copy link
Author

Thanks! I'll keep messing with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants