[QGIS-Developer] Potential vulnerabilities
nadiaspit
nadia.spitilli at gmail.com
Sun Feb 2 08:20:00 PST 2020
Hi,
thank you for your responses, I can give more detail on this issue.
This is a "sample" *Request*
As you can see, the parameter SERVICE is intentionally big, to test Buffer
overflow issue.
GET
https://www.cybertest.it/gis/index.php/lizmap/service/?REQUEST=GetCapabilities&SERVICE=oGMQJLiHSupcMsIjmfMWZQISJOeWgvtonUKYRXwmroNKJMFRYPEnEZPkowATaGjkELTRHGnDntktuVJGaLGTcBeUUJdggwCZNQVmwtAGVOJnxxYRNoCsJqtRfbPjwKjegCwdCLmaYrUVJabXtdkmZeHXsNLjhpdJhbQOYeXwwOIZwVROYYKwXRZxkjXoeGJvmswRUKPNRMhLLkMQtoLmSfPNrQXYHtuPEuKpFIpFccNsEgRbYndKFXiFpnZqJERjSJreOgtxNGcisVVbPVvfplvDRyRbsKbFnPcmlliuCAyoDmYOffSDlAWUApgewpAiJXXdwLDDYbkPaAiqMNkqPfqkIBxhirwdeQEQmTtBeDYIbGYNbGKPxSOYDRhgiGrGPElskHmqCCUaETOPHTPEXMArEpPNYZyJoChNatgYaPfcqIRjwCwDkmMVgUdlxGWgqXxGZwrgeantfXPvxkacZQLKPwlemJfeOuvIVfZrBiwWtIoybuuQAqapuFJBDuZHtMlaIJemxOjPiefmgMSXOpoSwFAipLYwqVApjJtmbOqUBORkfqesknejRvSFQwmCYlHigIZNpBIAINfVVUxtjHekDrJMdYVNgAiZUNUYSnbSyPrFTWiYmrnFUcqnteOMEogsxDXMlbNLBcMCLwDZJCQLblDTElqcWxmcoKiZGBPqTJuSjIPimsfYklNdmIcnwsGdESbaOhtvVwRcoFIKAAninLCqKfsKFXqDfEwNCkXXRFvbcjnXggYywEynhweSdrvbCngwJtceGDAOlQQqCBhgjHmcuSrCUKwBJOeEToYIhTQCgEdBVpIlCYmIBPsNPLIedfITOfincEBqLscQJNktKIvpfgkQFhLOtiyslSKdGkjCCnYYDNVBrTDJsYxELKJcXlJLUMTBOChS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koOrQNMXdmPbTKgfXRhdoaqQapCNpsCJXvnFXBvXQemkXOdIyCpRptiJllMSdFsIjlywGJOWbpInDLB&VERSION=1.3.0&project=demogis&repository=demogis
HTTP/1.1
Host: www.cybertest.it
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Firefox/68.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Referer:
https://www.cybertest.it/gis/index.php/view/map/?repository=demogis&project=demogis
X-Requested-With: XMLHttpRequest
Connection: keep-alive
Cookie: PHPSESSID=la8uc1mmn4neo1ll1nlp2knc24
This is the *Response*
HTTP/1.1 500 Internal jelix error
Date: Sun, 02 Feb 2020 15:43:22 GMT
Server: Apache/2.4.29 (Ubuntu)
X-Frame-Options: SAMEORIGIN
Expires: 0
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000
Content-Length: 46
Connection: close
Content-Type: text/plain;charset=UTF-8
I am running QGIS Server 3.10.
The server log for above Request/Response:
16:29:17 INFO Server[13255]: <ServiceExceptionReport
xmlns="http://www.opengis.net/ogc" version="1.3.0">
<ServiceException code="Service configuration error">Service unknown or
unsupported</ServiceException>
</ServiceExceptionReport>
The point is that the Response code is 500, Internal jelix error. It means
that the input is not validated, it is submitted to the server as is.
I would expect something like "Bad parameter", but this is not a matter of
error message.
The point is that this is considered a potential vulnerability against
Buffer overflow attacks. If the input is very large, it could cause the
server to crash. It is considered a programming error.
I would be happy to hear that this is a "false positive", i.e. it is not a
real vulnerability to buffer overflow attack. But I also need to know why.
Otherwise, as a cybersecutity analyst, I have to report that QGIS server has
this "medium alert" vulnerability.
Nadia
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
More information about the QGIS-Developer
mailing list