You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just discovered a bug in the sqlite3 backend which leads to a SQL injection vulnerability.
I'm running a master nameserver and a slave which get's updated by axfr. I have a "<script>alert('xss')</script>" TXT-Record (for a POC of triggering XSS on website) and got this in the slaves log file:
May 4 13:03:22 deimos pdns[6192]: Communicator thread died because of error: Unable to compile SQLite statement : near "test": syntax error
Seems the content of the record does not get escaped properly.
Steps to reproduce:
Given you have a master and a slave nameserver.
Add a record with a ' (for example a TXT record) on the master nameserver.
Start a zone transfer
I haven't yet tried to trigger it via a crafted DNS query, in that case the impact would be much bigger..
The text was updated successfully, but these errors were encountered:
Hi,
I just discovered a bug in the sqlite3 backend which leads to a SQL injection vulnerability.
I'm running a master nameserver and a slave which get's updated by axfr. I have a "<script>alert('xss')</script>" TXT-Record (for a POC of triggering XSS on website) and got this in the slaves log file:
May 4 13:03:22 deimos pdns[6192]: Communicator thread died because of error: Unable to compile SQLite statement : near "test": syntax error
Seems the content of the record does not get escaped properly.
Steps to reproduce:
I haven't yet tried to trigger it via a crafted DNS query, in that case the impact would be much bigger..
The text was updated successfully, but these errors were encountered: