mohamedjawady / LMSHELL

While processing the buffer using printf/scanf, not using any width for the format specifier %s is vulnerable to buffer overflow CXX-S1004
Security
Major
a year agoa year old
Using printf or scanf without width-limit on %s
 57    switch (mode)
 58    {
 59    case LM_BACH:
 60        snprintf(buffer, 15, "%s", "LM_BACH"); 61        break;
 62
 63    default:
Using printf or scanf without width-limit on %s
 61        break;
 62
 63    default:
 64        snprintf(buffer, 15, "%s", "LM_INTERACTIVE"); 65        break;
 66    }
 67    return buffer;