A SQL injection vulnerability in pycsw all versions before 2.0.2, 1.10.5 and 1.8.6 that leads to read and extract of any data from any table in the pycsw database that the database user has access to. Also on PostgreSQL (at least) it is possible to perform updates/inserts/deletes and database modifications to any table the database user has access to.
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Link | Tags |
---|---|
http://www.securityfocus.com/bid/94302 | vdb entry third party advisory |
https://github.com/geopython/pycsw/pull/474/files | third party advisory patch |
http://seclists.org/oss-sec/2016/q4/406 | mailing list third party advisory patch |
https://patch-diff.githubusercontent.com/raw/geopython/pycsw/pull/474.patch | third party advisory patch |