Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ It is designed to assist application security engineers and penetration testers

Autorize passively monitors traffic generated by a **high-privileged user**, automatically replays requests using **low-privileged** or **unauthenticated** contexts, and analyzes the server responses to determine whether access controls are properly enforced.

The extension is written in Python by **Barak Tawily**, an application security researcher and practitioner.
The extension is written in Jython by **Barak Tawily**, an application security researcher and practitioner.

![Autorize Screenshot](https://raw.githubusercontent.com/Quitten/Autorize/master/Autorize.png)

Expand Down
7 changes: 4 additions & 3 deletions authorization/authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def checkAuthorizationAllUsers(self, messageInfo, checkUnauthorized=True):
method = self._helpers.analyzeRequest(messageInfo.getRequest()).getMethod()
original_url = self._helpers.analyzeRequest(messageInfo).getUrl()

logEntry = LogEntry(self.currentRequestNumber,
logEntry = LogEntry(None, # ID assigned inside lock to avoid duplicates when concurrent
method,
original_url,
messageInfo,
Expand Down Expand Up @@ -329,10 +329,11 @@ def checkAuthorizationAllUsers(self, messageInfo, checkUnauthorized=True):

self._lock.acquire()
try:
logEntry._id = self.currentRequestNumber
row = self._log.size()
self._log.add(logEntry)
SwingUtilities.invokeLater(UpdateTableEDT(self,"insert",row,row))
self.currentRequestNumber = self.currentRequestNumber + 1
self.currentRequestNumber += 1
except Exception as e:
raise
finally:
Expand Down Expand Up @@ -577,7 +578,7 @@ def checkAuthorization(self, messageInfo, originalHeaders, checkUnauthorized):
self._log.add(LogEntry(self.currentRequestNumber,self._callbacks.saveBuffersToTempFiles(requestResponse), method, self._helpers.analyzeRequest(requestResponse).getUrl(),messageInfo,impression,None,"Disabled")) # same requests not include again.

SwingUtilities.invokeLater(UpdateTableEDT(self,"insert",row,row))
self.currentRequestNumber = self.currentRequestNumber + 1
self.currentRequestNumber += 1
except Exception as e:
raise
finally:
Expand Down
2 changes: 1 addition & 1 deletion helpers/initiator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, extender):

def init_constants(self):
self.contributors = ["Federico Dotta", "mgeeky", "Marcin Woloszyn", "jpginc", "Eric Harris", "Joao Teles", "Roy Oswaldha"]
self._extender.version = "1.9.3"
self._extender.version = "1.9.4"
self._extender._log = ArrayList()
self._extender._lock = Lock()

Expand Down