Skip to content

Commit

Permalink
variables
Browse files Browse the repository at this point in the history
  • Loading branch information
m-1-k-3 committed Dec 2, 2023
1 parent f4c5d3b commit 2cb7c63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/S23_lua_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ s23_luaseccheck() {
ISSUES_FILE=$((ISSUES_FILE+1))
print_output "[+] Found lua QUERY (GET/POST) entry: ${ORANGE}${ENTRY}${GREEN} in file ${ORANGE}${QUERY_FILE}${GREEN} with file access capabilities."
S23_ISSUE_FOUND=1
GPT_PRIO=$((GPT_PRIO+1))
GPT_PRIO_=$((GPT_PRIO_+1))
fi
if grep "${ENTRY}" "${QUERY_FILE}" | grep -q "os.execute"; then
# command exec - critical
S23_LUA_VULNS=$((S23_LUA_VULNS+1))
ISSUES_FILE=$((ISSUES_FILE+1))
print_output "[+] Found lua QUERY (GET/POST) entry: ${ORANGE}${ENTRY}${GREEN} in file ${ORANGE}${QUERY_FILE}${GREEN} with command execution capabilities."
S23_ISSUE_FOUND=1
GPT_PRIO=$((GPT_PRIO+1))
GPT_PRIO_=$((GPT_PRIO_+1))
fi
done
if [[ "${ISSUES_FILE}" -eq 0 ]] && grep -q "os.execute" "${QUERY_FILE}"; then
Expand Down

0 comments on commit 2cb7c63

Please sign in to comment.