VirtualBox

Changeset 76761 in vbox


Ignore:
Timestamp:
Jan 10, 2019 7:49:43 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128080
Message:

Main/webservice: fixes, bugref:9329 - the line has to be somewhere.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r76553 r76761  
    617617        m_soap->send_timeout = 60;
    618618        m_soap->recv_timeout = 60;
     619        // Limit the maximum SOAP request size to a generous amount, just to
     620        // be on the safe side (SOAP is quite wordy when representing arrays,
     621        // and some API uses need to deal with large arrays). Good that binary
     622        // data is no longer represented by byte arrays...
     623        m_soap->recv_maxlength = _16M;
    619624        // process the request; this goes into the COM code in methodmaps.cpp
    620625        do {
     
    19291934    }
    19301935
    1931     if (pfnAuthEntry3 || pfnAuthEntry2 || pfnAuthEntry)
     1936    if (strlen(pcszUsername) >= _1K)
     1937    {
     1938        LogRel(("Access denied, excessive username length: %zu\n", strlen(pcszUsername)));
     1939        rc = VERR_WEB_NOT_AUTHENTICATED;
     1940    }
     1941    else if (strlen(pcszPassword) >= _1K)
     1942    {
     1943        LogRel(("Access denied, excessive password length: %zu\n", strlen(pcszPassword)));
     1944        rc = VERR_WEB_NOT_AUTHENTICATED;
     1945    }
     1946    else if (pfnAuthEntry3 || pfnAuthEntry2 || pfnAuthEntry)
    19321947    {
    19331948        const char *pszFn;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette